From 298b11630d08e0182b280662756534343542aa9b Mon Sep 17 00:00:00 2001 From: David Straub Date: Tue, 24 Nov 2026 20:27:33 +0100 Subject: [PATCH] Support PyBaMM 26.11 and Python 3.15 Drop PyBaMM 26.5 under the 6-release support policy. PyBaMM 26.11 dropped Python 3.10, so the 3.10 CI row stays on 26.10. --- .github/workflows/test.yml | 15 +++++++++------ pyproject.toml | 3 ++- tests/cells/test_lead_acid.py | 2 +- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d4adf16..d0fa88e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,19 +30,22 @@ jobs: fail-fast: false matrix: include: - # All Python versions against the latest PyBaMM + # All Python versions against the latest PyBaMM. PyBaMM 26.11 + # dropped Python 3.10, so 3.10 runs against 26.10, the latest + # release that supports it. - {python-version: "3.10", pybamm-version: "26.10"} - - {python-version: "3.11", pybamm-version: "26.10"} - - {python-version: "3.12", pybamm-version: "26.10"} - - {python-version: "3.13", pybamm-version: "26.10"} - - {python-version: "3.14", pybamm-version: "26.10"} + - {python-version: "3.11", pybamm-version: "26.11"} + - {python-version: "3.12", pybamm-version: "26.11"} + - {python-version: "3.13", pybamm-version: "26.11"} + - {python-version: "3.14", pybamm-version: "26.11"} + - {python-version: "3.15", pybamm-version: "26.11"} # Older PyBaMM versions against the latest Python they support. # Keep exactly the latest 6 releases (see policy in pyproject.toml). - - {python-version: "3.14", pybamm-version: "26.5"} - {python-version: "3.14", pybamm-version: "26.6"} - {python-version: "3.14", pybamm-version: "26.7"} - {python-version: "3.14", pybamm-version: "26.8"} - {python-version: "3.14", pybamm-version: "26.9"} + - {python-version: "3.14", pybamm-version: "26.10"} steps: - uses: actions/checkout@v4 diff --git a/pyproject.toml b/pyproject.toml index ad8a3db..bbcbb52 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,6 +23,7 @@ classifiers = [ "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.14", + "Programming Language :: Python :: 3.15", "Topic :: Scientific/Engineering", ] dependencies = [ @@ -37,7 +38,7 @@ dependencies = [ # remove its CI row and any workarounds only it needed. A version may be # dropped earlier if it blocks a fix or feature. Raising the lower bound # requires a minor (not patch) pathsim-batt release. - "pybamm>=26.5,<26.11; sys_platform != 'emscripten'", + "pybamm>=26.6,<26.12; sys_platform != 'emscripten'", ] [project.optional-dependencies] diff --git a/tests/cells/test_lead_acid.py b/tests/cells/test_lead_acid.py index 291619d..f93f25f 100644 --- a/tests/cells/test_lead_acid.py +++ b/tests/cells/test_lead_acid.py @@ -59,7 +59,7 @@ def test_electrothermal_smoke(self): def test_cosim_electrical_smoke(self): # On PyBaMM < 26.7, LOQS disables its Jacobian and IDAKLUSolver (the # co-sim default) errors without one; CasadiSolver works on every - # pinned version (26.5-26.10), so use it explicitly here. + # pinned version (26.6-26.11), so use it explicitly here. solver = pybamm.CasadiSolver(mode="safe") cell = CellCoSimElectrical( model=self._model(),