You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If uploading the published whl files on an internal repository with Twine 6.1.0, an error is thrown:
ERROR InvalidDistribution: Invalid distribution metadata: license-expression introduced in metadata version 2.4, not 2.1
Describe the bug
If uploading the published whl files on an internal repository with Twine 6.1.0, an error is thrown:
ERROR InvalidDistribution: Invalid distribution metadata: license-expression introduced in metadata version 2.4, not 2.1
The license-expression is used here: https://github.com/jawah/kiss-headers/blob/master/pyproject.toml#L9
To Reproduce
Steps to reproduce the behavior:
pip download kiss-headers --no-deps -d <directory>
twine upload --repository-url https://artifactory.com/artifactory/api/pypi/pypi-local <directory>
Expected behavior
The package should be compatible with Twine. Please update the metadata version or remove the expression from pyproject.toml.
Additional context
This is necessary in business environments, where only internal Repositories are allowed.
The text was updated successfully, but these errors were encountered: