From b1468b1201be94d381afd2f46d14aecb0be3198f Mon Sep 17 00:00:00 2001 From: pulpbot Date: Wed, 28 Oct 2026 15:53:31 +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 2c3ce3cd..0f42a091 100755 --- a/.ci/scripts/calc_constraints.py +++ b/.ci/scripts/calc_constraints.py @@ -4,6 +4,15 @@ # './plugin-template --github pulp_maven' 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 c53b4156..9c9f6442 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/pulp_maven-*-py3-none-any.whl -c .ci/assets/ci_constraints.txt -c upperbounds_constraints.txt - name: "Generate api specs"