This is perhaps straying from the topic of python-toml, but this message prompted me to remove[1] the python-tomli dependency from the hatch package.

[1] https://src.fedoraproject.org/rpms/hatch/c/7a40576697ae9b58231efcfdcf9c869394d52f72?branch=rawhide

On 10/14/22 15:36, Maxwell G via devel wrote:
On 22/10/06, Ben Cotton wrote:
https://fedoraproject.org/wiki/Changes/DeprecatePythonToml

This document represents a proposed Change. As part of the Changes
process, proposals are publicly announced in order to receive
community feedback. This proposal will only be implemented if approved
by the Fedora Engineering Steering Committee.


== Summary ==
The {{package|python-toml}} (`python3-toml`) package will be
[https://docs.fedoraproject.org/en-US/packaging-guidelines/deprecating-packages/
deprecated] in [[Releases/38|Fedora 38]]. The
[https://pypi.org/project/toml/ upstream toml package] is considered
unmaintained (see [[#Detailed_Description|description]]) and Python
3.11 contains [https://peps.python.org/pep-0680/ a TOML-reading
library in the standard library]. Existing Fedora packages depend on
{{package|python-toml}}, so we cannot remove it yet. Packagers are
encouraged to work with upstreams to switch to
[https://peps.python.org/pep-0680/
tomllib]/[https://pypi.org/project/tomli/ tomli] for reading toml or
[https://pypi.org/project/tomli/ tomli-w] for writing it. But
{{package|python-toml}} remains available until it is a leaf package,
it will be removed then (possibly not yet in Fedora 38).
 From the table of contents:
1.4 Detailed Description

     1.4.1 List of components still (Build)Requiring python3-toml
     1.4.2 Migrating to tomllib
     1.4.3 Migrating to tomli
     1.4.4 Migrating to tomllib on Python 3.11+ and falling back to tomli
     1.4.5 Migrating to tomllib on Python 3.11+ and falling back to toml
     1.4.6 Migrating to tomli-w
Perhaps the "Migrating to tomllib on Python 3.11+ and falling back to
tomli" approach should be more strongly recommended? tomllib is based
off of tomli's code and is yet another thing that has to be bootstrapped
during Python rebuilds. python-toml AND python-tomli have been removed
from ELN/RHEL 10, as they're both made redundant by tomllib.

I wonder if it would make sense to also phase out python-tomli at some
point. FWIW, the list of packages that directly require tomli is
relatively small.

$ ./python_toml_deps.py python3-tomli
Runtime dependents of python3-tomli:
1. pyp2spec
2. python3-check-manifest
3. python3-flit
4. python3-flit-core
5. python3-pep517
6. python3-pytest
7. python3-setuptools_scm
8. python3-sphinx-theme-builder
9. python3-towncrier
10. python3-versioningit

Buildtime dependents of python3-tomli:
1. bst-external
2. hatch
3. pyp2spec
4. pytest
5. python-diff-cover
6. python-flit
7. python-pep517
8. python-pyproject-metadata
9. python-setuptools_scm
10. python-sphinx-theme-builder
11. python-towncrier
12. python-versioningit
13. python3-mypy
14. sagemath

Source RPM names:
1. bst-external
2. hatch
3. pyp2spec
4. pytest
5. python-check-manifest
6. python-diff-cover
7. python-flit
8. python-pep517
9. python-pyproject-metadata
10. python-setuptools_scm
11. python-sphinx-theme-builder
12. python-towncrier
13. python-versioningit
14. python3-mypy
15. sagemath

(This list was generated with [0]. Unlike dnf repoquery[1], this script
accounts for conditional dependencies on "python3 < 3.11".)

[0]: 
https://git.sr.ht/~gotmax23/fedora-scripts/tree/main/item/python_toml_deps.py
[1]: https://bugzilla.redhat.com/show_bug.cgi?id=2132462


_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to