aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2020-08-12 11:22:44 +0200
committerMartin Czygan <martin.czygan@gmail.com>2020-08-12 11:22:44 +0200
commit81f4b718014677a25a94c962473d71fcee12c896 (patch)
tree2db72091bf05ff766563d58bd228f33cda8bb3b4 /Makefile
parent4001a5c053bb3bb2fec8761f6fc9331fbf2e2f83 (diff)
downloadfuzzycat-81f4b718014677a25a94c962473d71fcee12c896.tar.gz
fuzzycat-81f4b718014677a25a94c962473d71fcee12c896.zip
allow pypi uploads
see: https://pypi.org/project/fuzzycat/
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 18 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7d73f56..000c468 100644
--- a/Makefile
+++ b/Makefile
@@ -19,11 +19,27 @@ black: ## Format all Python files
find . -name "*.py" -exec black {} \;
.PHONY: dist
-dist: ## Create source distribution
- python setup.py sdist
+dist: ## Create source distribution and wheel
+ python setup.py sdist bdist_wheel
.PHONY: clean
clean: ## Clean all artifacts
rm -rf dist
rm -rf fuzzycat.egg-info/
+# Upload requires https://github.com/pypa/twine and some configuration.
+.PHONY: upload
+upload: dist
+ # https://pypi.org/account/register/
+ # $ cat ~/.pypirc
+ # [pypi]
+ # username:abc
+ # password:secret
+ #
+ # For internal repositories, name them in ~/.pypirc (e.g. "internal"), then
+ # run: make upload TWINE_OPTS="-r internal" to upload to hosted pypi
+ # repository.
+ #
+ # For automatic package deployments, also see: .gitlab-ci.yml.
+ twine upload $(TWINE_OPTS) dist/*
+