Fedora Account System
Red Hat Associate
Red Hat Customer
python-django5 fails to build with Python 3.15.0a8. FAIL: test_invalid_choice_db_option (admin_scripts.tests.CommandDBOptionChoiceTests.test_invalid_choice_db_option) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib64/python3.15/argparse.py", line 2124, in _parse_known_args2 namespace, args = self._parse_known_args(args, namespace, intermixed) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.15/argparse.py", line 2375, in _parse_known_args start_index = consume_optional(start_index) File "/usr/lib64/python3.15/argparse.py", line 2299, in consume_optional take_action(action, args, option_string) ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.15/argparse.py", line 2185, in take_action argument_values = self._get_values(action, argument_strings) File "/usr/lib64/python3.15/argparse.py", line 2702, in _get_values self._check_value(action, value) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^ File "/usr/lib64/python3.15/argparse.py", line 2773, in _check_value raise ArgumentError(action, msg % args) argparse.ArgumentError: argument --database: invalid choice: 'deflaut', maybe you meant 'default'? (choose from default, other) During handling of the above exception, another exception occurred: django.core.management.base.CommandError: Error: argument --database: invalid choice: 'deflaut', maybe you meant 'default'? (choose from default, other) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/builddir/build/BUILD/python-django5-5.2.11-build/django-5.2.11/tests/admin_scripts/tests.py", line 2431, in test_invalid_choice_db_option with self.assertRaisesRegex(CommandError, expected_error): ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError: "Error: argument --database: invalid choice: 'deflaut' \(choose from '?default'?, '?other'?\)" does not match "Error: argument --database: invalid choice: 'deflaut', maybe you meant 'default'? (choose from default, other)" https://docs.python.org/3.15/whatsnew/3.15.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.15/fedora-rawhide-x86_64/10318665-python-django5/ For all our attempts to build python-django5 with Python 3.15, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.15/package/python-django5/ 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.15: https://copr.fedorainfracloud.org/coprs/g/python/python3.15/ Let us know here if you have any questions. Python 3.15 is planned to be included in Fedora 45. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.15. 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.