Skip to content

Configure metadata version manually #1872

@itymchyshyn-sc

Description

@itymchyshyn-sc

Background

Hatchling automatically determines metadata version when building a package. While hatchling==1.26.3 builds my package with Metadata-Version: 2.3 in the PKG-INFO, hatchling==1.27.0 builds it with Metadata-Version: 2.4. The PKG-INFO files seems identical in both cases except for the metadata version. It looks like it's impossible to configure the metadata version manually in pyproject.toml. This is an issue, because twine==6.0.1 is not supporting Metadata-Version: 2.4, but it is supporting Metadata-Version: 2.3 and lower.

Request

It would be great if there was an option to specify the metadata version manually in pyproject.toml file.
Another solution would be to always use minimal possible Metadata-Version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions