From 4ac53c96805f2334d1e8378b9cc168e137311f05 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Mon, 15 Feb 2010 11:33:50 -0800 Subject: `python setup.py publish` --- setup.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 53ae4c9..a763e2c 100644 --- a/setup.py +++ b/setup.py @@ -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' ) + -- cgit v1.2.1