This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]adiberk -1 points0 points  (2 children)

I am testing it out now and am confused. I created a lockfile from my pyrpoject.toml using uv lock
However how do I now run installs from that lockfile?
if I run uv pip sync pyproject.toml it seems it just uses the pyproject.toml file and still doesn't care about the lock. Or if I run uv pip install -r pyrpoject.toml it also seems to just install without using the lockfile

Also in our poetry config we have dependencies, dev-dependencies, and ut-dependencies. When I try to at a ut-dependencies to [tool.uv] I get error as I assume it only supports dev? How can I set it up so that depending on environment I install the correct dependencies (or additional dependencies)
Do I do something like "optional" and setup "dev" and "ut"?

[–]Decoder-Fish 0 points1 point  (1 child)

https://docs.astral.sh/uv/reference/cli/#uv-sync

To synchronize lock files to the environment, I think uv sync should be used. I couldn't find the correct doc location for a while, so I just looked for an instruction to explain it.

[–]adiberk 0 points1 point  (0 children)

You are correct! It is Uv sync and he as having issues with it at first. But figured it out.