Skip to content

Commit 972c1aa

Browse files
committed
Add a helper rule to upload to pypi
1 parent a44204e commit 972c1aa

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
1+
PYTHON ?= python3
2+
13
all:
24
echo 'nothing by default'
35

46
prep_release:
57
# take previous one, and replace with the next one
68
utils/prep_release
9+
10+
release-pypi: prep_release
11+
# avoid upload of stale builds
12+
test ! -e dist
13+
# make sure all is still clean/committed
14+
! bash -c 'git diff | grep -q .'
15+
$(PYTHON) setup.py sdist
16+
$(PYTHON) setup.py bdist_wheel
17+
twine upload dist/*
18+

0 commit comments

Comments
 (0)