setup.py
This file
Path
setup.py
52 lines · 1.4 KiB · Python
Last changed by
Merge branch 'release/0.2.4'Kenneth Reitzbefore adoptiond2cdefa
History of this fileTake it
easy setup.pyKenneth Reitzbefore adoption0477018
lines 1–5why, one step back1#!/usr/bin/env python2# -*- coding: utf-8 -*-34import os5import sysMerge branch 'release/0.2.4'Kenneth Reitzbefore adoptiond2cdefa
line 6why, one step back6import requestseasy setup.pyKenneth Reitzbefore adoption0477018
lines 7–10why, one step back78from distutils.core import setup910Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f
line 11why, one step back11 easy setup.pyKenneth Reitzbefore adoption0477018
line 12why, one step back12if sys.argv[-1] == "publish":Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f
lines 13–14why, one step back13 os.system("python setup.py sdist upload")14 sys.exit()easy setup.pyKenneth Reitzbefore adoption0477018
line 15why, one step back15Merge branch 'release/0.2.1'Kenneth Reitzbefore adoptione09efc4
line 16why, one step back16if sys.argv[-1] == "test":Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f
lines 17–19why, one step back17 os.system("python test_requests.py")18 sys.exit()19 easy setup.pyKenneth Reitzbefore adoption0477018
lines 20–24why, one step back20required = []2122# if python > 2.6, require simplejson2324setup(Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f
line 25why, one step back25 name='requests',Merge branch 'release/0.2.4'Kenneth Reitzbefore adoptiond2cdefa
line 26why, one step back26 version=requests.__version__,Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f
lines 27–40why, one step back27 description='Awesome Python HTTP Library that\'s actually usable.',28 long_description=open('README.rst').read() + '\n\n' +29 open('HISTORY.rst').read(),30 author='Kenneth Reitz',31 author_email='me@kennethreitz.com',32 url='https://github.com/kennethreitz/requests',33 packages= [34 'requests',35 'requests.packages',36 'requests.packages.poster'37 ],38 install_requires=required,39 license='ISC',40 classifiers=(Merge branch 'release/0.2.4'Kenneth Reitzbefore adoptiond2cdefa
line 41why, one step back41 'Development Status :: 5 - Production/Stable',Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f
lines 42–45why, one step back42 'Intended Audience :: Developers',43 'Natural Language :: English',44 'License :: OSI Approved :: ISC License (ISCL)',45 'Programming Language :: Python',Merge branch 'release/0.2.4'Kenneth Reitzbefore adoptiond2cdefa
line 46why, one step back46 'Programming Language :: Python :: 2.5',easy setup.pyKenneth Reitzbefore adoption0477018
line 47why, one step back47 'Programming Language :: Python :: 2.6',Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f
lines 48–51why, one step back48 'Programming Language :: Python :: 2.7',49 # 'Programming Language :: Python :: 3.0',50 # 'Programming Language :: Python :: 3.1',51 ),easy setup.pyKenneth Reitzbefore adoption0477018
line 52why, one step back52)