From 23187bda5a064cce66eea2eb3ecc6fdd44e6801e Mon Sep 17 00:00:00 2001 From: pulpbot Date: Tue, 27 Oct 2026 10:14:25 +0000 Subject: [PATCH] Update CI files --- .ci/scripts/calc_constraints.py | 9 +++++++++ .github/workflows/build.yml | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.ci/scripts/calc_constraints.py b/.ci/scripts/calc_constraints.py index 4b60a810..e13980ea 100755 --- a/.ci/scripts/calc_constraints.py +++ b/.ci/scripts/calc_constraints.py @@ -4,6 +4,15 @@ # './plugin-template --github pulp_python' to update this file. # # For more info visit https://github.com/pulp/plugin_template +#!/usr/bin/env python +# /// script +# requires-python = ">=3.9" +# dependencies = [ +# "packaging>=26.0,<27", +# "pyyaml>=6.0.3,<6.1", +# "tomli;python_version<'3.11'", +# ] +# /// import argparse import fileinput diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c0f6f63f..b59ae08f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,8 +44,9 @@ jobs: uvx twine check dist/* - name: "Install built packages" run: | + uv run --script .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_python-*-py3-none-any.whl -c .ci/assets/ci_constraints.txt + uv pip install dist/pulp_python-*-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"