This repository has been archived by the owner on Oct 10, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
1 parent
264637c
commit 61bce32
Showing
4 changed files
with
76 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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/usr/bin/env python3 | ||
__version__ = "1.1.1" | ||
__version__ = "1.2.4" |
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,72 @@ | ||
#!/usr/bin/env bash | ||
|
||
read -p "Insert version number in the form A.B.C: " ver | ||
|
||
# Change version in configuration file | ||
sed -i -E "s/[0-9]+\.[0-9]+\.[0-9]+/$ver/g" pdfsak_version.py | ||
|
||
echo "Echoing pdfsak_version.py" | ||
cat pdfsak_version.py | ||
read -p "Does it look correct (y/n)? " ans | ||
|
||
if [ "$ans" = "y" ]; then | ||
echo "Answered yes. Proceeding." | ||
elif [ "$ans" = "n" ]; then | ||
echo "Answered no. Exiting" | ||
exit | ||
else | ||
echo "Unrecognized answer" | ||
fi | ||
|
||
# Create commit for version bump | ||
|
||
git add -A | ||
git commit -m "Bump version to $ver" | ||
|
||
echo "Echoing commit for version bump" | ||
git diff HEAD^ | ||
|
||
read -p "Does it look correct (y/n)? " ans | ||
|
||
if [ "$ans" = "y" ]; then | ||
echo "Answered yes. Proceeding." | ||
elif [ "$ans" = "n" ]; then | ||
echo "Answered no. Exiting" | ||
exit | ||
else | ||
echo "Unrecognized answer" | ||
fi | ||
|
||
# Create annotated tag for this version | ||
git tag -a v$ver -m "Version $ver" | ||
|
||
echo "Echoing git tags" | ||
git tag --list | ||
|
||
read -p "Does it look correct (y/n)? " ans | ||
|
||
if [ "$ans" = "y" ]; then | ||
echo "Answered yes. Proceeding." | ||
elif [ "$ans" = "n" ]; then | ||
echo "Answered no. Exiting" | ||
exit | ||
else | ||
echo "Unrecognized answer" | ||
fi | ||
|
||
# Push commit | ||
git push | ||
|
||
# Push tag | ||
git push origin v$ver | ||
|
||
# Build project | ||
rm -rf dist/ | ||
rm -rf build/ | ||
rm -rf *.egg-info | ||
python3 -m build | ||
|
||
# Upload to PyPI | ||
python3 -m twine upload dist/* | ||
|
||
echo "Done. Remember to release on GitHub" |
This file was deleted.
Oops, something went wrong.