aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile20
-rw-r--r--setup.py2
2 files changed, 19 insertions, 3 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/*
+
diff --git a/setup.py b/setup.py
index 9e42793..fc2dc91 100644
--- a/setup.py
+++ b/setup.py
@@ -22,5 +22,5 @@ with open("README.md", "r") as fh:
zip_safe=False,
entry_points={"console_scripts": ["fuzzycat=fuzzycat.main:main",],},
install_requires=[],
- extras_require={"dev": ["black>=19"],},
+ extras_require={"dev": ["black", "twine"],},
)