diff --git a/Makefile b/Makefile index 21110c34..f6bcd4f9 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,16 @@ .PHONY: clean-pyc clean-build docs +TAG := $(shell git describe master --abbrev=0) +TAGSTEEM := $(shell git describe master --abbrev=0 | tr "." "-") + +# clean: clean-build clean-pyc clean-build: rm -fr build/ rm -fr dist/ rm -fr *.egg-info + rm -fr __pycache__/ clean-pyc: find . -name '*.pyc' -exec rm -f {} + @@ -31,8 +36,17 @@ install: build install-user: build python3 setup.py install --user -release: clean +check: python3 setup.py check + +dist: python3 setup.py sdist upload -r pypi - python3 setup.py bdist --format=wininst,zip upload + python3 setup.py bdist --format=zip upload + +release: clean check dist steem-readme steem-changelog + +steem-readme: + piston edit "@xeroc/python-graphenelib-readme" --file README.md +steem-changelog: + git tag -l -n100 $(TAG) | piston post --author xeroc --permlink "python-graphenelib-changelog-$(TAGSTEEM)" --category steem --title "[Changelog] python-graphenelib $(TAG)" \