Skip to content

Commit

Permalink
[Makefile] Add piston to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
xeroc committed Apr 28, 2016
1 parent 8f018c4 commit 1039c77
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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 {} +
Expand All @@ -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)" \

0 comments on commit 1039c77

Please sign in to comment.