-
Notifications
You must be signed in to change notification settings - Fork 894
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
Feature: have 'uv export' support --only-deps #6960
Comments
Related: #6573 If I was unclear, I think it would be nice to convert the uv.lock to a requirements.txt trough uv export with only the dependencies (not the project). I guess I would be really useful if in that case uv would ignore the project's build configuration (otherwise I could just "sed" out the line corresponding to the project in the requirements.txt). E.g. in my example the project's build use hatch-vcs (with dynamic field + a custom build script) that are not useful to convert the dependencies in uv.lock to requirements.txt. |
Do you need |
In other words: if you add |
Thanks, this solve the build problem; with However I am unable to So the final solution is to use A flag to avoid this line would still be useful as well as a flag to save the result to a file. (This would avoid post-processing and stream redirections). I don't mind closing the issue now. |
I think the feature could be seen another way: Be able to do |
Have
uv export
support--only-deps
This would be useful to support building
requirements.txt
fromuv.lock
without including build dependencies.Example: in a
Dockerfile
with a custom hatch build the following fails:So I must do
It would be nice to be able to have
working.
This would also enable doing
without
uv
complaining abouterror: In `--require-hashes` mode, all requirement must have a hash, but none were provided for: file:///src
The text was updated successfully, but these errors were encountered: