-
Notifications
You must be signed in to change notification settings - Fork 906
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
uv pip compile
does not include local package
#6317
Comments
So, if you pass a But if you pass a source tree, we'll lock the project. In other words, you can put |
For example:
|
How can I lock dependencies with extras? I'm encountering the following error: error: Requesting extras requires a `pyproject.toml`, `setup.cfg`, or `setup.py` file. I'd prefer not to specify dependencies in multiple files.
|
Yeah totally -- you can add the following
Is the main issue with |
Okay! I understand better how it works then. I would want to have a lock file that is not only usable with uv. If I have the output from the compile I get a file I can install with the normal pip? For example if someone is not using |
Makes sense. We will probably add support for exporting |
I am playing around a bit with
uv
and its features and got interested in theuv pip compile
for platform agnostic lock files. I set up a very basic project with thispyproject.toml
:Later I ran
uv pip compile --universal pyproject.toml -o requirements.lock
which resulted in:However, my local package is not included in this lockfile which is a bit weird to me. For example if I run
rye sync
instead I get the following:Moreover, when doing
uv sync
it actually installs mytest-uv
package in editable mode. But, I want to explore an option where you can just use normalpip install -r requirements.lock
and not forced to useuv
.Am I missing something from the documentation or is this intended behavior?
I am on Ubuntu 22.04 with the latest version of
uv 0.3.0
.The text was updated successfully, but these errors were encountered: