mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-22 09:36:48 +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.
|
`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',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user