1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-14 15:53:28 +01:00

Switch back to Semver for 2.3.0 (#488)

versioning: switch back to semver for 2.3.0, manual version updates
- rename update-version.sh -> update-tag.sh to push tag for existing versions
- bump version to 2.3.0 for release
This commit is contained in:
Ilya Kreymer 2019-07-09 19:29:52 -07:00 committed by GitHub
parent 11610f6e04
commit a4027c7904
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 28 deletions

View File

@ -13,6 +13,7 @@ pywb 2.3.x changelist
- Fixes to ``this`` proxy rewrite to include ``, this`` - Fixes to ``this`` proxy rewrite to include ``, this``
* Misc Changes: * Misc Changes:
- Versioning: switched back to semver to more easily keep track of versions (#488)
- Improved handling of open http connections and file handles (#463) - Improved handling of open http connections and file handles (#463)
- Fixes for latest urllib3, not verifying SSL certs (#467), (#469) - Fixes for latest urllib3, not verifying SSL certs (#467), (#469)
- Better logging for invalid cdxlines and cookies (#477), (#478) - Better logging for invalid cdxlines and cookies (#477), (#478)

View File

@ -1 +1,4 @@
__version__ = '2.3.0.dev0' __version__ = '2.3.0'
if __name__ == '__main__':
print(__version__)

16
update-tag.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
VERSION=$(python ./pywb/version.py)
TAG=v-$VERSION
echo "Committing Tag $TAG"
if [ "$1" != "commit" ]; then
exit 0
fi
# Tag
git tag $TAG
git push origin $TAG

View File

@ -1,27 +0,0 @@
#!/bin/bash
BASE=2.2
NOW=$(date +%Y%m%d)
VERSION="$BASE.$NOW"
# Update
echo "Updating version to $VERSION"
sed -i='' -E "s/(__version__ = ').*$/\1$VERSION'/" ./pywb/version.py
if [ "$1" != "commit" ]; then
exit 0
fi
TAG=v-$VERSION
echo "Committing Tag $TAG"
git commit -m "version: update to $VERSION" ./pywb/version.py
git push
# Tag
git tag $TAG
git push origin $TAG