setup.py
This file
Path
setup.py
76 lines · 2.3 KiB · Python
Last changed by
remove gevent extras_requireKenneth Reitzbefore adoption15694fa
History of this fileTake it
The walk stopped after 200 commits: lines older than 5e76943 point at it.
Merge branch 'develop' of https://github.com/Lukasa/requests into developKenneth Reitzbefore adoption5e76943
lines 1–2why, one step back1#!/usr/bin/env python2Change setup.py to reflect required/optional dependenciesShivaram Lingamnenibefore adoptionbdd7f8f
lines 3–6why, one step back3"""4distutils/setuptools install script. See inline comments for packaging documentation.5"""6Merge pull request #572 from slingamn/chardet_2Kenneth Reitzbefore adoptiona3e5563
line 7why, one step back7import osMerge branch 'develop' of https://github.com/Lukasa/requests into developKenneth Reitzbefore adoption5e76943
line 8why, one step back8import sysChange setup.py to reflect required/optional dependenciesShivaram Lingamnenibefore adoptionbdd7f8f
line 9why, one step back9Merge branch 'develop' of https://github.com/Lukasa/requests into developKenneth Reitzbefore adoption5e76943
line 10why, one step back10import requestsChange setup.py to reflect required/optional dependenciesShivaram Lingamnenibefore adoptionbdd7f8f
line 11why, one step back11from requests.compat import is_py3Merge branch 'develop' of https://github.com/Lukasa/requests into developKenneth Reitzbefore adoption5e76943
lines 12–14why, one step back1213try:14 from setuptools import setupMerge pull request #579 from slingamn/pyflakes.releaseKenneth Reitzbefore adoption3d373e2
lines 15–16why, one step back15 # hush pyflakes16 setupMerge branch 'develop' of https://github.com/Lukasa/requests into developKenneth Reitzbefore adoption5e76943
lines 17–32why, one step back17except ImportError:18 from distutils.core import setup1920if sys.argv[-1] == 'publish':21 os.system('python setup.py sdist upload')22 sys.exit()2324packages = [25 'requests',26 'requests.packages',27 'requests.packages.urllib3',28 'requests.packages.urllib3.packages',29 'requests.packages.urllib3.packages.ssl_match_hostname',30 'requests.packages.urllib3.packages.mimetools_choose_boundary',31]32Change setup.py to reflect required/optional dependenciesShivaram Lingamnenibefore adoptionbdd7f8f
lines 33–41why, one step back33# certifi is a Python package containing a CA certificate bundle for SSL verification.34# On certain supported platforms (e.g., Red Hat / Debian / FreeBSD), Requests can35# use the system CA bundle instead; see `requests.utils` for details.36# If your platform is supported, set `requires` to [] instead:37requires = ['certifi>=0.0.7']3839# chardet is used to optimally guess the encodings of pages that don't declare one.40# At this time, chardet is not a required dependency. However, it's sufficiently41# important that pip/setuptools should install it when it's unavailable.Merge branch 'develop' of https://github.com/Lukasa/requests into developKenneth Reitzbefore adoption5e76943
line 42why, one step back42if is_py3:Change setup.py to reflect required/optional dependenciesShivaram Lingamnenibefore adoptionbdd7f8f
line 43why, one step back43 chardet_package = 'chardet2'Merge branch 'develop' of https://github.com/Lukasa/requests into developKenneth Reitzbefore adoption5e76943
line 44why, one step back44else:Change setup.py to reflect required/optional dependenciesShivaram Lingamnenibefore adoptionbdd7f8f
line 45why, one step back45 chardet_package = 'chardet>=1.0.0'oauthlibKenneth Reitzbefore adoption9324c2a
lines 46–47why, one step back46 requires.append('oauthlib>=0.1.0,<0.2.0')47Change setup.py to reflect required/optional dependenciesShivaram Lingamnenibefore adoptionbdd7f8f
line 48why, one step back48requires.append(chardet_package)Merge branch 'develop' of https://github.com/Lukasa/requests into developKenneth Reitzbefore adoption5e76943
lines 49–61why, one step back4950setup(51 name='requests',52 version=requests.__version__,53 description='Python HTTP for Humans.',54 long_description=open('README.rst').read() + '\n\n' +55 open('HISTORY.rst').read(),56 author='Kenneth Reitz',57 author_email='me@kennethreitz.com',58 url='http://python-requests.org',59 packages=packages,60 package_data={'': ['LICENSE', 'NOTICE']},61 include_package_data=True,Change setup.py to reflect required/optional dependenciesShivaram Lingamnenibefore adoptionbdd7f8f
line 62why, one step back62 install_requires=requires,blahKenneth Reitzbefore adoptionbcbc1be
line 63why, one step back63 license=open("LICENSE").read(),Merge branch 'develop' of https://github.com/Lukasa/requests into developKenneth Reitzbefore adoption5e76943
lines 64–76why, one step back64 classifiers=(65 'Development Status :: 5 - Production/Stable',66 'Intended Audience :: Developers',67 'Natural Language :: English',68 'License :: OSI Approved :: ISC License (ISCL)',69 'Programming Language :: Python',70 'Programming Language :: Python :: 2.6',71 'Programming Language :: Python :: 2.7',72 'Programming Language :: Python :: 3',73 'Programming Language :: Python :: 3.0',74 'Programming Language :: Python :: 3.1',75 ),76)