Skip to content

Commit

Permalink
pybind11 v2.12.0 (pybamm-team#4151)
Browse files Browse the repository at this point in the history
* Pin pybind11 version in `pybamm-requires`

* Bump to v2.12.0 for benchmarks and wheels
  • Loading branch information
agriyakhetarpal authored Jun 7, 2024
1 parent b2f08ef commit 6c01787
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion asv.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
],
Expand Down
6 changes: 6 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6c01787

Please sign in to comment.