Skip to content

Commit

Permalink
add script to update version and simplify the version number
Browse files Browse the repository at this point in the history
  • Loading branch information
areski committed Nov 26, 2014
1 parent 46f6456 commit a4c8e56
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
# built documents.
#
# The short X.Y version.
version = ".".join(map(str, newfies_dialer.VERSION[0:2]))
version = ".".join(newfies_dialer.__version__.split('.')[0:2])
# The full version, including alpha/beta/rc tags.
release = newfies_dialer.__version__

Expand Down
3 changes: 1 addition & 2 deletions newfies/newfies_dialer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
# :copyright: (c) 2011-2014 by Arezqui Belaid.
# :license: MPL 2.0, see COPYING for more details.

VERSION = (2, 14, 10, "")
__version__ = ".".join(map(str, VERSION[0:3])) + "".join(VERSION[3:])
__version__ = "2.15.0"
__author__ = "Arezqui Belaid"
__contact__ = "[email protected]"
__homepage__ = "http://www.newfies-dialer.org"
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def parse_dependency_links(file_name):
for line in open(file_name, 'r').read().split('\n'):
if re.match(r'\s*-[ef]\s+', line):
dependency_links.append(re.sub(r'\s*-[ef]\s+', '', line))

return dependency_links


Expand Down
18 changes: 18 additions & 0 deletions update_version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#
# Usage:
# ./update_version.sh 2.15.0
#

git flow release start v$1

sed -i -e "s/__version__ = '.*'/__version__ = '$1'/g" newfies/newfies_dialer/__init__.py

#rm -rf docs/html
#python setup.py develop
#make docs

git commit -a -m "Update to version v$1"
git flow release finish v$1
#python setup.py sdist upload -r pypi

git push origin develop; git push origin master; git push --tags

0 comments on commit a4c8e56

Please sign in to comment.