Skip to content

Commit 0a8398e

Browse files
committed
ci: always use constraints.txt
Let's ensure our setuptools constraint is honored everywhere. Otherwise we get spammed with deprecation warnings and have to reason about inconsistent behaviors.
1 parent b0317ca commit 0a8398e

5 files changed

Lines changed: 19 additions & 1 deletion

File tree

.github/workflows/anaconda.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
$CONDA/bin/conda create --yes --quiet --name env python=${{ matrix.py }}
3434
3535
- name: Install Dependencies
36+
env:
37+
PIP_CONSTRAINT: 'ci/constraints.txt'
3638
run: |
3739
source $CONDA/bin/activate env
3840
$CONDA/bin/conda install --yes --quiet --name env conda-build pip
@@ -79,6 +81,8 @@ jobs:
7981
C:\Miniconda\condabin\conda.bat create --yes --quiet --name env python=${{ matrix.py }}
8082
8183
- name: Install Dependencies
84+
env:
85+
PIP_CONSTRAINT: 'ci/constraints.txt'
8286
run: |
8387
C:\Miniconda\condabin\conda.bat install --yes --quiet --name env conda-build pip
8488
C:\Miniconda\envs\env\python.exe -m pip install --user --require-hashes -r ci/requirements.txt

.github/workflows/pypy.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ jobs:
3939
- uses: actions/checkout@v4
4040

4141
- name: Build
42+
env:
43+
PIP_CONSTRAINT: 'ci/constraints.txt'
4244
run: |
4345
python -m pip wheel -w wheelhouse .
4446
@@ -81,10 +83,14 @@ jobs:
8183
- uses: actions/checkout@v4
8284

8385
- name: Install Dependencies
86+
env:
87+
PIP_CONSTRAINT: 'ci/constraints.txt'
8488
run: |
8589
pip install --require-hashes -r ci/requirements.pypy.txt
8690
8791
- name: Build
92+
env:
93+
PIP_CONSTRAINT: 'ci/constraints.txt'
8894
run: |
8995
python -m pip install -e .
9096

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ jobs:
7575

7676
- name: Install Dependencies
7777
shell: bash
78+
env:
79+
PIP_CONSTRAINT: 'ci/constraints.txt'
7880
run: |
7981
python -m pip install --require-hashes -r ci/requirements.txt
8082
@@ -88,6 +90,8 @@ jobs:
8890
8991
- name: Build (No Rust)
9092
if: matrix.arch != 'x64' || matrix.py == '3.13'
93+
env:
94+
PIP_CONSTRAINT: 'ci/constraints.txt'
9195
run: |
9296
python -m pip install -e .
9397

.github/workflows/typing.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
version: "0.4.29"
2424

2525
- name: Install Dependencies
26+
env:
27+
PIP_CONSTRAINT: 'ci/constraints.txt'
2628
run: |
2729
uv venv --python ${{ matrix.py }} venv
2830
source venv/bin/activate

.github/workflows/wheel.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838

3939
- name: Build Wheel
4040
run: |
41-
docker run -e PYPATH=/opt/python/${{ matrix.py }} -e ZSTD_WARNINGS_AS_ERRORS=1 --rm -v `pwd`:/project quay.io/pypa/${{ matrix.image }} /project/ci/build-manylinux-wheel.sh
41+
docker run -e PIP_CONSTRAINT=/project/ci/constraints.txt -e PYPATH=/opt/python/${{ matrix.py }} -e ZSTD_WARNINGS_AS_ERRORS=1 --rm -v `pwd`:/project quay.io/pypa/${{ matrix.image }} /project/ci/build-manylinux-wheel.sh
4242
4343
- name: Upload Wheel
4444
uses: actions/upload-artifact@v4
@@ -65,6 +65,7 @@ jobs:
6565
CIBW_BUILD: ${{ matrix.py }}-*
6666
CIBW_BUILD_VERBOSITY: '1'
6767
CIBW_PRERELEASE_PYTHONS: '1'
68+
PIP_CONSTRAINT: ci/constraints.txt
6869
ZSTD_WARNINGS_AS_ERRORS: '1'
6970
steps:
7071
- name: Set up Python
@@ -104,6 +105,7 @@ jobs:
104105
- 'arm64'
105106
runs-on: 'windows-2022'
106107
env:
108+
PIP_CONSTRAINT: ci/constraints.txt
107109
ZSTD_WARNINGS_AS_ERRORS: '1'
108110
steps:
109111
- name: Set up Python

0 commit comments

Comments
 (0)