Skip to content

Commit 48ac91c

Browse files
committed
ci: feed constraints.txt into pip when building wheels
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 48ac91c

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
@@ -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)