-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a makefile... just so I can release more easily
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |