-
Notifications
You must be signed in to change notification settings - Fork 733
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
Implement --report
for uv pip install
#1442
Comments
related #411 |
Do we have any current workaround for this? |
+1, this feature will be very useful for us for creating reproducible environments. |
Can you expand on the use-case? Why would this be an output of |
We are basically trying to get parity with https://pip.pypa.io/en/stable/cli/pip_install/#obtaining-information-about-what-was-installed. The goal is to get the list of files that will be downloaded along with their SHA hashes (without actually creating the environemtn). We could use that to recreate the exact environment for CI/CD |
This sounds like the purpose of |
I think the difference is that compile won’t tell you the specific wheels or source distributions that you’d need to install for the current platform. |
Yes, |
For us, we're PoCing a requirements-lock feature and we support two "venv backends":
For the first one we were planning to use the |
My use case is that I package a huge project with lots of dependencies (a meta-repo; some are editable) using https://github.com/nix-community/dream2nix. In Nix world, all files must either be built offline or hash-verified if online. The locking process uses pip and is terribly slow. I'd love to speed it up with uv, but uv lacks the report feature, which is the one used by the lock process to produce valid nix FODs. I checked by using |
(Just as an aside: you often need to build a wheel in order to perform dependency resolution.) |
@yajo I implemented a uv solver with dream2nix at https://github.com/datakami/cognix/blob/main/modules/pip-uv/default.nix, but it requires a patched uv My patch isn't really upstreamable, but it would be great to instead have |
From the
pip
docs:This produces a nice JSON report that's essentially
pip compile
but with a different and more detailed output format.Related
--dry-run
flag forpip install
#1244References:
The text was updated successfully, but these errors were encountered: