mNo edit summary |
(adding tracker links) |
||
Line 44: | Line 44: | ||
* [https://discussion.fedoraproject.org/t/f42-change-proposal-deprecate-python-pytest-runner-self-contained/141620 Discussion thread] | * [https://discussion.fedoraproject.org/t/f42-change-proposal-deprecate-python-pytest-runner-self-contained/141620 Discussion thread] | ||
* FESCo issue: [https://pagure.io/fesco/issue/3337 #3337] | * FESCo issue: [https://pagure.io/fesco/issue/3337 #3337] | ||
* Tracker bug: | * Tracker bug: [https://bugzilla.redhat.com/show_bug.cgi?id=2342231 #2342231 | ||
* Release notes tracker: | * Release notes tracker: [https://gitlab.com/fedora/docs/fedora-linux-documentation/release-notes/-/issues/162 #162] | ||
== Detailed Description == | == Detailed Description == |
Latest revision as of 11:45, 27 January 2025
Deprecate python-pytest-runner
Summary
The
(python-pytest-runner
) package will be deprecated in Fedora Linux 42. Dependent packages are encouraged to switch to using python3-pytest-runner
pytest
directly.
Owner
- Name: Michel Lind, Ben Beasley
- Email: michel@michel-slm.name, code@musicinmybrain.net
Current status
- Targeted release: Fedora Linux 42
- Last updated: 2025-01-27
- Announced
- Discussion thread
- FESCo issue: #3337
- Tracker bug: [https://bugzilla.redhat.com/show_bug.cgi?id=2342231 #2342231
- Release notes tracker: #162
Detailed Description
pytest-runner has been considered deprecated upstream since 2019 and the repo upstream was archived over a year ago (December 3, 2023).
Per upstream,
|
How to migrate to pytest
- Remove 'pytest-runner' from your 'setup_requires', preferably removing the
setup_requires
option. - Remove 'pytest' and any other testing requirements from 'tests_require', preferably removing the
setup_requires
option. - See our guidelines for how to specify test dependencies
- Invoke tests with
pytest
- Another good option is to configure a
tox.ini
next to yoursetup.cfg
. https://tox.readthedocs.io/en/latest/
Feedback
Benefit to Fedora
The security benefits mostly do not apply to us, as we install dependencies from RPM packages. But preventing additional packages from depending on a package with a dead upstream that might increasingly become incompatible with newer setuptools
releases would avoid us accumulating tech debt and having to deal with potential test runner failures in the future.
Scope
- Proposal owners:
- Mark
as deprecated inpython-pytest-runner
rawhide
- Send PRs to affected packages to remove dependencies on this package
- Mark
- Other developers:
- If your package depends on {{package|python-pytest-runner}, adjust it to drop the dependency
- Release engineering: no impact anticipated
- Policies and guidelines: N/A (not needed for this Change)
- Trademark approval: N/A (not needed for this Change)
- Alignment with the Fedora Strategy: N/A
Upgrade/compatibility impact
N/A. This just deprecates the package, and stops it from being used in new dependencies.
Early Testing (Optional)
Do you require 'QA Blueprint' support? N
How To Test
$ fedrq pkgs python3-pytest-runner -F provides | grep deprecated
deprecated()
User Experience
No changes
Dependencies
N/A (not a system-wide change)
Contingency Plan
- Contingency mechanism: (What to do? Who will do it?) N/A (not a System Wide Change)
- Contingency deadline: N/A (not a System Wide Change)
- Blocks release? N/A (not a System Wide Change), Yes/No
Documentation
N/A (not a System Wide Change)