-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
questionAsking for clarification or supportAsking for clarification or support
Description
Have uv export support --only-deps
This would be useful to support building requirements.txt from uv.lock without including build dependencies.
Example: in a Dockerfile with a custom hatch build the following fails:
COPY pyproject.toml ./
RUN set -ex && \
${UV_BIN}/uv export \
--format="requirements-txt" \
--all-extras \
--no-devSo I must do
COPY pyproject.toml hatch.toml hatch_build.py ./
RUN set -ex && \
${UV_BIN}/uv export \
--format="requirements-txt" \
--all-extras \
--no-devIt would be nice to be able to have
COPY pyproject.toml ./
RUN set -ex && \
${UV_BIN}/uv export \
--format="requirements-txt" \
--all-extras \
--no-dev \
--only-depsworking.
This would also enable doing
uv pip install --require-hasheswithout uv complaining about
error: In `--require-hashes` mode, all requirement must have a hash, but none were provided for: file:///srcReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionAsking for clarification or supportAsking for clarification or support