-
Notifications
You must be signed in to change notification settings - Fork 933
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
Ensures we do not run into astral-sh/uv#9513 when publishing.
It should be no longer used since introduction of pyproject.toml, but apparently setuptools still parse it and that brings back issues like astral-sh/uv#9513 which are fixed in pyproject.toml.
Okay, here's what I don't understand... Does uv build do any caching of metadata somewhere? |
Use hatchling instead of setuptools should solve this problem, you can find guide about this in uv documentation. |
Thanks, I understand that's a valid workaround :-) Just based on the sequence of commands I ran, it appears there's also some issue in uv (maybe just a caching issue?) in addition to the one in setuptools |
PEP 639 adds two new fields to the wheel metadata, When uploading a wheel, the uploader reads the |
The twine PR was just merged. It also added a carveout for setuptools to exclude The setuptools behavior has been in place for so long at this point that it's probably not worth changing until PEP 639 is fully implemented. I've PRs open for that but those depend on some other work which need to happen first and will likely still need some time.
Yes, this is a workaround. However, I'd advise against it. It will not only remove the The ideal case would really be a workaround added to |
Set license-files to an empty array to work around issues releasing to PyPI. See: - astral-sh/uv#9513 - pypa/setuptools#4759
Set license-files to an empty array to work around issues releasing to PyPI. See: - astral-sh/uv#9513 - pypa/setuptools#4759
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: