diff options
author | Chris Wanstrath <chris@ozmm.org> | 2010-02-15 11:33:50 -0800 |
---|---|---|
committer | Chris Wanstrath <chris@ozmm.org> | 2010-02-15 11:33:50 -0800 |
commit | 4ac53c96805f2334d1e8378b9cc168e137311f05 (patch) | |
tree | f6d8fdbb360d25e479566e0d8c3f8988635a160b /setup.py | |
parent | cfa229ff3e204d4f00e982de68d1fa39a129a438 (diff) | |
download | pystache-4ac53c96805f2334d1e8378b9cc168e137311f05.tar.gz |
`python setup.py publish`
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -1,7 +1,20 @@ #!/usr/bin/env python +import os +import sys + from distutils.core import setup +def publish(): + """Publish to Pypi""" + os.system("python setup.py sdist upload") + +if sys.argv[-1] == "publish": + publish() + sys.exit() + + + setup(name='pystache', version='0.2.0', description='Mustache for Python', @@ -11,3 +24,4 @@ setup(name='pystache', packages=['pystache'], license='MIT' ) + |