- Drop test requirement of python-wheel-wheel
- Use pytest-xdist to run tests faster
The motivation for this was the need to drop python-wheel-wheel in wheel 0.46+.
Due to newly gained runtime dependencies of wheel,
such wheel cannot be used as is.
I realized that when the explicit BuildRequires is removed,
the package is brought in by python3-virtualenv.
But even when python3-virtualenv drops the dependency,
the tests still passed without python-wheel-wheel.
Because the tests that require packaged wheels were all --ignored
for obsolete reasons. When unignored, they errored due to missing coverage.whl.
While attempting to fix this, I realized we cannot use the RPM packaged wheel anyway.
When the functional tests run, it takes a while, hence pytest-xdist.
---
For the record, the coverage-0-py3-none-any.whl was created as:
[project]
name = "coverage"
version = "0"
[build-system]
requires = ["setuptools >= 77.0.3"]
build-backend = "setuptools.build_meta"
And coverage.py with:
def process_startup():
pass
Wheel generated by `python3 -m build` (with python3-build-1.2.1-4.fc41.noarch).
Pypi source does not include tests folder so they had to be manually
downloaded from GitHub. This commit replaces pypi source with tarball
from GitHub where tests are included.
This also fixes rpmlint invalid-url warning.
Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1793456
The main() wrapper moved the import path again, this time with compatibility shim:
- we still need pip-allow-different-versions.patch to support older pips installed by users
- we dropped callable-main.patch - the shim is provided by pip for all previous paths
- no need to patch older pips to support user installed pip 20+
- no need to patch Pythons (or virtualenv) to support pip 20+ wheel in ensurepip