Skip to content
Permalink
Browse files

now we've moved to calendar versioning, thanks @ibnesayeed for the su…

…ggestion
  • Loading branch information...
shawnmjones committed Jul 13, 2018
1 parent 515d84b commit 98f7be3298d62f0d6f276d4ded05cfe85c34a4b3
Showing with 27 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +1 −1 mementoembed/version.py
  3. +25 −0 release.sh
@@ -8,3 +8,4 @@ dist
.DS_Store
.web_cache
*.sqlite
*.bak
@@ -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

1 comment on commit 98f7be3

@ibnesayeed

This comment has been minimized.

Copy link
Member

commented on 98f7be3 Jul 13, 2018

@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.

Please sign in to comment.
You can’t perform that action at this time.