Bug 1793005
Summary: | python-ruamel-yaml fails to build with Python 3.9: imports abc from collections | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
Component: | python-ruamel-yaml | Assignee: | Chandan Kumar <chkumar> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | anthon.van.der.neut, chkumar, cstratak, jmontleo, mhroncok, openstack-sig, smilner |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | https://bitbucket.org/ruamel/yaml/issues/330/deprecation-test-fails-on-python-39 | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-01-20 21:33:07 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: | 1785415 |
Description
Miro Hrončok
2020-01-20 13:43:52 UTC
I filed a bug upstream. It looks like they dealt with the deprecation in https://bitbucket.org/ruamel/yaml/commits/34738b9e5db18cc93684030c74ca7ef80d6d5488 if I'm reading correctly, but I don't think this test as written can work beyond 3.8. That piece of code only tests if collections.Hashable throws an DeprecationWarning starting with 3.7 (test is skipped below 3.7) On 3.9 it doesn't raise a warning anymore, it has changed to an error. Should be fixed in ruamle.yaml>=0.16.6 ruamel.yaml 0.16.6 has been committed, uploaded to PyPI and added to the download page on bitbucket Please **close** the issue on bitbuucket, if this indeed solves this problem. I only maintain the EPEL 8 branch, so I created a PR: https://src.fedoraproject.org/rpms/python-ruamel-yaml/pull-request/5 This was tested successfully using the mock setup: Finish: rpmbuild python-ruamel-yaml-0.16.6-1.fc31.src.rpm Finish: build phase for python-ruamel-yaml-0.16.6-1.fc31.src.rpm INFO: Done(/home/jmontleo/rpmbuild/SRPMS/python-ruamel-yaml-0.16.6-1.fc31.src.rpm) Config(fedora-rawhide-python39) 1 minutes 0 seconds INFO: Results and/or logs in: /var/lib/mock/fedora-rawhide-python39/result The 0.16.6 update to address this is merged. |