summaryrefslogtreecommitdiff
path: root/Makefile
blob: db7f3d31ac639926fd9d4e0a00b1d0dffcdebf9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
PROJECT = "desec_dns_api"

.PHONY: all clean sdist bdist_wheel test coverage html upload testupload

all: sdist bdist_wheel

clean:
	rm -rf .pytest_cache/
	rm -rf build/
	rm -rf ${PROJECT}.egg-info/
	rm -rf dist/
	rm -rf htmlcov/
	rm -rf .coverage

sdist:
	python3 setup.py sdist

bdist_wheel:
	python3 setup.py bdist_wheel

test:
	pytest --flake8 tests/

coverage:
	pytest --cov=${PROJECT} tests/

html:
	pytest --cov-report html:htmlcov --cov=${PROJECT} tests/

upload: sdist bdist_wheel
	twine upload -s -i contact@gerbonara.io --config-file ~/.pypirc --skip-existing --repository pypi dist/*

testupload: sdist bdist_wheel
	twine upload --config-file ~/.pypirc --skip-existing --repository testpypi dist/*