From 18d6abdb09f28c4af3bd632ba19ce8b6109f0899 Mon Sep 17 00:00:00 2001 From: Roman Mogilatov Date: Mon, 5 Jan 2015 17:10:12 +0200 Subject: [PATCH] separating pubish and tag setup.py commands --- setup.py | 8 ++++---- tests/__init__.py | 0 2 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 tests/__init__.py diff --git a/setup.py b/setup.py index dbf94618..1e9003f0 100644 --- a/setup.py +++ b/setup.py @@ -29,11 +29,11 @@ with open('VERSION') as version: # Helper commands. if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') - print('You probably want to also tag the version now:') - print(' git tag -a %s -m \'version %s\'' % (version, version)) - print(' git push --tags') sys.exit() - +if sys.argv[-1] == 'tag': + os.system('git tag -a {0} -m \'version {0}\''.format(version)) + os.system('git push --tags') + sys.exit() setup( name='Objects', diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 00000000..e69de29b