diff --git a/.github/workflows/publish_pypi.yml b/.github/workflows/publish_pypi.yml index abf897817a..76958ddb6b 100644 --- a/.github/workflows/publish_pypi.yml +++ b/.github/workflows/publish_pypi.yml @@ -48,7 +48,7 @@ jobs: output_stream.write(f"count={num_cpus}\n") - name: Clone pybind11 repo (no history) - run: git clone --depth 1 --branch v2.11.1 https://github.com/pybind/pybind11.git + run: git clone --depth 1 --branch v2.12.0 https://github.com/pybind/pybind11.git -c advice.detachedHead=false - name: Install vcpkg on Windows run: | @@ -107,7 +107,7 @@ jobs: python-version: 3.11 - name: Clone pybind11 repo (no history) - run: git clone --depth 1 --branch v2.11.1 https://github.com/pybind/pybind11.git + run: git clone --depth 1 --branch v2.12.0 https://github.com/pybind/pybind11.git -c advice.detachedHead=false - name: Build wheels on Linux run: pipx run cibuildwheel --output-dir wheelhouse @@ -143,7 +143,7 @@ jobs: python-version: '3.11' - name: Clone pybind11 repo (no history) - run: git clone --depth 1 --branch v2.11.1 https://github.com/pybind/pybind11.git + run: git clone --depth 1 --branch v2.12.0 https://github.com/pybind/pybind11.git -c advice.detachedHead=false - name: Set macOS-specific environment variables run: echo "MACOSX_DEPLOYMENT_TARGET=11.0" >> $GITHUB_ENV diff --git a/asv.conf.json b/asv.conf.json index 93c5c8a47a..5117cf75d2 100644 --- a/asv.conf.json +++ b/asv.conf.json @@ -25,7 +25,7 @@ // "uninstall_command": ["return-code=any python -mpip uninstall -y {project}"], "build_command": [ "/bin/rm -rf pybind11", - "/usr/bin/git clone --depth 1 --branch v2.11.1 https://github.com/pybind/pybind11.git", + "/usr/bin/git clone --depth 1 --branch v2.12.0 https://github.com/pybind/pybind11.git pybind11 -c advice.detachedHead=false", "python -m pip install build", "python -m build --wheel -o {build_cache_dir} {build_dir}" ], diff --git a/noxfile.py b/noxfile.py index 4b248d1f38..7237786ef6 100644 --- a/noxfile.py +++ b/noxfile.py @@ -49,8 +49,14 @@ def run_pybamm_requires(session): session.run( "git", "clone", + "--depth", + "1", + "--branch", + "v2.12.0", "https://github.com/pybind/pybind11.git", "pybind11/", + "-c", + "advice.detachedHead=false", external=True, ) else: