From f9fd7175d0655c944a55903977b388b368af1c39 Mon Sep 17 00:00:00 2001 From: Jitka Halova Date: Tue, 27 Oct 2026 13:35:41 +0100 Subject: [PATCH] Support requirements.txt in calc_constraints Assisted By: Claude Sonnet 5.5 --- templates/github/.github/workflows/build.yml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/github/.github/workflows/build.yml.j2 b/templates/github/.github/workflows/build.yml.j2 index d9f619b9..25119d02 100644 --- a/templates/github/.github/workflows/build.yml.j2 +++ b/templates/github/.github/workflows/build.yml.j2 @@ -37,7 +37,7 @@ jobs: uvx twine check dist/* - name: "Install built packages" run: | - uv run --script .ci/scripts/calc_constraints.py -u pyproject.toml > upperbounds_constraints.txt + uv run --script .ci/scripts/calc_constraints.py -u {% if setup_py -%} requirements.txt {% else -%} pyproject.toml {% endif -%} > upperbounds_constraints.txt # This seems to be the only way to inject the constraints file. uv pip install dist/{{ plugin_name | snake }}-*-py3-none-any.whl -c .ci/assets/ci_constraints.txt -c upperbounds_constraints.txt - name: "Generate api specs"