This repository has been archived by the owner on Jun 9, 2023. It is now read-only.
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
4 changed files
with
67 additions
and
9 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,35 @@ | ||
#!/bin/bash | ||
|
||
status=$(git status | head -n 1) | ||
if [[ "$status" != "# On branch master" ]]; then | ||
echo "Not on master branch. Goodbye" | ||
exit 1 | ||
fi | ||
|
||
status=$(git status | tail -n -1) | ||
if [[ "$status" != "nothing to commit (working directory clean)" ]]; then | ||
echo "There are pending changes. Goodbye" | ||
exit 1 | ||
fi | ||
|
||
version=$(python -c "import prawtools; print prawtools.__version__") | ||
|
||
read -p "Do you want to deploy $version? [y/n] " input | ||
case $input in | ||
[Yy]* ) ;; | ||
* ) echo "Goodbye"; exit 1;; | ||
esac | ||
|
||
python setup.py sdist upload -s | ||
if [ $? -ne 0 ]; then | ||
echo "Pushing distribution failed. Aborting." | ||
exit 1 | ||
fi | ||
|
||
git tag -s "prawtools-$version" -m "prawtools-$version" | ||
if [ $? -ne 0 ]; then | ||
echo "Tagging version failed. Aborting." | ||
exit 1 | ||
fi | ||
|
||
git push origin master --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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '0.1' | ||
__version__ = '0.2' |
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