Bug 1891791
Summary: | python-attrs fails to build with Python 3.10: Different exception message in test ("HypClass.__init__()" vs "__init__()") | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tomáš Hrnčiar <thrnciar> |
Component: | python-attrs | Assignee: | Lumír Balhar <lbalhar> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | lbalhar, mhroncok, python-sig, spacewar, thrnciar |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-05-06 09:07:30 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1890881 |
Description
Tomáš Hrnčiar
2020-10-27 11:35:07 UTC
The troubles in attrs library are caused by an implementation of PEP 563 — type annotations in Python 3.10 are now stored as strings for the postponed evaluation. I've created an upstream issue: https://github.com/python-attrs/attrs/issues/716 How big blocker is this issue for you? It doesn't really block other packages because we need to build attrs without tests first anyway. But until it is fixed, it might cover other more severe bugs. We might want to skip the 2 tests. I am afraid that there are namy more failing tests than just these two mentioned earlier. Have you tried to rebuild the package with 3.10a2? We have: https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/python-attrs/ But I have not checked the logs when writing the previous comment: FAILED tests/test_annotations.py::TestAnnotations::test_basic_annotations - A... FAILED tests/test_annotations.py::TestAnnotations::test_typing_annotations - ... FAILED tests/test_annotations.py::TestAnnotations::test_only_attrs_annotations_collected FAILED tests/test_annotations.py::TestAnnotations::test_auto_attribs[True] - ... FAILED tests/test_annotations.py::TestAnnotations::test_auto_attribs[False] FAILED tests/test_annotations.py::TestAnnotations::test_auto_attribs_subclassing[True] FAILED tests/test_annotations.py::TestAnnotations::test_auto_attribs_subclassing[False] FAILED tests/test_annotations.py::TestAnnotations::test_annotations_strings[typing.ClassVar-True] FAILED tests/test_annotations.py::TestAnnotations::test_annotations_strings[typing.ClassVar-False] FAILED tests/test_annotations.py::TestAnnotations::test_annotations_strings[t.ClassVar-True] FAILED tests/test_annotations.py::TestAnnotations::test_annotations_strings[t.ClassVar-False] FAILED tests/test_annotations.py::TestAnnotations::test_annotations_strings[ClassVar-True] FAILED tests/test_annotations.py::TestAnnotations::test_annotations_strings[ClassVar-False] FAILED tests/test_annotations.py::TestAnnotations::test_basic_resolve - asser... FAILED tests/test_annotations.py::TestAnnotations::test_resolve_types_auto_attrib[True] FAILED tests/test_annotations.py::TestAnnotations::test_resolve_types_auto_attrib[False] FAILED tests/test_annotations.py::TestAnnotations::test_self_reference[True] FAILED tests/test_annotations.py::TestAnnotations::test_self_reference[False] FAILED tests/test_annotations.py::TestAnnotations::test_forward_reference[True] FAILED tests/test_annotations.py::TestAnnotations::test_forward_reference[False] FAILED tests/test_dunders.py::TestAddInit::test_init - assert "__init__() g..... FAILED tests/test_funcs.py::TestEvolve::test_unknown - assert ("__init__() ..... ============ 22 failed, 918 passed, 6 skipped, 1 xfailed in 51.49s ============= This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle. Changing version to 34. Waiting for a new upstream release and there is one more compatibility PR: https://github.com/python-attrs/attrs/pull/771 New upstream issue: https://github.com/python-attrs/attrs/issues/803 and downstream PR: https://src.fedoraproject.org/rpms/python-attrs/pull-request/7 Builds fine again: https://copr.fedorainfracloud.org/coprs/g/python/python3.10/build/2167822/ |