Skip to content
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

platformdirs-4.3.6-py3-none-any has invalid distribution metadata #343

Closed
tiran opened this issue Mar 19, 2025 · 1 comment
Closed

platformdirs-4.3.6-py3-none-any has invalid distribution metadata #343

tiran opened this issue Mar 19, 2025 · 1 comment

Comments

@tiran
Copy link

tiran commented Mar 19, 2025

The latest version of Twine no longer accepts the latest release of platforms because there is a problem with the package's metadata. The wheel release uses packaging metadata 2.3 with a new field from metadata version 2.4. Previous versions of Twine accepted this combination. The current version fails:

$ twine check platformdirs-4.3.6-py3-none-any.whl 
Checking platformdirs-4.3.6-py3-none-any.whl: ERROR    InvalidDistribution: Invalid distribution metadata: license-expression introduced in metadata version 2.4, not 2.3
$ twine --version
twine version 6.1.0 (keyring: 25.6.0, packaging: 24.2, requests: 2.32.3, requests-toolbelt: 1.0.0, urllib3: 2.3.0, id: 1.5.0)

This problem was previously reported in #337. The issue was closed without a fix. @ofek said that the issue cause of the issue is fixed in Hatchling 1.26. Would you be so kind and upload a new release of platformdirs with correct metadata?

Background: We use an private GitLab's package index as a PyPI mirror for our projects. Our mirror scripts is a pip download + twine upload. This works well except for platformdirs and iniconfig. pytest-dev/iniconfig#62 is the same issue.

@gaborbernat
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants