From e1659ed7afb674006f6ce07f9908a7bccb7a8474 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Mon, 14 Feb 2011 10:37:38 -0500 Subject: [PATCH] added setup.py test --- setup.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/setup.py b/setup.py index b7e1d9c..725ece6 100644 --- a/setup.py +++ b/setup.py @@ -7,14 +7,15 @@ 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() + os.system("python setup.py sdist upload") sys.exit() +if sys.argv[-1] == "test": + os.system("python test_requests.py") + sys.exit() + required = [] # if python > 2.6, require simplejson @@ -22,7 +23,7 @@ required = [] setup( name='requests', version='0.2.1', - description='Python HTTP Library that\'s actually usable.', + description='Awesome Python HTTP Library that\'s actually usable.', long_description=open('README.rst').read() + '\n\n' + open('HISTORY.rst').read(), author='Kenneth Reitz', -- 2.34.1