setup.py
This file
Path
setup.py
48 lines · 1.1 KiB · Python
Last changed by
easy setup.pyKenneth Reitzbefore adoption0477018
History of this fileTake it
easy setup.pyKenneth Reitzbefore adoption0477018
lines 1–48why, one step back1#!/usr/bin/env python2# -*- coding: utf-8 -*-34import os5import sys67from distutils.core import setup8910def publish():11 """Publish to PyPi"""12 os.system("python setup.py sdist upload")1314if sys.argv[-1] == "publish":15 publish()16 sys.exit()1718required = []1920# if python > 2.6, require simplejson2122setup(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)