python-jedi fails to build with Python 3.15.0a3. Numerous tests fail: FAILED test/test_api/test_interpreter.py::test__getattr__completions[False-False] FAILED test/test_api/test_interpreter.py::test__getattr__completions[False-True] FAILED test/test_api/test_interpreter.py::test_property_error_oldstyle[False] FAILED test/test_api/test_interpreter.py::test_property_error_newstyle[False] FAILED test/test_api/test_interpreter.py::test_dir_magic_method[False] - Asse... FAILED test/test_api/test_interpreter.py::test_dunders[False-DunderCls()[0]-int-False] FAILED test/test_api/test_interpreter.py::test_dunders[False-DunderCls()[0]-int-True] FAILED test/test_api/test_interpreter.py::test_dunders[False-dunder[0]-int-False] FAILED test/test_api/test_interpreter.py::test_dunders[False-dunder[0]-int-True] FAILED test/test_api/test_interpreter.py::test_dunders[False-next(DunderCls())-float-False] FAILED test/test_api/test_interpreter.py::test_dunders[False-next(DunderCls())-float-True] FAILED test/test_api/test_interpreter.py::test_dunders[False-next(dunder)-float-False] FAILED test/test_api/test_interpreter.py::test_dunders[False-next(dunder)-float-True] FAILED test/test_api/test_interpreter.py::test_dunders[False-for x in DunderCls(): x-str-False] FAILED test/test_api/test_interpreter.py::test_dunders[False-for x in DunderCls(): x-str-True] FAILED test/test_api/test_interpreter.py::test_param_infer_default - Assertio... FAILED test/test_api/test_interpreter.py::test_custom__getitem__[False-True] === 17 failed, 3737 passed, 22 skipped, 116 deselected, 1 xfailed in 49.76s ==== Example failure: ______________________ test_custom__getitem__[False-True] ______________________ class_is_findable = True, allow_unsafe_getattr = False @pytest.mark.parametrize('class_is_findable', [False, True]) def test_custom__getitem__(class_is_findable, allow_unsafe_getattr): class CustomGetItem: def __getitem__(self, x: int): return "asdf" if not class_is_findable: CustomGetItem.__name__ = "something_somewhere" namespace = {'c': CustomGetItem()} if not class_is_findable and not allow_unsafe_getattr: expected = [] else: expected = ['upper'] > _assert_interpreter_complete('c["a"].up', namespace, expected) test/test_api/test_interpreter.py:861: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = 'c["a"].up' namespace = {'c': <test.test_api.test_interpreter.test_custom__getitem__.<locals>.CustomGetItem object at 0x7f77a533ae40>} completions = ['upper'], check_type = False, kwds = {} script = <Interpreter: None <jedi.api.environment.InterpreterEnvironment object at 0x7f779cc00250>> cs = [], actual = [], @py_assert2 = [], @py_assert7 = ['upper'] def _assert_interpreter_complete(source, namespace, completions, *, check_type=False, **kwds): script = jedi.Interpreter(source, [namespace], **kwds) cs = script.complete() actual = [c.name for c in cs] if check_type: for c in cs: c.type > assert sorted(actual) == sorted(completions) E AssertionError: assert [] == ['upper'] E E Right contains one more item: 'upper' E Use -v to get more diff 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/09935351-python-jedi/ For all our attempts to build python-jedi with Python 3.15, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.15/package/python-jedi/ 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.
https://src.fedoraproject.org/rpms/python-jedi/pull-request/19 https://copr.fedorainfracloud.org/coprs/build/10206254
https://koji.fedoraproject.org/koji/taskinfo?taskID=143206287