Skip to content
Myr

cleanup setup.py from #2991

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 458cb64 · Browse files · 1 file+2 added−9 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+2 added−9 removed

  • other:+2 added−9 removed

1 file+2 added−9 removed

modified:setup.py+2 added-9 removed
9 unmodified lines
10from setuptools import setup11from setuptools.command.test import test as TestCommand121314JYTHON = platform.system() == 'Java'151614class PyTest(TestCommand):15 user_options = [('pytest-args=', 'a', "Arguments to pass into py.test")]1617 def initialize_options(self):
27 unmodified lines
45 'requests.packages.urllib3.packages.ssl_match_hostname',46]4748requires = []52test_requirements = ['pytest>=2.8.0', 'pytest-httpbin==0.0.7']49test_requirements = ['pytest>=2.8.0', 'pytest-httpbin==0.0.7', 'pytest-cov']5054if not JYTHON:55 test_requirements.append('pytest-cov')5651with open('requests/__init__.py', 'r') as fd:52 version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',53 fd.read(), re.MULTILINE).group(1)54
32 unmodified lines
87 'Programming Language :: Python :: 3.3',88 'Programming Language :: Python :: 3.4',89 'Programming Language :: Python :: 3.5',90 'Programming Language :: Python :: Implementation :: CPython',97 'Programming Language :: Python :: Implementation :: PyPy',98 'Programming Language :: Python :: Implementation :: Jython',91 'Programming Language :: Python :: Implementation :: PyPy'92 ),93 cmdclass={'test': PyTest},94 tests_require=test_requirements,95 extras_require={
3 unmodified lines