setup.py
This file
Path
setup.py
112 lines · 3.3 KiB · Python
Last changed by
Merge pull request #5688 from dan-blanchard/patch-1Nate Prewittbefore adoptionb223291
History of this fileTake it
The walk stopped after 200 commits: lines older than 8761e97 point at it.
Bumped maximum version of idnaAlex Gaynorbefore adoption8761e97
lines 1–44why, 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 = [Merge pull request #5688 from dan-blanchard/patch-1Nate Prewittbefore adoptionb223291
line 45why, one step back45 'chardet>=3.0.2,<5',Limit dependencies to major instead of minor (#5342)Chris Withersbefore adoptionc46f55b
line 46why, one step back46 'idna>=2.5,<3',v2.25.0Nate Prewittbefore adoption03957eb
line 47why, one step back47 'urllib3>=1.21.1,<1.27',Bumped maximum version of idnaAlex Gaynorbefore adoption8761e97
lines 48–56why, one step back48 'certifi>=2017.4.17'4950]51test_requirements = [52 'pytest-httpbin==0.0.7',53 'pytest-cov',54 'pytest-mock',55 'pytest-xdist',56 'PySocks>=1.5.6, !=1.5.7',Merge pull request #5049 from hroncok/pytest4Kenneth Reitzbefore adoption0fe6653
line 57why, one step back57 'pytest>=3'Bumped maximum version of idnaAlex Gaynorbefore adoption8761e97
lines 58–76why, one step back58]5960about = {}61with open(os.path.join(here, 'requests', '__version__.py'), 'r', 'utf-8') as f:62 exec(f.read(), about)6364with open('README.md', 'r', 'utf-8') as f:65 readme = f.read()6667setup(68 name=about['__title__'],69 version=about['__version__'],70 description=about['__description__'],71 long_description=readme,72 long_description_content_type='text/markdown',73 author=about['__author__'],74 author_email=about['__author_email__'],75 url=about['__url__'],76 packages=packages,v2.25.0Nate Prewittbefore adoption03957eb
line 77why, one step back77 package_data={'': ['LICENSE', 'NOTICE']},Bumped maximum version of idnaAlex Gaynorbefore adoption8761e97
lines 78–79why, one step back78 package_dir={'requests': 'requests'},79 include_package_data=True,Merge pull request #5092 from kennethreitz/urllib1.25Frost Mingbefore adoption8e26bfd
line 80why, one step back80 python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*",Bumped maximum version of idnaAlex Gaynorbefore adoption8761e97
lines 81–95why, one step back81 install_requires=requires,82 license=about['__license__'],83 zip_safe=False,84 classifiers=[85 'Development Status :: 5 - Production/Stable',86 'Intended Audience :: Developers',87 'Natural Language :: English',88 'License :: OSI Approved :: Apache Software License',89 'Programming Language :: Python',90 'Programming Language :: Python :: 2',91 'Programming Language :: Python :: 2.7',92 'Programming Language :: Python :: 3',93 'Programming Language :: Python :: 3.5',94 'Programming Language :: Python :: 3.6',95 'Programming Language :: Python :: 3.7',Update setup.pyKenneth Reitzbefore adoptionbc81ee3
line 96why, one step back96 'Programming Language :: Python :: 3.8',v2.25.0Nate Prewittbefore adoption03957eb
line 97why, one step back97 'Programming Language :: Python :: 3.9',Bumped maximum version of idnaAlex Gaynorbefore adoption8761e97
lines 98–103why, one step back98 'Programming Language :: Python :: Implementation :: CPython',99 'Programming Language :: Python :: Implementation :: PyPy'100 ],101 cmdclass={'test': PyTest},102 tests_require=test_requirements,103 extras_require={Limit dependencies to major instead of minor (#5342)Chris Withersbefore adoptionc46f55b
line 104why, one step back104 'security': ['pyOpenSSL >= 0.14', 'cryptography>=1.3.4'],Bumped maximum version of idnaAlex Gaynorbefore adoption8761e97
lines 105–107why, one step back105 'socks': ['PySocks>=1.5.6, !=1.5.7'],106 'socks:sys_platform == "win32" and python_version == "2.7"': ['win_inet_pton'],107 },Merge pull request #4999 from greysteil/add-project-urlsKenneth Reitzbefore adoption8086ffd
line 108why, one step back108 project_urls={Change documentation website to requests.readthedocs.io (#5236)Sorin Sbarneabefore adoptiond2590ee
line 109why, one step back109 'Documentation': 'https://requests.readthedocs.io',updating project urlNate Prewittbefore adoptione08981e
line 110why, one step back110 'Source': 'https://github.com/psf/requests',Merge pull request #4999 from greysteil/add-project-urlsKenneth Reitzbefore adoption8086ffd
line 111why, one step back111 },Bumped maximum version of idnaAlex Gaynorbefore adoption8761e97
line 112why, one step back112)