mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-25 02:53:56 +03:00
separating pubish and tag setup.py commands
This commit is contained in:
parent
aacf3b0b4c
commit
18d6abdb09
8
setup.py
8
setup.py
|
@ -29,11 +29,11 @@ with open('VERSION') as version:
|
||||||
# Helper commands.
|
# Helper commands.
|
||||||
if sys.argv[-1] == 'publish':
|
if sys.argv[-1] == 'publish':
|
||||||
os.system('python setup.py sdist upload')
|
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()
|
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(
|
setup(
|
||||||
name='Objects',
|
name='Objects',
|
||||||
|
|
0
tests/__init__.py
Normal file
0
tests/__init__.py
Normal file
Loading…
Reference in New Issue
Block a user