Merge pull request #4393 from jdufresne/pytest-runner

Remove deprecated pytest-runner support
This commit is contained in:
Hugo van Kemenade 2020-01-29 12:59:27 +02:00 committed by GitHub
commit 52ea75a510
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 10 deletions

View File

@ -15,8 +15,7 @@ co:
done
coverage:
python3 selftest.py
python3 setup.py test
pytest -qq
rm -r htmlcov || true
coverage report

View File

@ -1,6 +1,3 @@
[aliases]
test=pytest
[flake8]
extend-ignore = E203, W503
max-line-length = 88

View File

@ -845,9 +845,6 @@ def debug_build():
return hasattr(sys, "gettotalrefcount")
needs_pytest = {"pytest", "test", "ptr"}.intersection(sys.argv)
pytest_runner = ["pytest-runner"] if needs_pytest else []
try:
setup(
name=NAME,
@ -884,8 +881,6 @@ try:
cmdclass={"build_ext": pil_build_ext},
ext_modules=[Extension("PIL._imaging", ["_imaging.c"])],
include_package_data=True,
setup_requires=pytest_runner,
tests_require=["pytest"],
packages=["PIL"],
package_dir={"": "src"},
keywords=["Imaging"],