-
Notifications
You must be signed in to change notification settings - Fork 853
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
metadata version missmatch in uv 0.5.5 #9513
Comments
This is probably #9442: It's correct that you can only use |
Hi Konstin, I use.: [build-system]
requires = ["setuptools", "wheel", "setuptools-scm"]
build-backend = "setuptools.build_meta" If it helps, the full project is located here.: https://github.com/MarketSquare/robotframework-construct |
I got the same error with Here is the repo: https://github.com/FHU-yezi/sshared The failed publish GitHub Action flow: https://github.com/FHU-yezi/sshared/actions/runs/12078435589/job/33682841905 It is a pure Python package and I got this error after updated to the latest uv version. |
This is a bug in setuptools: pypa/setuptools#4759 uv unfortunately can't do anything about this. |
Ok thanks. Any ideas how to have dynamic versioning without setuptools?
konsti ***@***.***> schrieb am Fr., 29. Nov. 2024, 11:42:
… This is a bug in setuptools: pypa/setuptools#4759
<pypa/setuptools#4759>
uv unfortunately can't do anything about this.
—
Reply to this email directly, view it on GitHub
<#9513 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACXSBILVY5IYIXHUHCKUNST2DBAH5AVCNFSM6AAAAABSVWJU6KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBXGU2DGNRZGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
@franzhaas versioningit works with setuptools and also hatchling. |
I did not try to upload, but when building with hatchling, I ended up using metadata 2.3... for both uv 0.5.4 and 0.5.5... this might be related to this one.: |
Setuptools is broken (astral-sh/uv#9513)
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build" fixed my issue. as @kbrgl suggested |
Why === Looks like setuptools has some issues with a new pypi restriction: astral-sh/uv#9513. Hatchling does not have these issues. What changed ============ Switch to hatchling Test plan ========= Can we publish?
If you still want to use setuptools as build backend, a simple workaround is to explicitly provide an empty value for [tool.setuptools]
license-files = [] |
Upload to PyPI failed with setuptools - astral-sh/uv#9513
Dear all,
I got this error when building and uploading my wheel with 0.5.5 to pypi.org.:
But it does work for me with 0.5.4.
Accoridng to the release notes, with 0.5.5 uv started to use license-file, however I did not see a mention of moving the metadata version...
Any ideas?
Thanks in advance,
Franz
The text was updated successfully, but these errors were encountered: