From d692bbc634703ec66d312fb2f313df2c03445965 Mon Sep 17 00:00:00 2001 From: Craig Gidney Date: Thu, 9 Nov 2023 21:17:22 +1100 Subject: [PATCH] Fix ci breakage Fixes https://github.com/quantumlib/Stim/issues/623 --- .github/workflows/ci.yml | 6 +++++- WORKSPACE | 12 ++++++------ pyproject.toml | 2 +- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 374590f41..28a12caf3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,6 +35,7 @@ jobs: {os: ubuntu-latest, dist: cp39-manylinux_x86_64}, {os: ubuntu-latest, dist: cp310-manylinux_x86_64}, {os: ubuntu-latest, dist: cp311-manylinux_x86_64}, + {os: ubuntu-latest, dist: cp312-manylinux_x86_64}, {os: ubuntu-latest, dist: cp36-manylinux_i686}, {os: ubuntu-latest, dist: cp37-manylinux_i686}, @@ -92,11 +93,13 @@ jobs: {os: macos-latest, dist: cp39-macosx_x86_64, macosarch: x86_64}, {os: macos-latest, dist: cp310-macosx_x86_64, macosarch: x86_64}, {os: macos-latest, dist: cp311-macosx_x86_64, macosarch: x86_64}, + {os: macos-latest, dist: cp312-macosx_x86_64, macosarch: x86_64}, {os: macos-latest, dist: cp38-macosx_arm64, macosarch: arm64}, {os: macos-latest, dist: cp39-macosx_arm64, macosarch: arm64}, {os: macos-latest, dist: cp310-macosx_arm64, macosarch: arm64}, {os: macos-latest, dist: cp311-macosx_arm64, macosarch: arm64}, + {os: macos-latest, dist: cp312-macosx_arm64, macosarch: arm64}, # pypy OSX builds disabled because numpy isn't prebuilt and fails to build. # @@ -119,6 +122,7 @@ jobs: {os: windows-2019, dist: cp39-win_amd64}, {os: windows-2019, dist: cp310-win_amd64}, {os: windows-2019, dist: cp311-win_amd64}, + {os: windows-2019, dist: cp312-win_amd64}, {os: windows-2019, dist: cp36-win32}, {os: windows-2019, dist: cp37-win32}, @@ -152,7 +156,7 @@ jobs: - run: mkdir -p output/stim - run: mkdir -p output/stimcirq - run: mkdir -p output/sinter - - run: python -m pip install pybind11==2.9.2 cibuildwheel==2.11.1 + - run: python -m pip install pybind11~=2.11.1 cibuildwheel~=2.16.2 setuptools wheel - run: python -m cibuildwheel --print-build-identifiers - run: python -m cibuildwheel --output-dir output/stim - run: python setup.py sdist diff --git a/WORKSPACE b/WORKSPACE index 9848ac9de..f8afa827c 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -11,16 +11,16 @@ http_archive( http_archive( name = "pybind11", build_file = "@pybind11_bazel//:pybind11.BUILD", - sha256 = "832e2f309c57da9c1e6d4542dedd34b24e4192ecb4d62f6f4866a737454c9970", - strip_prefix = "pybind11-2.10.4", - urls = ["https://github.com/pybind/pybind11/archive/v2.10.4.tar.gz"], + sha256 = "d475978da0cdc2d43b73f30910786759d593a9d8ee05b1b6846d1eb16c6d2e0c", + strip_prefix = "pybind11-2.11.1", + urls = ["https://github.com/pybind/pybind11/archive/refs/tags/v2.11.1.tar.gz"], ) http_archive( name = "pybind11_bazel", - sha256 = "b72c5b44135b90d1ffaba51e08240be0b91707ac60bea08bb4d84b47316211bb", - strip_prefix = "pybind11_bazel-b162c7c88a253e3f6b673df0c621aca27596ce6b", - urls = ["https://github.com/pybind/pybind11_bazel/archive/b162c7c88a253e3f6b673df0c621aca27596ce6b.zip"], + sha256 = "e8355ee56c2ff772334b4bfa22be17c709e5573f6d1d561c7176312156c27bd4", + strip_prefix = "pybind11_bazel-2.11.1", + urls = ["https://github.com/pybind/pybind11_bazel/releases/download/v2.11.1/pybind11_bazel-2.11.1.tar.gz"], ) http_archive( diff --git a/pyproject.toml b/pyproject.toml index f6c58bebd..408cd00bf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,3 @@ [build-system] -requires = ["setuptools", "wheel", "pybind11==2.9.2"] +requires = ["setuptools", "wheel", "pybind11~=2.11.1"] build-backend = "setuptools.build_meta"