Skip to content

Commit 44b9cf8

Browse files
committed
Fix release steps in makefile
1 parent 1d531f7 commit 44b9cf8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ VENV = build/venv
55

66
.PHONY: release coverage install docs test test_all test_25 test_26 test_27 test_31 test_32 test_33 2to3 clean
77

8-
release: venv
8+
release: clean venv
99
$(VENV)/bin/python3 setup.py --version | egrep -q -v '[a-zA-Z]' # Fail on dev/rc versions
1010
git commit -e -m "Release of $(VERSION)" # Fail on nothing to commit
1111
git tag -a -m "Release of $(VERSION)" $(VERSION) # Fail on existing tags
1212
git push origin HEAD # Fail on out-of-sync upstream
1313
git push origin tag $(VERSION) # Fail on dublicate tag
1414
$(VENV)/bin/python3 setup.py sdist bdist_wheel # Build project
15-
$(VENV)/bin/twine upload # Release to pypi
15+
$(VENV)/bin/twine upload dist/$(VERSION)* # Release to pypi
1616

1717
venv: $(VENV)/.installed
1818
$(VENV)/.installed: Makefile

0 commit comments

Comments
 (0)