Permalink
1 comment
on commit
sign in to comment.
Browse files
now we've moved to calendar versioning, thanks @ibnesayeed for the su…
…ggestion
- Loading branch information...
Showing
with
27 additions
and 1 deletion.
- +1 −0 .gitignore
- +1 −1 mementoembed/version.py
- +25 −0 release.sh
@@ -1,3 +1,3 @@ | |||
__appname__ = "MementoEmbed" | |||
__appversion__ = "0.1.0.dev0" | |||
__appversion__ = '0.2018.07.13.0155' | |||
__useragent__ = "{}/{}".format(__appname__, __appversion__) |
@@ -0,0 +1,25 @@ | |||
#!/bin/bash | |||
|
|||
# git checkout master | |||
# git pull | |||
|
|||
# Update version in project | |||
PYVAR="__appversion__ = " | |||
VERSION_STRING=`date -u +0.%Y.%m.%d.%H%M` | |||
FILE_NAME='mementoembed/version.py' | |||
|
|||
# Update mementoembed version | |||
# echo $PYVAR\'$VERSION_STRING\'>'mementoembed/'$FILE_NAME | |||
sed -i.bak "s/^__appversion__ = .*$/__appversion__ = '$VERSION_STRING'/g" $FILE_NAME | |||
|
|||
# uncomment below when ready | |||
|
|||
# Push to GitHub | |||
# git add 'ipwb/'$FILE_NAME | |||
# git commit -m "RELEASE: Bump version for pypi to "$VERSION_STRING | |||
|
|||
# Create a tag in repo | |||
TAG_NAME='v'$VERSION_STRING | |||
# git tag $TAG_NAME | |||
# git push | |||
# git push origin $TAG_NAME |
This comment has been minimized.
ibnesayeed commented onJul 13, 2018
98f7be3
@shawnmjones I am not a big fan of CalVer for rolling release software which do not have a well defined release cycle. However, I am not entirely against it either.