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:
parent
32c1e6c85b
commit
0fb1fa68a8
@ -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
1
pywb/version.py
Normal file
@ -0,0 +1 @@
|
||||
__version__ = '2.2.20190221'
|
8
update-version.sh
Executable file
8
update-version.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user