python-cffsubr fails to build with Python 3.13.0a2. + /usr/bin/pytest -k '' ============================= test session starts ============================== platform linux -- Python 3.13.0a2, pytest-7.4.3, pluggy-1.3.0 rootdir: /builddir/build/BUILD/cffsubr-0.2.9.post1 configfile: tox.ini testpaths: tests, cffsubr collected 0 items / 1 error / 3 skipped ==================================== ERRORS ==================================== ____________________ ERROR collecting tests/cffsubr_test.py ____________________ ImportError while importing test module '/builddir/build/BUILD/cffsubr-0.2.9.post1/tests/cffsubr_test.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: ../../BUILDROOT/python-cffsubr-0.2.9.post1-8.fc40.x86_64/usr/lib/python3.13/site-packages/cffsubr/__init__.py:11: in <module> from importlib.resources import path E ImportError: cannot import name 'path' from 'importlib.resources' (/usr/lib64/python3.13/importlib/resources/__init__.py) During handling of the above exception, another exception occurred: /usr/lib64/python3.13/importlib/__init__.py:88: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/cffsubr_test.py:6: in <module> import cffsubr ../../BUILDROOT/python-cffsubr-0.2.9.post1-8.fc40.x86_64/usr/lib/python3.13/site-packages/cffsubr/__init__.py:14: in <module> from importlib_resources import path E ModuleNotFoundError: No module named 'importlib_resources' ========================= 3 skipped, 1 error in 0.13s ========================== The deprecated importlib.resources methods were removed from Python 3.13: - contents() - is_resource() - open_binary() - open_text() - path() - read_binary() - read_text() Use files() instead. Refer to importlib-resources: Migrating from Legacy for migration advice. https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy https://docs.python.org/3.13/whatsnew/3.13.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06692174-python-cffsubr/ For all our attempts to build python-cffsubr with Python 3.13, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-cffsubr/ 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.13: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/ Let us know here if you have any questions. Python 3.13 is planned to be included in Fedora 41. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13. 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.
https://src.fedoraproject.org/rpms/python-cffsubr/pull-request/3
PR was merged.