added:setup.py+48 added
1+#!/usr/bin/env python2+# -*- coding: utf-8 -*-3+4+import os5+import sys6+7+from distutils.core import setup8+9+10+def publish():11+ """Publish to PyPi"""12+ os.system("python setup.py sdist upload")13+14+if sys.argv[-1] == "publish":15+ publish()16+ sys.exit()17+18+required = []19+20+# if python > 2.6, require simplejson21+22+setup(23+ name='requests',24+ version='0.0.1',25+ description='Python HTTP Library that\'s actually usable.',26+ long_description=open('README.rst').read() + '\n\n' +27+ open('HISTORY.rst').read(),28+ author='Kenneth Reitz',29+ author_email='me@kennethreitz.com',30+ url='https://github.com/kennethreitz/requests',31+ packages= [32+ 'requests',33+ ],34+ install_requires=required,35+ license='ISC',36+ classifiers=(37+ # 'Development Status :: 5 - Production/Stable',38+ 'Intended Audience :: Developers',39+ 'Natural Language :: English',40+ 'License :: OSI Approved :: MIT License',41+ 'Programming Language :: Python',42+ # 'Programming Language :: Python :: 2.5',43+ 'Programming Language :: Python :: 2.6',44+ 'Programming Language :: Python :: 2.7',45+ # 'Programming Language :: Python :: 3.0',46+ # 'Programming Language :: Python :: 3.1',47+ ),48+)