Bug 1777382 - python-rpm-generators will break with Python 3.10
Summary: python-rpm-generators will break with Python 3.10
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-rpm-generators
Version: 32
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Miro Hrončok
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-27 14:37 UTC by Miro Hrončok
Modified: 2020-05-05 13:00 UTC (History)
8 users (show)

Fixed In Version: python-rpm-generators-10-1.fc32
Clone Of:
Environment:
Last Closed: 2020-05-05 13:00:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github rpm-software-management rpm pull 951 0 'None' closed Fix compatible-release, versions with dot-star, semantically versioned deps, and python version 2021-02-09 08:52:36 UTC

Description Miro Hrončok 2019-11-27 14:37:16 UTC
The current python-rpm-generators will break with Python 3.10.

The regex here requires and extra + after the second \d:

# Try to parse the Python version from the path the metadata
# resides at (e.g. /usr/lib/pythonX.Y/site-packages/...)
import re
res = re.search(r"/python(?P<pyver>\d+\.\d)/", path_item)

Comment 1 Neal Gompa 2019-11-27 14:42:05 UTC
I think this is already being handled as part of this: https://github.com/rpm-software-management/rpm/pull/951

Comment 2 Miro Hrončok 2019-11-27 15:49:08 UTC
Yes, there is one commit for that in it!

Comment 4 Ben Cotton 2020-02-11 17:38:15 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 32 development cycle.
Changing version to 32.


Note You need to log in before you can comment on or make changes to this bug.