setup.py
This file
Path
setup.py
67 lines · 1.9 KiB · Python
Last changed by
syntax errorKenneth Reitzbefore adoptiond983cfa
History of this fileTake it
The walk stopped after 200 commits: lines older than 946f7ec point at it.
percent encodedKenneth Reitzbefore adoption946f7ec
lines 1–2why, one step back1#!/usr/bin/env python2Merge pull request #572 from slingamn/chardet_2Kenneth Reitzbefore adoptiona3e5563
line 3why, one step back3import ospercent encodedKenneth Reitzbefore adoption946f7ec
line 4why, one step back4import sysChange setup.py to reflect required/optional dependenciesShivaram Lingamnenibefore adoptionbdd7f8f
line 5why, one step back5percent encodedKenneth Reitzbefore adoption946f7ec
line 6why, one step back6import requestssyntax errorKenneth Reitzbefore adoptiond983cfa
line 7why, one step back7from requests.compat import is_py2percent encodedKenneth Reitzbefore adoption946f7ec
lines 8–22why, one step back89try:10 from setuptools import setup11except ImportError:12 from distutils.core import setup1314if sys.argv[-1] == 'publish':15 os.system('python setup.py sdist upload')16 sys.exit()1718packages = [19 'requests',20 'requests.packages',21 'requests.packages.urllib3',22 'requests.packages.urllib3.packages',oauthlibKenneth Reitzbefore adoption9576518
line 23why, one step back23 'requests.packages.urllib3.packages.ssl_match_hostname'percent encodedKenneth Reitzbefore adoption946f7ec
line 24why, one step back24]version-dependent package includesKenneth Reitzbefore adoption254adf9
lines 25–36why, one step back2526if is_py2:27 packages.extend([28 'requests.packages.oauthlib',29 'requests.packages.oauthlib.oauth1',30 'requests.packages.oauthlib.oauth1.rfc5849',31 'requests.packages.oauthlib.oauth2',32 'requests.packages.oauthlib.oauth2.draft25',33 'requests.packages.chardet',34 ])35else:36 packages.append('requests.packages.chardet2')percent encodedKenneth Reitzbefore adoption946f7ec
line 37why, one step back37new vendored libsKenneth Reitzbefore adoption35f6671
line 38why, one step back38requires = []oauthlibKenneth Reitzbefore adoption9324c2a
line 39why, one step back39percent encodedKenneth Reitzbefore adoption946f7ec
lines 40–49why, one step back40setup(41 name='requests',42 version=requests.__version__,43 description='Python HTTP for Humans.',44 long_description=open('README.rst').read() + '\n\n' +45 open('HISTORY.rst').read(),46 author='Kenneth Reitz',47 author_email='me@kennethreitz.com',48 url='http://python-requests.org',49 packages=packages,new vendored libsKenneth Reitzbefore adoption35f6671
lines 50–51why, one step back50 package_data={'': ['LICENSE', 'NOTICE'], 'requests': ['*.pem']},51 package_dir={'requests': 'requests'},percent encodedKenneth Reitzbefore adoption946f7ec
line 52why, one step back52 include_package_data=True,Change setup.py to reflect required/optional dependenciesShivaram Lingamnenibefore adoptionbdd7f8f
line 53why, one step back53 install_requires=requires,v0.13.2Kenneth Reitzbefore adoptionfb2ce4f
line 54why, one step back54 license=open('LICENSE').read(),percent encodedKenneth Reitzbefore adoption946f7ec
lines 55–67why, one step back55 classifiers=(56 'Development Status :: 5 - Production/Stable',57 'Intended Audience :: Developers',58 'Natural Language :: English',59 'License :: OSI Approved :: ISC License (ISCL)',60 'Programming Language :: Python',61 'Programming Language :: Python :: 2.6',62 'Programming Language :: Python :: 2.7',63 'Programming Language :: Python :: 3',64 'Programming Language :: Python :: 3.0',65 'Programming Language :: Python :: 3.1',66 ),67)