adding publish script

This commit is contained in:
Roman Mogilatov 2015-01-05 11:16:51 +02:00
parent 0110a7b9d9
commit 80e18e7562

View File

@ -2,6 +2,8 @@
`Objects` setup script. `Objects` setup script.
""" """
import os
import sys
from setuptools import setup from setuptools import setup
@ -24,6 +26,15 @@ with open('requirements.txt') as version:
with open('VERSION') as version: with open('VERSION') as version:
version = version.read().strip() version = version.read().strip()
# Helper commands.
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
os.system('python setup.py bdist_wheel 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()
setup( setup(
name='Objects', name='Objects',