Skip to content

Commit a0d2a54

Browse files
committed
Update CI files
1 parent 42be215 commit a0d2a54

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

‎.ci/scripts/calc_constraints.py‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@
44
# './plugin-template --github pulp_python' to update this file.
55
#
66
# For more info visit https://github.com/pulp/plugin_template
7+
#!/usr/bin/env python
8+
# /// script
9+
# requires-python = ">=3.9"
10+
# dependencies = [
11+
# "packaging>=26.0,<27",
12+
# "pyyaml>=6.0.3,<6.1",
13+
# "tomli;python_version<'3.11'",
14+
# ]
15+
# ///
716

817
import argparse
918
import fileinput

‎.github/workflows/build.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ jobs:
4444
uvx twine check dist/*
4545
- name: "Install built packages"
4646
run: |
47+
uv run --script .ci/scripts/calc_constraints.py -u requirements.txt > upperbounds_constraints.txt
4748
# This seems to be the only way to inject the constraints file.
48-
uv pip install dist/pulp_python-*-py3-none-any.whl -c .ci/assets/ci_constraints.txt
49+
uv pip install dist/pulp_python-*-py3-none-any.whl -c .ci/assets/ci_constraints.txt -c upperbounds_constraints.txt
4950
- name: "Generate api specs"
5051
run: |
5152
pulpcore-manager openapi --file "api.json"

0 commit comments

Comments
 (0)