python-colcon-core fails to build with Python 3.13.0a5. =================================== FAILURES =================================== ______________________________ test_create_parser ______________________________ def test_create_parser(): with ExtensionPointContext(): parser = create_parser('colcon_core.environment_variable') parser.add_argument('--foo', nargs='*', type=str.lstrip) > args = parser.parse_args(['--foo', '--bar', '--baz']) test/test_command.py:101: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.13/argparse.py:1919: in parse_args self.error(msg % ' '.join(argv)) /usr/lib64/python3.13/argparse.py:2695: in error self.exit(2, _('%(prog)s: error: %(message)s\n') % args) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = CustomArgumentParser(prog='pytest', usage=None, description=None, formatter_class=<class 'colcon_core.command.CustomFormatter'>, conflict_handler='error', add_help=True) status = 2, message = 'pytest: error: unrecognized arguments: --bar --baz\n' def exit(self, status=0, message=None): if message: self._print_message(message, _sys.stderr) > _sys.exit(status) E SystemExit: 2 /usr/lib64/python3.13/argparse.py:2682: SystemExit ----------------------------- Captured stderr call ----------------------------- usage: pytest [-h] [--log-base LOG_BASE] [--log-level LOG_LEVEL] [--foo [FOO ...]] pytest: error: unrecognized arguments: --bar --baz =========================== short test summary info ============================ FAILED test/test_command.py::test_create_parser - SystemExit: 2 =========== 1 failed, 144 passed, 4 skipped, 5 deselected in 14.36s ============ 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/07193455-python-colcon-core/ For all our attempts to build python-colcon-core with Python 3.13, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-colcon-core/ 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.
FEDORA-2024-f6f61f92ba (COLCON-20240409) has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2024-f6f61f92ba
FEDORA-2024-0c685e4d78 (COLCON-20240409) has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2024-0c685e4d78
FEDORA-EPEL-2024-e66a664a96 (COLCON-20240409) has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-e66a664a96
FEDORA-2024-e092c979d8 (COLCON-20240409) has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2024-e092c979d8
FEDORA-EPEL-2024-e2bfa1a43d (COLCON-20240409) has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-e2bfa1a43d
The change which broke `colcon-core` in Python 3.13 was actually backported to 3.12 and 3.11 as well. I have released a new version of `colcon-core` which contains the fix on all supported distros.
FEDORA-2024-0c685e4d78 has been pushed to the Fedora 39 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-0c685e4d78` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-0c685e4d78 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2024-f6f61f92ba has been pushed to the Fedora 40 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-f6f61f92ba` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-f6f61f92ba See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-EPEL-2024-77431ab983 has been pushed to the Fedora EPEL 9 testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-77431ab983 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-EPEL-2024-e2bfa1a43d has been pushed to the Fedora EPEL 8 testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-e2bfa1a43d See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-EPEL-2024-e66a664a96 has been pushed to the Fedora EPEL 7 testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-e66a664a96 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2024-e092c979d8 has been pushed to the Fedora 38 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-e092c979d8` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-e092c979d8 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2024-0c685e4d78 (COLCON-20240409) has been pushed to the Fedora 39 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2024-e092c979d8 (COLCON-20240409) has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-EPEL-2024-e2bfa1a43d (COLCON-20240409) has been pushed to the Fedora EPEL 8 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-EPEL-2024-77431ab983 (COLCON-20240409) has been pushed to the Fedora EPEL 9 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-EPEL-2024-e66a664a96 (COLCON-20240409) has been pushed to the Fedora EPEL 7 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2024-f6f61f92ba (COLCON-20240409) has been pushed to the Fedora 40 stable repository. If problem still persists, please make note of it in this bug report.
The "build logs" link leads to a 404 error, I believe the correct one right now is: https://copr-be.cloud.fedoraproject.org/results/%40python/python3.13/fedora-rawhide-x86_64/07289487-python-colcon-core/ Nitpicking: I see the package name is defined as "Npython-%{srcname}", shouldn't it include the python version as well the same way the subpackages are, such as "python%{python3_pkgversion}..."?
The naming is correct. The component name shouldn't be versioned unless there's a strong reason to, and it produces a versioned built package. See: https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_naming