Skip to content

Commit

Permalink
add a makefile... just so I can release more easily
Browse files Browse the repository at this point in the history
  • Loading branch information
dnozay committed Jan 22, 2016
1 parent aae84df commit f26e5ab
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

build/publish/bin:
virtualenv build/publish
build/publish/bin/pip install wheel twine

checkversion:
git log -1 --oneline | grep -q "Bump version" || (echo "DID NOT DO VERSION BUMP"; exit 1)
git show-ref --tags | grep -q $$(git log -1 --pretty=%H) || (echo "DID NOT TAG VERSION"; exit 1)

dist: checkversion build/publish/bin
build/publish/bin/python setup.py sdist
build/publish/bin/python setup.py bdist_wheel

publish: dist/ build/publish/bin
build/publish/bin/twine upload dist/*

clean:
rm -rf build/ dist/

.PHONY: checkversion dist publish clean

0 comments on commit f26e5ab

Please sign in to comment.