-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement PEP 639 #9670
Comments
We will wait for packaging to support it and use their implementation. |
This looks to be implemented in packaging 24.2. https://github.com/pypa/packaging/releases/tag/24.2 |
Hi - we started getting the following error when trying to update
|
We have the same problem |
urllib3 2.3.0 released today uses metadata version 2.4. |
@andresdelfino what problem is that causing for you? and have you seen astral-sh/ruff#14681 (comment)? It seems upgrading |
Sorry, I had a problem because I was using a Poetry installation made before the new pkginfo came out. Running a new installation of Poetry solved the problem. |
Issue Kind
Change in current behaviour
Description
See: https://peps.python.org/pep-0639
Additional context:
The full implementation, including the Core Metadata bump to 2.4, will require also the support on the side of PyPI first:
Implement PEP 639 pypi/warehouse#16620
There's a plan to add validation data and parser to packaging:
Add SPDX license data pypa/packaging#799 + PEP 639: Implement License-Expression and License-File pypa/packaging#828
Impact
poetry now uses the
license
field from the custom[tool.poetry]
table - this will enable unification under the specified main[project]
table of pyproject.toml and map to a new core metadata field.This also brings in a standardized way of specifying the license files in the package metadata, which will help the downstream consumers locate them unambiguously.
Workarounds
poetry now includes both the license expression (as SPDX) and the license files in the distribution. This will just make the declarations and metadata unified across many packaging tools.
The text was updated successfully, but these errors were encountered: