Skip to content

Commit f26e5ab

Browse files
committed
add a makefile... just so I can release more easily
1 parent aae84df commit f26e5ab

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
build/publish/bin:
3+
virtualenv build/publish
4+
build/publish/bin/pip install wheel twine
5+
6+
checkversion:
7+
git log -1 --oneline | grep -q "Bump version" || (echo "DID NOT DO VERSION BUMP"; exit 1)
8+
git show-ref --tags | grep -q $$(git log -1 --pretty=%H) || (echo "DID NOT TAG VERSION"; exit 1)
9+
10+
dist: checkversion build/publish/bin
11+
build/publish/bin/python setup.py sdist
12+
build/publish/bin/python setup.py bdist_wheel
13+
14+
publish: dist/ build/publish/bin
15+
build/publish/bin/twine upload dist/*
16+
17+
clean:
18+
rm -rf build/ dist/
19+
20+
.PHONY: checkversion dist publish clean

0 commit comments

Comments
 (0)