Skip to content

Commit

Permalink
Versioning: Add script to set up MAJ.MIN.DATE version (#445)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
ikreymer committed Feb 25, 2019
1 parent 32c1e6c commit 0fb1fa6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pywb/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '2.2.0.dev0'
from pywb.version import __version__

DEFAULT_CONFIG = 'pywb/default_config.yaml'

Expand Down
1 change: 1 addition & 0 deletions pywb/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = '2.2.20190221'
8 changes: 8 additions & 0 deletions update-version.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0fb1fa6

Please sign in to comment.