Skip to content

Commit 045292b

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 5c6d341 commit 045292b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.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
@@ -111,6 +112,7 @@ jobs:
111112
arch: 'arm64'
112113
runs-on: ${{ matrix.arch == 'arm64' && 'windows-11-arm' || 'windows-2022' }}
113114
env:
115+
PIP_CONSTRAINT: ci/constraints.txt
114116
ZSTD_WARNINGS_AS_ERRORS: '1'
115117
steps:
116118
- name: Set up Python

0 commit comments

Comments
 (0)