Skip to content

InvalidDistribution: Metadata is missing required fields: Name, Version. #1446

@impredicative

Description

@impredicative

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 files

I 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: true

Stacktrace

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions