Skip to content
Myr

new vendored libs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent a17fdf6 · Browse files · 1 file+7 added−16 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−16 removed

  • other:+7 added−16 removed

1 file+7 added−16 removed

modified:setup.py+7 added-16 removed
6 unmodified lines
7import os8import sys910import requests11from requests.compat import is_py311from requests.compat import is_py21213try:14 from setuptools import setup15 # hush pyflakes
7 unmodified lines
2324packages = [25 'requests',26 'requests.packages',27 'requests.packages.chardet',28 'requests.packages.chardet2',29 'requests.packages.urllib3',30 'requests.packages.urllib3.packages',31 'requests.packages.urllib3.packages.ssl_match_hostname',32]3332# certifi is a Python package containing a CA certificate bundle for SSL verification.33# On certain supported platforms (e.g., Red Hat / Debian / FreeBSD), Requests can34# use the system CA bundle instead; see `requests.utils` for details.35# If your platform is supported, set `requires` to [] instead:36requires = ['certifi>=0.0.7']34requires = []3538# chardet is used to optimally guess the encodings of pages that don't declare one.39# At this time, chardet is not a required dependency. However, it's sufficiently40# important that pip/setuptools should install it when it's unavailable.41if is_py3:36if is_py2:42 chardet_package = 'chardet2'43else:44 chardet_package = 'chardet>=1.0.0'37 requires.append('oauthlib>=0.1.0,<0.2.0')3847requires.append(chardet_package)4839setup(40 name='requests',41 version=requests.__version__,42 description='Python HTTP for Humans.',
2 unmodified lines
45 author='Kenneth Reitz',46 author_email='me@kennethreitz.com',47 url='http://python-requests.org',48 packages=packages,59 package_data={'': ['LICENSE', 'NOTICE']},49 package_data={'': ['LICENSE', 'NOTICE'], 'requests': ['*.pem']},50 package_dir={'requests': 'requests'},51 include_package_data=True,52 install_requires=requires,53 license=open("LICENSE").read(),54 classifiers=(
12 unmodified lines