uv icon indicating copy to clipboard operation
uv copied to clipboard

Adding option to generate uv.lock file without the Development dependencies

Open borisgurzhovski-itgma opened this issue 1 year ago • 1 comments

Is it possible (maybe add it as future improvement) to add an option to generate an uv.lock file which won't include the Development dependencies?

Something similar to the --no-dev option, that won't install the Development dependencies when runing uv run or uv sync, but this will generate the uv.lock without them.

I am running the version 0.5.6 On a Docker container from python:3.9.20-slim-bookworm image Command I am running is uv.lock (full command is: docker run -it --rm --volume "$PWD":/app DOCKER_NAME uv lock)

Verbose output is: DEBUG uv 0.5.6 DEBUG Found workspace root: '/app' DEBUG Adding current workspace member: '/app' DEBUG Reading Python requests from version file at '/app/.python-version' DEBUG Using Python request '3.9.20' from version file at '.python-version' DEBUG The virtual environment's Python version satisfies '3.9.20' DEBUG Using request timeout of 30s DEBUG Found static 'pyproject.toml' for: xxx @ file:///app DEBUG No workspace root found, using project root DEBUG Existing 'uv.lock' satisfies workspace requirements

Thanks in advance.

borisgurzhovski-itgma avatar Dec 17 '24 11:12 borisgurzhovski-itgma