pytest-runner is deprecated
Deprecated. The source gives no day. Replacement: tox, nox, or direct pytest invocation. Source: pytest-runner deprecation notice.
Check a version:
evergreen check pkg:pypi/pytest-runner
The maintainer warns that pytest-runner depends on deprecated Setuptools features and can bypass pip security mechanisms.
Look up another package or runtime · <form action="../lookup.html" method="get" role="search"> </form>
| Status | Deprecated |
| Severity | high |
| Ecosystem | python |
| Component | pkg:pypi/pytest-runner |
| Affected versions | vers:pypi/* |
| Date from the source | The source gives no day |
| Replacement | tox, nox, or direct pytest invocation |
| Evidence last seen | 2026-10-16 |
| Reviewed | 2026-10-16 by arminazimi |
| Review due | 2027-10-16 (365 days after the last review) |
| Rule ID | python.package.pytest-runner.deprecated |
Sources
- pytest-runner deprecation notice (accessed 2026-10-16)
Migration
Constraints
- Preserve test dependencies, pytest options, environment variables, supported Python versions, and CI exit behavior.
Steps
- Remove pytest-runner. Remove pytest-runner from setup requirements and move test dependencies out of tests_require.
- Add an explicit test runner. Configure tox, nox, or the existing environment manager to install test dependencies and invoke pytest directly.
Verification
python -m pytest: Run the test suite without setup.py test or pytest-runner.
Detected by
The python detector. See Detectors and Compatibility.
Related
Same ecosystem
- The aifc module was removed in Python 3.13
- The asynchat module was removed in Python 3.12
- The asyncore module was removed in Python 3.12
- The audioop module was removed in Python 3.13
- The cgi module was removed in Python 3.13
- The cgitb module was removed in Python 3.13
- The chunk module was removed in Python 3.13
- The crypt module was removed in Python 3.13
Data
This page is generated from registry/python.json, rule python.package.pytest-runner.deprecated, in the ebb.registry.v2 format (how rules are written). A CLE (ECMA-428) export is not published yet. The same facts are embedded in this page as schema.org structured data.
Last updated