Prevent pip from installing pytest in unsupported Python versions

Fix #2922
This commit is contained in:
Bruno Oliveira 2017-11-14 22:27:15 -02:00
parent 685387a43e
commit e87ff07370
2 changed files with 2 additions and 0 deletions

1
changelog/2922.trivial Normal file
View File

@ -0,0 +1 @@
Configure ``pytest`` to prevent pip from installing pytest in unsupported Python versions.

View File

@ -83,6 +83,7 @@ def main():
cmdclass={'test': PyTest}, cmdclass={'test': PyTest},
# the following should be enabled for release # the following should be enabled for release
setup_requires=['setuptools-scm'], setup_requires=['setuptools-scm'],
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
install_requires=install_requires, install_requires=install_requires,
extras_require=extras_require, extras_require=extras_require,
packages=['_pytest', '_pytest.assertion', '_pytest._code'], packages=['_pytest', '_pytest.assertion', '_pytest._code'],