diff --git a/actions/update-constraints/generate_constraints.sh b/actions/update-constraints/generate_constraints.sh index 82652a5..5faf9bf 100755 --- a/actions/update-constraints/generate_constraints.sh +++ b/actions/update-constraints/generate_constraints.sh @@ -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 diff --git a/actions/update-constraints/update-constraints.md b/actions/update-constraints/update-constraints.md index e95d812..436d8ba 100644 --- a/actions/update-constraints/update-constraints.md +++ b/actions/update-constraints/update-constraints.md @@ -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: @@ -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 = * ```