Skip to content

Commit

Permalink
Fix release steps in makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
defnull committed Dec 1, 2019
1 parent 1d531f7 commit 44b9cf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ VENV = build/venv

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

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

venv: $(VENV)/.installed
$(VENV)/.installed: Makefile
Expand Down

0 comments on commit 44b9cf8

Please sign in to comment.