setup.py
This file
Path
setup.py
108 lines · 3.2 KiB · Python
Last changed by
Merge branch 'master' into masterDenis Belavinbefore adoption9c3c755
History of this fileTake it
The walk stopped after 200 commits: lines older than 8c4f784 point at it.
Merge pull request #4332 from PrimordialHelios/pyopenssl-warningCory Benfieldbefore adoption8c4f784
lines 1–45why, one step back1#!/usr/bin/env python2# Learn more: https://github.com/kennethreitz/setup.py3import os4import re5import sys67from codecs import open89from setuptools import setup10from setuptools.command.test import test as TestCommand1112here = os.path.abspath(os.path.dirname(__file__))1314class PyTest(TestCommand):15 user_options = [('pytest-args=', 'a', "Arguments to pass into py.test")]1617 def initialize_options(self):18 TestCommand.initialize_options(self)19 try:20 from multiprocessing import cpu_count21 self.pytest_args = ['-n', str(cpu_count()), '--boxed']22 except (ImportError, NotImplementedError):23 self.pytest_args = ['-n', '1', '--boxed']2425 def finalize_options(self):26 TestCommand.finalize_options(self)27 self.test_args = []28 self.test_suite = True2930 def run_tests(self):31 import pytest3233 errno = pytest.main(self.pytest_args)34 sys.exit(errno)3536# 'setup.py publish' shortcut.37if sys.argv[-1] == 'publish':38 os.system('python setup.py sdist bdist_wheel')39 os.system('twine upload dist/*')40 sys.exit()4142packages = ['requests']4344requires = [45 'chardet>=3.0.2,<3.1.0',Bumped maximum version of idnaAlex Gaynorbefore adoption8761e97
line 46why, one step back46 'idna>=2.5,<2.9',Merge branch 'master' into masterDenis Belavinbefore adoption9c3c755
line 47why, one step back47 'urllib3>=1.21.1,<1.26,!=1.25.0,!=1.25.1',Merge pull request #4332 from PrimordialHelios/pyopenssl-warningCory Benfieldbefore adoption8c4f784
lines 48–50why, one step back48 'certifi>=2017.4.17'4950]Merge branch 'master' of github.com:requests/requestsKenneth Reitzbefore adoptionfdcb717
lines 51–58why, one step back51test_requirements = [52 'pytest-httpbin==0.0.7',53 'pytest-cov',54 'pytest-mock',55 'pytest-xdist',56 'PySocks>=1.5.6, !=1.5.7',57 'pytest>=2.8.0'58]Merge pull request #4332 from PrimordialHelios/pyopenssl-warningCory Benfieldbefore adoption8c4f784
lines 59–63why, one step back5960about = {}61with open(os.path.join(here, 'requests', '__version__.py'), 'r', 'utf-8') as f:62 exec(f.read(), about)63Update setup.pyKenneth Reitzbefore adoptioneea96f9
line 64why, one step back64with open('README.md', 'r', 'utf-8') as f:Merge pull request #4332 from PrimordialHelios/pyopenssl-warningCory Benfieldbefore adoption8c4f784
line 65why, one step back65 readme = f.read()Update setup.pyKenneth Reitzbefore adoptioneea96f9
line 66why, one step back66with open('HISTORY.md', 'r', 'utf-8') as f:Merge pull request #4332 from PrimordialHelios/pyopenssl-warningCory Benfieldbefore adoption8c4f784
lines 67–72why, one step back67 history = f.read()6869setup(70 name=about['__title__'],71 version=about['__version__'],72 description=about['__description__'],Update setup.pyKenneth Reitzbefore adoptioneea96f9
lines 73–74why, one step back73 long_description=readme,74 long_description_content_type='text/markdown',Merge pull request #4332 from PrimordialHelios/pyopenssl-warningCory Benfieldbefore adoption8c4f784
lines 75–81why, one step back75 author=about['__author__'],76 author_email=about['__author_email__'],77 url=about['__url__'],78 packages=packages,79 package_data={'': ['LICENSE', 'NOTICE'], 'requests': ['*.pem']},80 package_dir={'requests': 'requests'},81 include_package_data=True,Merge branch 'master' into masterDenis Belavinbefore adoption9c3c755
line 82why, one step back82 python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*",Merge pull request #4332 from PrimordialHelios/pyopenssl-warningCory Benfieldbefore adoption8c4f784
lines 83–85why, one step back83 install_requires=requires,84 license=about['__license__'],85 zip_safe=False,represent classifiers as list instead of tupleNate Prewittbefore adoption489f58c
line 86why, one step back86 classifiers=[Merge pull request #4332 from PrimordialHelios/pyopenssl-warningCory Benfieldbefore adoption8c4f784
lines 87–91why, one step back87 'Development Status :: 5 - Production/Stable',88 'Intended Audience :: Developers',89 'Natural Language :: English',90 'License :: OSI Approved :: Apache Software License',91 'Programming Language :: Python',Merge pull request #4343 from jdufresne/classifierNate Prewittbefore adoption54ad3d6
line 92why, one step back92 'Programming Language :: Python :: 2',Merge pull request #4332 from PrimordialHelios/pyopenssl-warningCory Benfieldbefore adoption8c4f784
lines 93–96why, one step back93 'Programming Language :: Python :: 2.7',94 'Programming Language :: Python :: 3',95 'Programming Language :: Python :: 3.5',96 'Programming Language :: Python :: 3.6',Add official Python 3.7 support (#4717)Eric Brownbefore adoption6686ac1
line 97why, one step back97 'Programming Language :: Python :: 3.7',Merge pull request #4332 from PrimordialHelios/pyopenssl-warningCory Benfieldbefore adoption8c4f784
lines 98–99why, one step back98 'Programming Language :: Python :: Implementation :: CPython',99 'Programming Language :: Python :: Implementation :: PyPy'represent classifiers as list instead of tupleNate Prewittbefore adoption489f58c
line 100why, one step back100 ],Merge pull request #4332 from PrimordialHelios/pyopenssl-warningCory Benfieldbefore adoption8c4f784
lines 101–103why, one step back101 cmdclass={'test': PyTest},102 tests_require=test_requirements,103 extras_require={Merge pull request #4835 from requests/2.20.0Nate Prewittbefore adoption75bdc99
line 104why, one step back104 'security': ['pyOpenSSL >= 0.14', 'cryptography>=1.3.4', 'idna>=2.0.0'],Merge pull request #4332 from PrimordialHelios/pyopenssl-warningCory Benfieldbefore adoption8c4f784
line 105why, one step back105 'socks': ['PySocks>=1.5.6, !=1.5.7'],Merge pull request #4835 from requests/2.20.0Nate Prewittbefore adoption75bdc99
line 106why, one step back106 'socks:sys_platform == "win32" and python_version == "2.7"': ['win_inet_pton'],Merge pull request #4332 from PrimordialHelios/pyopenssl-warningCory Benfieldbefore adoption8c4f784
lines 107–108why, one step back107 },108)