- Run more tests
The motivation for this is 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.
As a result of this change, the unused dependencies on packaged wheels are dropped,
but the tests are collected and only those that require wheels are skipped (still the most).
This change enables some tests, but skips most of them :/
Before: 1567 passed, 28 skipped, 12 deselected, 8 xfailed
After: 1602 passed, 893 skipped, 173 deselected, 8 xfailed
The added comment assumes python-wheel-wheel no longer exists.
- Also build manual pages on RHEL
- The python-pip-doc package is gone but not Obsoleted, it has no dependencies
Also:
Rename the bcond,
update the CI test,
use sphinx-build without the -3 suffix,
always BR python3-sphinx (for RHEL alternate Python versions where we don't package Sphinx).
pip >= 20 has a mechanism that replaces our pip-allow-different-versions.patch
However, we kept our patch to support users doing e.g.:
$ pip install --user --upgrade 'pip<20'
However, pip 19.3.1 (the latest <20 version) does not even operate without distutils:
(venv3.12)$ pip list
Package Version
---------- -------
pip 22.3.1
setuptools 65.5.0
(venv3.12)$ pip install --upgrade 'pip<20'
...
(venv3.12) $ pip list
Traceback (most recent call last):
File ".../venv3.12/bin/pip", line 5, in <module>
from pip._internal.main import main
File ".../venv3.12/lib64/python3.12/site-packages/pip/_internal/main.py", line 13, in <module>
from pip._internal.cli.autocompletion import autocomplete
File ".../venv3.12/lib64/python3.12/site-packages/pip/_internal/cli/autocompletion.py", line 11, in <module>
from pip._internal.cli.main_parser import create_main_parser
File ".../venv3.12/lib64/python3.12/site-packages/pip/_internal/cli/main_parser.py", line 7, in <module>
from pip._internal.cli import cmdoptions
File ".../venv3.12/lib64/python3.12/site-packages/pip/_internal/cli/cmdoptions.py", line 19, in <module>
from distutils.util import strtobool
ModuleNotFoundError: No module named 'distutils'
Hence, it no longer makes any sense to keep the patch with Python 3.12.