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 done
coverage: coverage:
python3 selftest.py pytest -qq
python3 setup.py test
rm -r htmlcov || true rm -r htmlcov || true
coverage report coverage report

View File

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

View File

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