Fedora Account System
Red Hat Associate
Red Hat Customer
python-django6 fails to build with Python 3.15.0b2. FAIL: test_version (admin_scripts.tests.CommandTypes.test_version) version is handled as a special case ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib64/python3.15/unittest/case.py", line 58, in testPartExecutor yield File "/usr/lib64/python3.15/unittest/case.py", line 691, in run self._callTestMethod(testMethod) File "/usr/lib64/python3.15/unittest/case.py", line 637, in _callTestMethod result = method() ^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/python-django6-6.0.5-build/django-6.0.5/tests/admin_scripts/tests.py", line 1945, in test_version self.assertNoOutput(err) ^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/python-django6-6.0.5-build/django-6.0.5/tests/admin_scripts/tests.py", line 184, in assertNoOutput self.assertEqual( ^^^^^^^^^^^^^^^ File "/usr/lib64/python3.15/unittest/case.py", line 949, in assertEqual assertion_func(first, second, msg=msg) ^^^^^^^^^^^^^^^ File "/usr/lib64/python3.15/unittest/case.py", line 942, in _baseAssertEqual raise self.failureException(msg) ^^^^^^^^^^^ AssertionError: 796 != 0 : Stream should be empty: actually contains 'Error in import line from /usr/lib/python3.15/site-packages/sphinxcontrib_spelling-7.3.3-py3.15-nspkg.pth: import sys, types, os;p = os.path.join(sys._getframe(1).f_locals['sitedir'], *('sphinxcontrib',));importlib = __import__('importlib.util');__import__('importlib.machinery');m = sys.modules.setdefault('sphinxcontrib', importlib.util.module_from_spec(importlib.machinery.PathFinder.find_spec('sphinxcontrib', [os.path.dirname(p)])));m = m or sys.modules.setdefault('sphinxcontrib', types.ModuleType('sphinxcontrib'));mp = (m or []) and m.__dict__.setdefault('__path__',[]);(p not in mp) and mp.append(p) Traceback (most recent call last): File "<frozen site>", line 533, in _exec_imports File "<string>", line 1, in <module> KeyError: "local variable ''sitedir'' is not defined" and probably more... https://docs.python.org/3.15/whatsnew/3.15.html For our attempts to build python-django6 with Python 3.15, see: https://koji.fedoraproject.org/koji/search?terms=python-django6&type=package&match=exact 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.