RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2175215 - RFE: Add python-tomli to RHEL 8
Summary: RFE: Add python-tomli to RHEL 8
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: python-tomli
Version: 8.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Python Maintainers
QA Contact: Lukáš Zachar
URL:
Whiteboard:
Depends On: 2177271 2178565 2178577
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-03 15:06 UTC by Miro Hrončok
Modified: 2023-11-14 16:10 UTC (History)
7 users (show)

Fixed In Version: python-tomli-1.2.3-4.el8
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-14 15:25:39 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources python-tomli pull-request 22 0 None None None 2023-03-08 16:08:01 UTC
Red Hat Bugzilla 2175213 0 unspecified CLOSED RFE: Add python-tomli to RHEL 9 2023-11-07 09:04:33 UTC
Red Hat Issue Tracker RHELPLAN-150630 0 None None None 2023-03-03 15:07:30 UTC
Red Hat Issue Tracker RHELPLAN-151061 0 None None None 2023-03-08 14:33:24 UTC
Red Hat Product Errata RHBA-2023:6911 0 None None None 2023-11-14 15:25:40 UTC

Internal Links: 2175213

Description Miro Hrončok 2023-03-03 15:06:03 UTC
I would very much like to add python3-tomli to RHEL 8.

The currently shipped TOML-parsing module in python3-pytoml is deprecated in Fedora [1] and unwanted in RHEL 9+ [2]. Projects that wish to support RHEL 8 as well as Fedora and RHEL 9+ need to maintain a complex spaghetti of ifs or try-excepts to choose their TOML-parsing module.

Some Red Hat upstream projects even justify reverting community contributions to migrate to a modern and upstream-maintained TOML parser by the absence of tomli in RHEL 8 [3]. We don't want that. We want all upstreams to be able to switch to tomllib on Python 3.11+ with a fallback to tomli. In order to make that easier for them, we should make tomli available in RHEL 8.

The package is already available in EPEL 8 [4] where I helped with the initial review and the EPEL maintainer is on board with us introducing this package to RHEL proper [5].


[1] https://fedoraproject.org/wiki/Changes/DeprecatePytoml
[2] https://tiny.distro.builders/config-unwanted--sst_cs_apps-unwanted-python3.html
[3] https://github.com/containers/podman-py/pull/240
[4] https://src.fedoraproject.org/rpms/python-tomli/tree/epel8
[5] https://github.com/containers/podman-py/pull/240#issuecomment-1440308239

Comment 1 Petr Viktorin (pviktori) 2023-03-06 08:42:21 UTC
For context, `tomli` was added to the Python 3.11+ standard library as `tomllib`.
I reviewed it for inclusion there. It's written with decades of maintenance in mind.

Comment 6 Miro Hrončok 2023-03-08 16:08:01 UTC
Diff against EPEL 8: https://src.fedoraproject.org/rpms/python-tomli/pull-request/22

Comment 7 Miro Hrončok 2023-03-09 15:39:39 UTC
(In reply to Miro Hrončok from comment #6)
> Diff against EPEL 8:
> https://src.fedoraproject.org/rpms/python-tomli/pull-request/22

I went ahead and added a smoke test TMT plan to the PR as I anticipated it will be required.

Comment 8 Miro Hrončok 2023-03-16 09:41:30 UTC
With mock-core-configs at least 38.3-1.fc37 (currently a pending update):

$ mock -r centos-stream-8-x86_64 init
...
$ mock -r centos-stream-8-x86_64 --enablerepo=local install python3-tomli
...
Installed:
  python3-tomli-1.2.3-4.el8.noarch

Comment 9 Miro Hrončok 2023-03-22 17:45:47 UTC
$ repoquery -q --repo=c8s-appstream python3-tomli
python3-tomli-0:1.2.3-4.el8.noarch

$ repoquery -q --repo=RHEL8.9-AppStream python3-tomli
python3-tomli-0:1.2.3-4.el8.noarch

Yay \o/

Comment 17 errata-xmlrpc 2023-11-14 15:25:39 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (python-tomli bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:6911


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