Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 955191 - [TRACKER] dev-python/tomli removal
Summary: [TRACKER] dev-python/tomli removal
Status: CONFIRMED
Alias: None
Product: Quality Assurance
Classification: Unclassified
Component: Trackers (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on: 955193 955194 955195 955196 955197 955198 955199 955203 955204 955206 955207 955200 955201 955202 955205
Blocks:
  Show dependency tree
 
Reported: 2025-05-01 17:53 UTC by Michał Górny
Modified: 2025-05-01 18:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2025-05-01 17:53:21 UTC
dev-python/tomli was only necessary for Python < 3.11.  Since 3.11, the exact same library is part of the stdlib as `tomllib`.

Packages that support older Python versions should do something akin to:

  if sys.version_info >= (3, 11):
    import tomllib
  else:
    import tomli as tomllib

and depend on:

  tomli; python_version < "3.11"