Skip to content

packaging issues with license-expression #376

@sebastianelsner

Description

@sebastianelsner

Hello,

I am trying to upload execnet-2.1.1.tar.gz to our internal GitLab pypi mirror and am facing an issue with the current distribution when uploading with twine:

ERROR    InvalidDistribution: Invalid distribution metadata: license-expression 
         introduced in metadata version 2.4, not 2.3                            
Failed uploading ./package-index/execnet/execnet-2.1.1.tar.gz

As far as I understand the issue, your toml license line should be:

license = {file = "LICENSE"}

OR

license = {file = "LICENSE"}

OR update the release tools so the metadata is 2.4.

The same happened in the iniconfig package: pytest-dev/iniconfig#62
It was fixed by bumping hatchling: https://github.com/pytest-dev/iniconfig/pull/63/files

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