From a86ea9f659c9a235ae9d009f4b207fffedf052d3 Mon Sep 17 00:00:00 2001 From: Matthias Dellweg Date: Thu, 22 Oct 2026 11:57:30 +0200 Subject: [PATCH] Use precalculated constraints for bindings generation --- .github/workflows/build.yml | 3 ++- templates/github/.github/workflows/build.yml.j2 | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 62af6dcd..a47a89f6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,8 +45,9 @@ jobs: uvx twine check dist/* - name: "Install built packages" run: | + uv run .ci/scripts/calc_constraints.py -u pyproject.toml > upperbounds_constraints.txt # This seems to be the only way to inject the constraints file. - uv pip install dist/pulp_catdog-*-py3-none-any.whl -c .ci/assets/ci_constraints.txt + uv pip install dist/pulp_catdog-*-py3-none-any.whl -c .ci/assets/ci_constraints.txt -c upperbounds_constraints.txt - name: "Generate api specs" run: | pulpcore-manager openapi --file "api.json" diff --git a/templates/github/.github/workflows/build.yml.j2 b/templates/github/.github/workflows/build.yml.j2 index ac0c3921..c5fbcf97 100644 --- a/templates/github/.github/workflows/build.yml.j2 +++ b/templates/github/.github/workflows/build.yml.j2 @@ -37,8 +37,9 @@ jobs: uvx twine check dist/* - name: "Install built packages" run: | + uv run .ci/scripts/calc_constraints.py -u pyproject.toml > 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 + 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" run: | pulpcore-manager openapi --file "api.json"