summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorXenGi <email@ricardo.band>2021-05-23 11:42:45 +0000
committerjaseg <git@jaseg.de>2021-06-06 13:16:10 +0200
commitea1d14b7f3fb80e46c7ad60d69aa223e6c532684 (patch)
treeafc79b22a8f427c76c72839789dd2dce23bbe7ef /Makefile
downloadgerbonara-ea1d14b7f3fb80e46c7ad60d69aa223e6c532684.tar.gz
gerbonara-ea1d14b7f3fb80e46c7ad60d69aa223e6c532684.tar.bz2
gerbonara-ea1d14b7f3fb80e46c7ad60d69aa223e6c532684.zip
Initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..db7f3d3
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,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/*