python-build fails to build with Python 3.11.0b3. ImportError while loading conftest '/builddir/build/BUILD/build-0.8.0/tests/conftest.py'. tests/conftest.py:13: in <module> import build.env ../../BUILDROOT/python-build-0.8.0-2.fc37.x86_64/usr/lib/python3.11/site-packages/build/env.py:27: in <module> import virtualenv /usr/lib/python3.11/site-packages/virtualenv/__init__.py:3: in <module> from .run import cli_run, session_via_cli /usr/lib/python3.11/site-packages/virtualenv/run/__init__.py:14: in <module> from .plugin.creators import CreatorSelector /usr/lib/python3.11/site-packages/virtualenv/run/plugin/creators.py:6: in <module> from virtualenv.create.via_global_ref.builtin.builtin_way import VirtualenvBuiltin /usr/lib/python3.11/site-packages/virtualenv/create/via_global_ref/builtin/builtin_way.py:7: in <module> from virtualenv.create.creator import Creator /usr/lib/python3.11/site-packages/virtualenv/create/creator.py:15: in <module> from virtualenv.discovery.cached_py_info import LogCmd /usr/lib/python3.11/site-packages/virtualenv/discovery/cached_py_info.py:11: in <module> import pipes /usr/lib64/python3.11/pipes.py:68: in <module> warnings._deprecated(__name__, remove=(3, 13)) /usr/lib64/python3.11/warnings.py:514: in _deprecated warn(msg, DeprecationWarning, stacklevel=3) E DeprecationWarning: 'pipes' is deprecated and slated for removal in Python 3.13 https://docs.python.org/3.11/whatsnew/3.11.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.11/fedora-rawhide-x86_64/04484653-python-build/ For all our attempts to build python-build with Python 3.11, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.11/package/python-build/ Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.11: https://copr.fedorainfracloud.org/coprs/g/python/python3.11/ Let us know here if you have any questions. Python 3.11 is planned to be included in Fedora 37. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.11. A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon. We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.
From the traceback, it seems that the problem is actually in python-virtualenv, not python-build. Not a problem as I maintain them both.
I can confirm that this fix proposed upstream fixes the problem in python-build: https://github.com/pypa/virtualenv/pull/2351
Downstream PR: https://src.fedoraproject.org/rpms/python-virtualenv/pull-request/67
FEDORA-2022-f06e5c0a53 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-f06e5c0a53
FEDORA-2022-f06e5c0a53 has been pushed to the Fedora 37 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2022-4c6ea8978c has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-4c6ea8978c
FEDORA-2022-4c6ea8978c has been pushed to the Fedora 36 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-4c6ea8978c` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-4c6ea8978c See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2022-4c6ea8978c has been pushed to the Fedora 36 stable repository. If problem still persists, please make note of it in this bug report.