-
-
Notifications
You must be signed in to change notification settings - Fork 753
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from hjacobs/master
Add release.sh helper script to build and release to PyPI
- Loading branch information
Showing
3 changed files
with
49 additions
and
13 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
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,28 @@ | ||
#!/bin/sh | ||
|
||
if [ $# -ne 1 ]; then | ||
>&2 echo "usage: $0 <version>" | ||
exit 1 | ||
fi | ||
|
||
set -xe | ||
|
||
python3 --version | ||
git --version | ||
|
||
version=$1 | ||
|
||
sed -i "s/version = .*/version = '${version}'/" setup.py | ||
python3 setup.py clean | ||
python3 setup.py test | ||
python3 setup.py flake8 | ||
|
||
git add setup.py | ||
|
||
git commit -m "Bumped version to $version" | ||
git push | ||
|
||
python3 setup.py sdist bdist_wheel upload | ||
|
||
git tag ${version} | ||
git push --tags |
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