From da9a273a60fc61729e465e9b3a800aa27f219fa5 Mon Sep 17 00:00:00 2001 From: Alec Jacobson Date: Tue, 29 Oct 2024 17:26:41 -0400 Subject: [PATCH 1/2] constraints --- .github/workflows/wheels.yml | 4 ++-- constraints.txt | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 constraints.txt diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index ce9a2a36..5c93f655 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -37,7 +37,7 @@ jobs: CIBW_TEST_COMMAND: "python {project}/tests/test_basic.py" CIBW_BUILD: "${{ matrix.cpversion }}-${{ matrix.os.cibw-arch }}" CIBW_TEST_SKIP: "*-macosx_arm64" - CIBW_ENVIRONMENT: "MAX_JOBS=${{ matrix.os.runs-on == 'macos-latest' && 3 || 2 }}" + CIBW_ENVIRONMENT: "MAX_JOBS=${{ matrix.os.runs-on == 'macos-latest' && 3 || 2 }} PIP_CONSTRAINT=constraints.txt" # Why universal2 here? It's not included above in CIBW_BUILD CIBW_ARCHS_MACOS: "x86_64 arm64 universal2" CIBW_ENVIRONMENT_MACOS: "MACOSX_DEPLOYMENT_TARGET=10.13 CMAKE_OSX_ARCHITECTURES=\"${{ matrix.os.cibw-arch == 'macosx_x86_64' && 'x86_64' || matrix.os.cibw-arch == 'macosx_arm64' && 'arm64' || matrix.os.cibw-arch == 'macosx_universal2' && 'arm64;x86_64' || '' }}\"" @@ -90,7 +90,7 @@ jobs: - name: Build wheels run: | - python -m cibuildwheel --output-dir wheelhouse + CIBW_ENVIRONMENT="PIP_CONSTRAINT=constraints.txt" python -m cibuildwheel --output-dir wheelhouse # Upload binaries to github - uses: actions/upload-artifact@v4 diff --git a/constraints.txt b/constraints.txt new file mode 100644 index 00000000..e55abda1 --- /dev/null +++ b/constraints.txt @@ -0,0 +1,2 @@ +numpy<=1.26.4 + From 02fe3938bb8833dcbf64e24cb3c82bb6e3cae343 Mon Sep 17 00:00:00 2001 From: Alec Jacobson Date: Tue, 29 Oct 2024 21:35:26 -0400 Subject: [PATCH 2/2] fix windows --- .github/workflows/wheels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 5c93f655..f0079548 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -90,7 +90,7 @@ jobs: - name: Build wheels run: | - CIBW_ENVIRONMENT="PIP_CONSTRAINT=constraints.txt" python -m cibuildwheel --output-dir wheelhouse + set "PIP_CONSTRAINT=constraints.txt" && python -m cibuildwheel --output-dir wheelhouse # Upload binaries to github - uses: actions/upload-artifact@v4