diff --git a/new_version.py b/new_version.py index 92bd0de..9ab4c28 100755 --- a/new_version.py +++ b/new_version.py @@ -1,6 +1,5 @@ #!/usr/bin/env python import subprocess -import sanetime def call(args): cmd = ' '.join(args) @@ -11,9 +10,11 @@ def call(args): print("== done == %s ==" % cmd) print +version = [line for line in open('setup.py').read().split('\n') if line.startswith('__VERSION__ = ')][0].split(' ')[-1].strip('"').strip("'") + call(['git', 'commit', '-v']) call(['git', 'push']) -call(['git', 'tag', '-a', 'v%s'%sanetime.__version__, '-m="version bump"']) +call(['git', 'tag', '-a', 'v%s'%version, '-m="version bump"']) call(['git', 'push', '--tags']) call(['python', 'setup.py', 'sdist', 'upload']) diff --git a/setup.py b/setup.py index 781dafc..ed23ce0 100755 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ #!/usr/bin/env python from setuptools import setup, find_packages -__VERSION__ = '4.2.1' +__VERSION__ = '4.2.2' setup( name='sanetime',