mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-21 17:16:46 +03:00
adding publish script
This commit is contained in:
parent
0110a7b9d9
commit
80e18e7562
11
setup.py
11
setup.py
|
@ -2,6 +2,8 @@
|
|||
`Objects` setup script.
|
||||
"""
|
||||
|
||||
import os
|
||||
import sys
|
||||
from setuptools import setup
|
||||
|
||||
|
||||
|
@ -24,6 +26,15 @@ with open('requirements.txt') as version:
|
|||
with open('VERSION') as version:
|
||||
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(
|
||||
name='Objects',
|
||||
|
|
Loading…
Reference in New Issue
Block a user