Hide Forgot
python-django fails to build with Python 3.10.0a2. FAIL: test_memoryview_content (httpwrappers.tests.HttpResponseTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/Django-3.1.2/tests/httpwrappers/tests.py", line 372, in test_memoryview_content self.assertEqual(r.content, b'memoryview') AssertionError: b'109101109111114121118105101119' != b'memoryview' This has been fixed upstream: https://github.com/django/django/pull/13648 For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.10/fedora-rawhide-x86_64/01756925-python-django/ For all our attempts to build python-django with Python 3.10, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/python-django/ 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.10: https://copr.fedorainfracloud.org/coprs/g/python/python3.10/ Let us know here if you have any questions. Python 3.10 will be included in Fedora 35. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.10. 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.
I tried to build python-django with 4th alpha and it seems like the above problem is not present anymore. But I ran to another test failure: ====================================================================== ERROR: model_enums.tests (unittest.loader._FailedTest) ---------------------------------------------------------------------- ImportError: Failed to import test module: model_enums.tests Traceback (most recent call last): File "/usr/lib64/python3.10/unittest/loader.py", line 436, in _find_test_path module = self._get_module_from_name(name) File "/usr/lib64/python3.10/unittest/loader.py", line 377, in _get_module_from_name __import__(name) File "/builddir/build/BUILD/Django-3.1.5/tests/model_enums/tests.py", line 225, in <module> class IPv4Network(ipaddress.IPv4Network, models.Choices): File "/builddir/build/BUILD/Django-3.1.5/django/db/models/enums.py", line 28, in __new__ cls = super().__new__(metacls, classname, bases, classdict) File "/usr/lib64/python3.10/enum.py", line 239, in __new__ enum_class.__bases__ = enum_class.__bases__[1:] #or (object, ) File "/usr/lib64/python3.10/enum.py", line 483, in __setattr__ super().__setattr__(name, value) TypeError: __bases__ assignment: 'IPv4Network' object layout differs from '_NoInitSubclass' https://download.copr.fedorainfracloud.org/results/@python/python3.10/fedora-rawhide-x86_64/01863009-python-django/builder-live.log.gz
Here are new failures with 5th alpha of Python 3.10 (last one should be fixed in upstream). ====================================================================== ERROR: test_integerchoices_functional_api (model_enums.tests.ChoicesTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/Django-3.1.6/tests/model_enums/tests.py", line 74, in test_integerchoices_functional_api Place = models.IntegerChoices('Place', 'FIRST SECOND THIRD') File "/usr/lib64/python3.10/enum.py", line 598, in __call__ return cls._create_( File "/usr/lib64/python3.10/enum.py", line 738, in _create_ return metacls.__new__(metacls, class_name, bases, classdict, boundary=boundary) TypeError: ChoicesMeta.__new__() got an unexpected keyword argument 'boundary' ====================================================================== ERROR: test_textchoices_functional_api (model_enums.tests.ChoicesTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/Django-3.1.6/tests/model_enums/tests.py", line 115, in test_textchoices_functional_api Medal = models.TextChoices('Medal', 'GOLD SILVER BRONZE') File "/usr/lib64/python3.10/enum.py", line 598, in __call__ return cls._create_( File "/usr/lib64/python3.10/enum.py", line 738, in _create_ return metacls.__new__(metacls, class_name, bases, classdict, boundary=boundary) TypeError: ChoicesMeta.__new__() got an unexpected keyword argument 'boundary' ====================================================================== FAIL: test_memoryview_content (httpwrappers.tests.HttpResponseTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/Django-3.1.6/tests/httpwrappers/tests.py", line 372, in test_memoryview_content self.assertEqual(r.content, b'memoryview') AssertionError: b'109101109111114121118105101119' != b'memoryview' ----------------------------------------------------------------------
This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle. Changing version to 34.
I still only see: ====================================================================== FAIL: test_memoryview_content (httpwrappers.tests.HttpResponseTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/Django-3.1.6/tests/httpwrappers/tests.py", line 372, in test_memoryview_content self.assertEqual(r.content, b'memoryview') AssertionError: b'109101109111114121118105101119' != b'memoryview' ---------------------------------------------------------------------- Ran 13829 tests in 527.276s In the latest Copr build. The upstream fix is included in 3.2a1, bz1917820.