setup.py
This file
Path
setup.py
111 lines · 3.3 KiB · Python
Last changed by
Update setup.py (#5780)Hans96before adoption2c2138e
History of this fileTake it
The walk stopped after 200 commits: lines older than 6f81e78 point at it.
Merge pull request #5099 from petar-iv/password-no-printBuğra İşgüzarbefore adoption6f81e78
lines 1–43why, one step back1#!/usr/bin/env python2# Learn more: https://github.com/kennethreitz/setup.py3import os4import sys56from codecs import open78from setuptools import setup9from setuptools.command.test import test as TestCommand1011here = os.path.abspath(os.path.dirname(__file__))1213class PyTest(TestCommand):14 user_options = [('pytest-args=', 'a', "Arguments to pass into py.test")]1516 def initialize_options(self):17 TestCommand.initialize_options(self)18 try:19 from multiprocessing import cpu_count20 self.pytest_args = ['-n', str(cpu_count()), '--boxed']21 except (ImportError, NotImplementedError):22 self.pytest_args = ['-n', '1', '--boxed']2324 def finalize_options(self):25 TestCommand.finalize_options(self)26 self.test_args = []27 self.test_suite = True2829 def run_tests(self):30 import pytest3132 errno = pytest.main(self.pytest_args)33 sys.exit(errno)3435# 'setup.py publish' shortcut.36if sys.argv[-1] == 'publish':37 os.system('python setup.py sdist bdist_wheel')38 os.system('twine upload dist/*')39 sys.exit()4041packages = ['requests']4243requires = [Merge pull request #5688 from dan-blanchard/patch-1Nate Prewittbefore adoptionb223291
line 44why, one step back44 'chardet>=3.0.2,<5',Limit dependencies to major instead of minor (#5342)Chris Withersbefore adoptionc46f55b
line 45why, one step back45 'idna>=2.5,<3',v2.25.0Nate Prewittbefore adoption03957eb
line 46why, one step back46 'urllib3>=1.21.1,<1.27',Merge pull request #5099 from petar-iv/password-no-printBuğra İşgüzarbefore adoption6f81e78
lines 47–55why, one step back47 'certifi>=2017.4.17'4849]50test_requirements = [51 'pytest-httpbin==0.0.7',52 'pytest-cov',53 'pytest-mock',54 'pytest-xdist',55 'PySocks>=1.5.6, !=1.5.7',Merge pull request #5049 from hroncok/pytest4Kenneth Reitzbefore adoption0fe6653
line 56why, one step back56 'pytest>=3'Merge pull request #5099 from petar-iv/password-no-printBuğra İşgüzarbefore adoption6f81e78
lines 57–75why, one step back57]5859about = {}60with open(os.path.join(here, 'requests', '__version__.py'), 'r', 'utf-8') as f:61 exec(f.read(), about)6263with open('README.md', 'r', 'utf-8') as f:64 readme = f.read()6566setup(67 name=about['__title__'],68 version=about['__version__'],69 description=about['__description__'],70 long_description=readme,71 long_description_content_type='text/markdown',72 author=about['__author__'],73 author_email=about['__author_email__'],74 url=about['__url__'],75 packages=packages,v2.25.0Nate Prewittbefore adoption03957eb
line 76why, one step back76 package_data={'': ['LICENSE', 'NOTICE']},Merge pull request #5099 from petar-iv/password-no-printBuğra İşgüzarbefore adoption6f81e78
lines 77–94why, one step back77 package_dir={'requests': 'requests'},78 include_package_data=True,79 python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*",80 install_requires=requires,81 license=about['__license__'],82 zip_safe=False,83 classifiers=[84 'Development Status :: 5 - Production/Stable',85 'Intended Audience :: Developers',86 'Natural Language :: English',87 'License :: OSI Approved :: Apache Software License',88 'Programming Language :: Python',89 'Programming Language :: Python :: 2',90 'Programming Language :: Python :: 2.7',91 'Programming Language :: Python :: 3',92 'Programming Language :: Python :: 3.5',93 'Programming Language :: Python :: 3.6',94 'Programming Language :: Python :: 3.7',Update setup.pyKenneth Reitzbefore adoptionbc81ee3
line 95why, one step back95 'Programming Language :: Python :: 3.8',v2.25.0Nate Prewittbefore adoption03957eb
line 96why, one step back96 'Programming Language :: Python :: 3.9',Merge pull request #5099 from petar-iv/password-no-printBuğra İşgüzarbefore adoption6f81e78
lines 97–102why, one step back97 'Programming Language :: Python :: Implementation :: CPython',98 'Programming Language :: Python :: Implementation :: PyPy'99 ],100 cmdclass={'test': PyTest},101 tests_require=test_requirements,102 extras_require={Limit dependencies to major instead of minor (#5342)Chris Withersbefore adoptionc46f55b
line 103why, one step back103 'security': ['pyOpenSSL >= 0.14', 'cryptography>=1.3.4'],Merge pull request #5099 from petar-iv/password-no-printBuğra İşgüzarbefore adoption6f81e78
lines 104–106why, one step back104 'socks': ['PySocks>=1.5.6, !=1.5.7'],105 'socks:sys_platform == "win32" and python_version == "2.7"': ['win_inet_pton'],106 },Merge pull request #4999 from greysteil/add-project-urlsKenneth Reitzbefore adoption8086ffd
line 107why, one step back107 project_urls={Change documentation website to requests.readthedocs.io (#5236)Sorin Sbarneabefore adoptiond2590ee
line 108why, one step back108 'Documentation': 'https://requests.readthedocs.io',updating project urlNate Prewittbefore adoptione08981e
line 109why, one step back109 'Source': 'https://github.com/psf/requests',Merge pull request #4999 from greysteil/add-project-urlsKenneth Reitzbefore adoption8086ffd
line 110why, one step back110 },Merge pull request #5099 from petar-iv/password-no-printBuğra İşgüzarbefore adoption6f81e78
line 111why, one step back111)