Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[:bug:] Issue on Twine Upload #56

Closed
uncatchable-de opened this issue Jan 22, 2025 · 2 comments
Closed

[:bug:] Issue on Twine Upload #56

uncatchable-de opened this issue Jan 22, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@uncatchable-de
Copy link

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:

  • Download whl with pip download kiss-headers --no-deps -d <directory>
  • Upload whl with: 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.

@uncatchable-de uncatchable-de added the bug Something isn't working label Jan 22, 2025
@uncatchable-de
Copy link
Author

Please note that for testing the repository URL must not be reachable.

@uncatchable-de
Copy link
Author

Closing this issue. It seems to be a TWINE issue: pypa/twine#1216

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant