python-inject fails to build with Python 3.10.0a2. =================================== FAILURES =================================== _______ TestFunctional.test_class_support_in_autoparams_programmaticaly ________ self = <test.test_functional.TestFunctional testMethod=test_class_support_in_autoparams_programmaticaly> def test_class_support_in_autoparams_programmaticaly(self): class AnotherClass: pass class SomeClass: def __init__(self, another_object: AnotherClass): self.another_object = another_object def config(binder): binder.bind_to_constructor(SomeClass, autoparams()(SomeClass)) binder.bind_to_constructor(AnotherClass, autoparams()(AnotherClass)) > inject.configure(config) test/test_functional.py:74: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ inject/__init__.py:356: in configure _INJECTOR = Injector(config, bind_in_runtime=bind_in_runtime) inject/__init__.py:202: in __init__ config(binder) test/test_functional.py:71: in config binder.bind_to_constructor(SomeClass, autoparams()(SomeClass)) inject/__init__.py:451: in autoparams_decorator types = get_type_hints(fn.__init__) /usr/lib64/python3.10/typing.py:1438: in get_type_hints value = _eval_type(value, globalns, localns) /usr/lib64/python3.10/typing.py:258: in _eval_type return t._evaluate(globalns, localns, recursive_guard) /usr/lib64/python3.10/typing.py:519: in _evaluate eval(self.__forward_code__, globalns, localns), _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > ??? E NameError: name 'AnotherClass' is not defined <string>:1: NameError =========================== short test summary info ============================ FAILED test/test_functional.py::TestFunctional::test_class_support_in_autoparams_programmaticaly ========================= 1 failed, 47 passed in 0.40s ========================= error: Bad exit status from /var/tmp/rpm-tmp.9hGmAu (%check) For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.10/fedora-rawhide-x86_64/01773177-python-inject/ For all our attempts to build python-inject with Python 3.10, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/python-inject/ 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.
This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle. Changing version to 34.
This is a mass-posted update. Sorry if it is not 100% accurate to this bugzilla. The Python 3.10 rebuild is in progress in a Koji side tag. If you manage to fix the problem, please commit the fix in the rawhide branch, but don't build the package in regular rawhide. You can either build the package in the side tag, with: $ fedpkg build --target=f35-python Or you can the build and we will eventually build it for you. Note that the rebuild is still in progress, so not all (build) dependencies of this package might be available right away. Thanks. See also https://fedoraproject.org/wiki/Changes/Python3.10 If you have general questions about the rebuild, please use this mailing list thread: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/G47SGOYIQLRDTWGOSLSWERZSSHXDEDH5/
The f35-python side tag has been merged to Rawhide. From now on, build as you would normally build.
This package was successfully rebuilt with Python 3.10. If you need this bugzilla open for tracking purposes, sorry for the automatic closing: feel free to reopen it.