Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions actions/update-constraints/generate_constraints.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ REQUIREMENTS_FILES=$(grep -v '^#' requirements-files.in | tr '\n' ' ')
CONSTRAINTS_FILE=constraints-dev.txt

# shellcheck disable=SC2086
pip-compile -U \
uv pip compile -U \
--no-header \
--annotate \
--annotation-style line \
--allow-unsafe \
--strip-extras \
--output-file=$CONSTRAINTS_FILE \
--constraint constraints-dev.txt.in \
$REQUIREMENTS_FILES
Expand Down
8 changes: 4 additions & 4 deletions actions/update-constraints/update-constraints.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ for InstructLab CI.
## Requirements

The project should define a new `constraints` tox target in `tox.ini` file that
will install a particular version of `pip-tools`. It's advised to pin the
`pip-tools` version in the `tox` environment definition to avoid any potential
breakages due to changes in the `pip-compile` tool itself.
will install a particular version of `uv`. It's advised to pin the
`uv` version in the `tox` environment definition to avoid any potential
breakages due to changes in the `uv` tool itself.

Example `tox.ini` entry:

Expand All @@ -26,7 +26,7 @@ basepython = {[testenv:py3]basepython}
skip_install = True
skipsdist = true
deps =
pip-tools==7.4.1
uv==0.7.8
commands = {posargs}
allowlist_externals = *
```
Expand Down