InvalidDistribution: Metadata is missing required fields: Name, Version.
Author: impredicativeCreated Dec 16, 2024Updated Mar 4, 2025
Steps to Reproduce
I am unable to publish to PyPI. This was working fine for me with an older version of rye. For what it's worth, here is my pyproject.toml.
Expected Result
Obviously I should be able to publish to PyPI.
Actual Result
I get the error:
Uploading distributions to https://upload.pypi.org/legacy/
ERROR InvalidDistribution: Metadata is missing required fields: Name, Version.
Make sure the distribution includes the files where those fields are specified, and is using a supported Metadata-Version: 1.0, 1.1, 1.2, 2.0, 2.1, 2.2, 2.3.
error: failed to publish filesI do have name and version defined in my pyproject.toml (see Steps).
Version Info
rye 0.43.0
commit: unknown (d67cac134 2024-12-09)
platform: linux (aarch64)
self-python: [email protected]
symlink support: true
uv enabled: trueStacktrace
No response
Source: astral-sh/rye