Skip to content

Commit 24cb75b

Browse files
committed
[Makefile] add PyPI packaging and distribution targets
1 parent a57f302 commit 24cb75b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,20 @@ win-ico:
5454
-define icon:auto-resize="256,128,96,64,48,32,16" \
5555
icons/Icon.ico
5656

57+
58+
# -------------------------------
59+
# PyPI packaging and distribution
60+
# -------------------------------
61+
62+
clean:
63+
- rm dist/*.whl dist/*.tar.gz dist/*.zip
64+
65+
dist-build: clean
66+
python3 setup.py sdist bdist_wheel
67+
68+
dist-push:
69+
twine upload dist/*.whl dist/*.tar.gz
70+
5771
# ---------------------
5872
# Testing/debugging
5973
# ---------------------

0 commit comments

Comments
 (0)