setup.py
This file
Path
setup.py
61 lines · 1.8 KiB · Python
Last changed by
v0.13.2Kenneth Reitzbefore adoptionfb2ce4f
History of this fileTake it
The walk stopped after 200 commits: lines older than ec979dc point at it.
nose not found :(Kenneth Reitzbefore adoptionec979dc
lines 1–2why, one step back1#!/usr/bin/env python2Merge pull request #572 from slingamn/chardet_2Kenneth Reitzbefore adoptiona3e5563
line 3why, one step back3import osnose not found :(Kenneth Reitzbefore adoptionec979dc
line 4why, one step back4import sysChange setup.py to reflect required/optional dependenciesShivaram Lingamnenibefore adoptionbdd7f8f
line 5why, one step back5nose not found :(Kenneth Reitzbefore adoptionec979dc
lines 6–19why, one step back6import requests78try:9 from setuptools import setup10except ImportError:11 from distutils.core import setup1213if sys.argv[-1] == 'publish':14 os.system('python setup.py sdist upload')15 sys.exit()1617packages = [18 'requests',19 'requests.packages',v0.13.2Kenneth Reitzbefore adoptionfb2ce4f
lines 20–24why, one step back20 'requests.packages.oauthlib',21 'requests.packages.oauthlib.oauth1',22 'requests.packages.oauthlib.oauth1.rfc5849',23 'requests.packages.oauthlib.oauth2',24 'requests.packages.oauthlib.oauth2.draft25',new vendored libsKenneth Reitzbefore adoption35f6671
lines 25–26why, one step back25 'requests.packages.chardet',26 'requests.packages.chardet2',nose not found :(Kenneth Reitzbefore adoptionec979dc
lines 27–28why, one step back27 'requests.packages.urllib3',28 'requests.packages.urllib3.packages',oauthlibKenneth Reitzbefore adoption9576518
line 29why, one step back29 'requests.packages.urllib3.packages.ssl_match_hostname'nose not found :(Kenneth Reitzbefore adoptionec979dc
lines 30–31why, one step back30]31new vendored libsKenneth Reitzbefore adoption35f6671
line 32why, one step back32requires = []oauthlibKenneth Reitzbefore adoption9324c2a
line 33why, one step back33nose not found :(Kenneth Reitzbefore adoptionec979dc
lines 34–43why, one step back34setup(35 name='requests',36 version=requests.__version__,37 description='Python HTTP for Humans.',38 long_description=open('README.rst').read() + '\n\n' +39 open('HISTORY.rst').read(),40 author='Kenneth Reitz',41 author_email='me@kennethreitz.com',42 url='http://python-requests.org',43 packages=packages,new vendored libsKenneth Reitzbefore adoption35f6671
lines 44–45why, one step back44 package_data={'': ['LICENSE', 'NOTICE'], 'requests': ['*.pem']},45 package_dir={'requests': 'requests'},nose not found :(Kenneth Reitzbefore adoptionec979dc
line 46why, one step back46 include_package_data=True,Change setup.py to reflect required/optional dependenciesShivaram Lingamnenibefore adoptionbdd7f8f
line 47why, one step back47 install_requires=requires,v0.13.2Kenneth Reitzbefore adoptionfb2ce4f
line 48why, one step back48 license=open('LICENSE').read(),nose not found :(Kenneth Reitzbefore adoptionec979dc
lines 49–61why, one step back49 classifiers=(50 'Development Status :: 5 - Production/Stable',51 'Intended Audience :: Developers',52 'Natural Language :: English',53 'License :: OSI Approved :: ISC License (ISCL)',54 'Programming Language :: Python',55 'Programming Language :: Python :: 2.6',56 'Programming Language :: Python :: 2.7',57 'Programming Language :: Python :: 3',58 'Programming Language :: Python :: 3.0',59 'Programming Language :: Python :: 3.1',60 ),61)