From f294a3947cd9d7731ad76097c9c134d6f2d72be7 Mon Sep 17 00:00:00 2001 From: pulpbot Date: Tue, 27 Oct 2026 15:08:15 +0000 Subject: [PATCH] Update CI files --- .ci/scripts/calc_constraints.py | 9 +++++++++ .github/workflows/build.yml | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.ci/scripts/calc_constraints.py b/.ci/scripts/calc_constraints.py index b9af2e73f9..a9e4910312 100755 --- a/.ci/scripts/calc_constraints.py +++ b/.ci/scripts/calc_constraints.py @@ -4,6 +4,15 @@ # './plugin-template --github pulpcore' 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 3782f37f75..61fe851274 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,7 +44,7 @@ jobs: uvx twine check dist/* - name: "Install built packages" run: | - uv run .ci/scripts/calc_constraints.py -u pyproject.toml > upperbounds_constraints.txt + 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/pulpcore-*-py3-none-any.whl -c .ci/assets/ci_constraints.txt -c upperbounds_constraints.txt - name: "Generate api specs"