Skip to content

Commit

Permalink
fix auto versioning setup
Browse files Browse the repository at this point in the history
  • Loading branch information
prior committed Jan 23, 2013
1 parent 4f1447f commit 9779984
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions new_version.py
@@ -1,6 +1,5 @@
#!/usr/bin/env python
import subprocess
import sanetime

def call(args):
cmd = ' '.join(args)
Expand All @@ -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'])

2 changes: 1 addition & 1 deletion 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',
Expand Down

0 comments on commit 9779984

Please sign in to comment.