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

Workaround pypa/setuptools#4759 #71

Merged
merged 2 commits into from
Jan 1, 2025
Merged

Workaround pypa/setuptools#4759 #71

merged 2 commits into from
Jan 1, 2025

Conversation

tpgillam
Copy link
Owner

https://github.com/tpgillam/mt2/actions/runs/12408409883/job/34640456714

DEBUG Received token, using trusted publishing
Uploading mt2-1.2.3-cp310-cp310-macosx_10_9_universal2.whl (70.3KiB)
DEBUG Hashing dist/mt2-1.2.3-cp310-cp310-macosx_10_9_universal2.whl
DEBUG Using username/password basic auth
DEBUG Response code for https://upload.pypi.org/legacy/: 400 Bad Request
DEBUG Upload error response: {"message": "The server could not comply with the request since it is either malformed or otherwise incorrect.\n\n\nlicense-file introduced in metadata version 2.4, not 2.1. See https://packaging.python.org/specifications/core-metadata for more information.\n\n", "code": "400 license-file introduced in metadata version 2.4, not 2.1. See https://packaging.python.org/specifications/core-metadata for more information.", "title": "Bad Request"}
error: Failed to publish `dist/mt2-1.2.3-cp310-cp310-macosx_10_9_universal2.whl` to https://upload.pypi.org/legacy/
  Caused by: Upload failed with status code 400 Bad Request. Server says: 400 license-file introduced in metadata version 2.4, not 2.1. See https://packaging.python.org/specifications/core-metadata for more information.

See:

Here we implement the workaround suggested in astral-sh/uv#9513. We can't trivially switch build backend right now since we're relying on setuptools to compile our extension module.

@tpgillam tpgillam requested a review from Rupt December 19, 2024 08:13
@tpgillam tpgillam self-assigned this Dec 19, 2024
@tpgillam tpgillam enabled auto-merge (squash) December 24, 2024 14:41
@tpgillam tpgillam merged commit d2bca83 into main Jan 1, 2025
38 checks passed
@tpgillam tpgillam deleted the tg/meta branch January 1, 2025 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants