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

Files built by uv build do not necessarily match the "success" message #11103

Open
dimbleby opened this issue Jan 30, 2025 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@dimbleby
Copy link

Summary

eg

curl -O https://files.pythonhosted.org/packages/ea/46/f44d8be06b85bc7c4d8c95d658be2b68f27711f279bf9dd0612a5e4794f5/ruamel.yaml-0.18.10.tar.gz
uv build --wheel ruamel.yaml-0.18.10.tar.gz

giving output that ends Successfully built ruamel_yaml-0.18.10-py3-none-any.whl

but this is not true, the setuptools backend is not PEP491 compliant, so the file that is actually built is ruamel.yaml-0.18.10-py3-none-any.whl.

I guess uv is assuming that the output is always spec-compliant?

It's a pretty minor confusion.

(Also this particular example should go away soon, there's a pull request open in setuptools for PEP491-compliance that looks likely to merge any day now.)

Platform

ubuntu 24.04

Version

0.5.25

Python version

3.13

@dimbleby dimbleby added the bug Something isn't working label Jan 30, 2025
@konstin
Copy link
Member

konstin commented Jan 30, 2025

Your guesses are right: uv is parsing the filename and using its normalized string printer for it. This would always be the same value for a spec-compliant build backend, which setuptools isn't (pypa/setuptools#4766). We could warn about this but it's not something the user can fix (#8203).

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

No branches or pull requests

2 participants