-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
34 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
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 | ||
|
||
python --version | ||
git --version | ||
|
||
version=$1 | ||
|
||
sed -i "s/__version__ = .*/__version__ = '${version}'/" pg_view.py | ||
python setup.py clean | ||
python setup.py test | ||
python setup.py flake8 | ||
|
||
git add pg_view.py | ||
|
||
git commit -m "Bumped version to $version" | ||
git push | ||
|
||
python setup.py sdist upload | ||
|
||
git tag ${version} | ||
git push --tags |