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

Versioning: Add script to set up MAJ.MIN.DATE version (#445)

* versioning: new MAJ.MIN.DATE versioning
move version to version.py for easier updates
add update-version.sh for autoupdating version in version.py, pushing new tag with current version
This commit is contained in:
Ilya Kreymer 2019-02-25 11:46:37 -08:00 committed by GitHub
parent 32c1e6c85b
commit 0fb1fa68a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 1 deletions

View File

@ -1,4 +1,4 @@
__version__ = '2.2.0.dev0'
from pywb.version import __version__
DEFAULT_CONFIG = 'pywb/default_config.yaml'

1
pywb/version.py Normal file
View File

@ -0,0 +1 @@
__version__ = '2.2.20190221'

8
update-version.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
BASE=2.2
NOW=$(date +%Y%m%d)
sed -i='' -E "s/(__version__ = ').*$/\1$BASE.$NOW'/" ./pywb/version.py
git tag v-$BASE.$NOW
git commit ./pywb/version.py
git push origin v-$BASE.$NOW