From 8d7d031fd54a09b170a747a72e250b71bff407d6 Mon Sep 17 00:00:00 2001 From: Lester Hedges Date: Mon, 9 Nov 2026 12:12:55 +0000 Subject: [PATCH 1/6] Remove deepmd-kit, nnpops, and xtb-python from emle feature. --- pixi.toml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/pixi.toml b/pixi.toml index b038706f8..e8746871c 100644 --- a/pixi.toml +++ b/pixi.toml @@ -132,26 +132,19 @@ pygit2 = "*" pytorch = "*" pyyaml = "*" torchani = ">=2.7" -xtb-python = "*" -# ambertools, deepmd-kit, nnpops not available on Windows +# ambertools not available on Windows [feature.emle.system-requirements] cuda = "12" [feature.emle.target.linux-64.dependencies] ambertools = ">=22" -deepmd-kit = "*" -nnpops = "*" [feature.emle.target.linux-aarch64.dependencies] ambertools = ">=22" -# nnpops not available on linux-aarch64, and deepmd-kit requires pytorch <2.7, -# which is incompatible with torchani >=2.7 [feature.emle.target.osx-arm64.dependencies] ambertools = ">=22" -deepmd-kit = "*" -nnpops = "*" # ============================================================================= # Test feature From f7027627bd9fa958d1a5821807751894fcae367c Mon Sep 17 00:00:00 2001 From: Lester Hedges Date: Mon, 9 Nov 2026 12:16:16 +0000 Subject: [PATCH 2/6] Build for Python 3.12-3.14 and drop 3.10 and 3.11. --- .github/workflows/choose_branch.yaml | 10 +++++----- .github/workflows/devel.yaml | 10 +++++----- .github/workflows/main.yaml | 2 +- .github/workflows/pr.yaml | 10 +++++----- doc/source/changelog.rst | 2 ++ doc/source/install.rst | 8 ++++---- 6 files changed, 22 insertions(+), 20 deletions(-) diff --git a/.github/workflows/choose_branch.yaml b/.github/workflows/choose_branch.yaml index 342f36575..ff291a0e1 100644 --- a/.github/workflows/choose_branch.yaml +++ b/.github/workflows/choose_branch.yaml @@ -20,7 +20,7 @@ jobs: max-parallel: 5 fail-fast: false matrix: - python-version: ["3.10", "3.11", "3.12"] + python-version: ["3.12", "3.13", "3.14"] platform: - { name: "windows", os: "windows-latest", shell: "pwsh" } - { name: "linux", os: "ubuntu-latest", shell: "bash -l {0}" } @@ -30,14 +30,14 @@ jobs: # but Linux - platform: { name: "macos", os: "macos-latest", shell: "bash -l {0}" } - python-version: "3.10" + python-version: "3.12" - platform: { name: "macos", os: "macos-latest", shell: "bash -l {0}" } - python-version: "3.11" + python-version: "3.13" - platform: { name: "windows", os: "windows-latest", shell: "pwsh" } - python-version: "3.10" + python-version: "3.12" - platform: { name: "windows", os: "windows-latest", shell: "pwsh" } - python-version: "3.11" + python-version: "3.13" environment: name: sire-build defaults: diff --git a/.github/workflows/devel.yaml b/.github/workflows/devel.yaml index c741c6e81..40063051f 100644 --- a/.github/workflows/devel.yaml +++ b/.github/workflows/devel.yaml @@ -18,7 +18,7 @@ jobs: max-parallel: 6 fail-fast: false matrix: - python-version: ["3.10", "3.11", "3.12"] + python-version: ["3.12", "3.13", "3.14"] platform: - { name: "windows", os: "windows-latest", shell: "pwsh" } - { name: "linux", os: "ubuntu-latest", shell: "bash -l {0}" } @@ -28,14 +28,14 @@ jobs: # but Linux - platform: { name: "macos", os: "macos-latest", shell: "bash -l {0}" } - python-version: "3.10" + python-version: "3.12" - platform: { name: "macos", os: "macos-latest", shell: "bash -l {0}" } - python-version: "3.11" + python-version: "3.13" - platform: { name: "windows", os: "windows-latest", shell: "pwsh" } - python-version: "3.10" + python-version: "3.12" - platform: { name: "windows", os: "windows-latest", shell: "pwsh" } - python-version: "3.11" + python-version: "3.13" environment: name: sire-build defaults: diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index b232b9770..d10babd8b 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -24,7 +24,7 @@ jobs: max-parallel: 9 fail-fast: false matrix: - python-version: ["3.10", "3.11", "3.12"] + python-version: ["3.12", "3.13", "3.14"] platform: - { name: "windows", os: "windows-latest", shell: "pwsh" } - { name: "linux", os: "ubuntu-latest", shell: "bash -l {0}" } diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 0574186e8..2c3dbd0fe 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -17,7 +17,7 @@ jobs: max-parallel: 5 fail-fast: false matrix: - python-version: ["3.10", "3.11", "3.12"] + python-version: ["3.12", "3.13", "3.14"] platform: - { name: "windows", os: "windows-latest", shell: "pwsh" } - { name: "linux", os: "ubuntu-latest", shell: "bash -l {0}" } @@ -27,14 +27,14 @@ jobs: # but Linux - platform: { name: "macos", os: "macos-latest", shell: "bash -l {0}" } - python-version: "3.10" + python-version: "3.12" - platform: { name: "macos", os: "macos-latest", shell: "bash -l {0}" } - python-version: "3.11" + python-version: "3.13" - platform: { name: "windows", os: "windows-latest", shell: "pwsh" } - python-version: "3.10" + python-version: "3.12" - platform: { name: "windows", os: "windows-latest", shell: "pwsh" } - python-version: "3.11" + python-version: "3.13" environment: name: sire-build defaults: diff --git a/doc/source/changelog.rst b/doc/source/changelog.rst index 0a9e76522..4c46ded2e 100644 --- a/doc/source/changelog.rst +++ b/doc/source/changelog.rst @@ -188,6 +188,8 @@ organisation on `GitHub `__. forms, as for Beutler. Previously the bonded pair still had a softened Lennard-Jones interaction in the end state where the bond exists. +* Added support for Python 3.13 and 3.14, and dropped support for Python 3.10 and 3.11. + `2026.2.0 `__ - September 2026 ---------------------------------------------------------------------------------------------- diff --git a/doc/source/install.rst b/doc/source/install.rst index 95563d001..4d457cc7b 100644 --- a/doc/source/install.rst +++ b/doc/source/install.rst @@ -92,16 +92,16 @@ And then... Install sire into a new environment We recommend that :mod:`sire` is installed into a new (clean) environment. This minimises the risk of failures caused by incompatible dependencies. -Sire is currently packaged for Python 3.10, 3.11 and Python 3.12. We will start -by creating a Python 3.12 environment that we will call ``openbiosim``. +Sire is currently packaged for Python 3.12, 3.13 and Python 3.14. We will start +by creating a Python 3.14 environment that we will call ``openbiosim``. .. code-block:: bash - $ conda create -n openbiosim "python<3.13" + $ conda create -n openbiosim "python<3.15" .. note:: - We use ``python<3.13`` as this will install the most recent 3.12 + We use ``python<3.15`` as this will install the most recent 3.14 release of python. We can now install :mod:`sire` into that environment by typing From e3b31bf7cbf0ad581aac64916d26870c3cf8aca7 Mon Sep 17 00:00:00 2001 From: Lester Hedges Date: Mon, 9 Nov 2026 12:27:53 +0000 Subject: [PATCH 3/6] Drop fallback for MDAnalysis < 2.10. --- pixi.toml | 17 ++++++++--------- wrapper/Convert/__init__.py | 24 ++---------------------- 2 files changed, 10 insertions(+), 31 deletions(-) diff --git a/pixi.toml b/pixi.toml index e8746871c..18b7079ca 100644 --- a/pixi.toml +++ b/pixi.toml @@ -91,7 +91,7 @@ ambertools = ">=22" gromacs = "*" alchemlyb = "*" mdtraj = "*" -mdanalysis = ">=2.8.0" +mdanalysis = ">=2.10.0" openff-nagl = "*" # loch pyopencl = "*" @@ -107,7 +107,7 @@ ambertools = ">=22" # gromacs not available on osx-arm64 alchemlyb = "*" mdtraj = "*" -mdanalysis = ">=2.8.0" +mdanalysis = ">=2.10.0" openff-nagl = "*" # loch pyopencl = "*" @@ -116,7 +116,7 @@ pyopencl = "*" # ambertools and gromacs not available on Windows alchemlyb = "*" mdtraj = "*" -mdanalysis = ">=2.8.0" +mdanalysis = ">=2.10.0" # loch pycuda = "*" pyopencl = "*" @@ -157,10 +157,9 @@ rdkit = ">=2023.0.0" [feature.test.target.linux-64.dependencies] kartograf = ">=1.0.0" gemmi = ">=0.7.0,<0.8.0" -# >=2.8.0 is the first release where the package as a whole (not just new -# contributions) is LGPLv3+ rather than GPLv3+ - used as an optional -# fallback for RDKit bond-order inference, see wrapper/Convert/__init__.py -mdanalysis = ">=2.8.0" +# Optional fallback for RDKit bond-order inference, see wrapper/Convert/__init__.py. +# >=2.10.0 for the public MDAnalysisInferrer (and LGPLv3+ licensing from 2.8.0). +mdanalysis = ">=2.10.0" [feature.test.target.linux-aarch64.dependencies] kartograf = ">=1.0.0" @@ -169,11 +168,11 @@ kartograf = ">=1.0.0" [feature.test.target.osx-arm64.dependencies] kartograf = ">=1.0.0" gemmi = ">=0.7.0,<0.8.0" -mdanalysis = ">=2.8.0" +mdanalysis = ">=2.10.0" [feature.test.target.win-64.dependencies] gemmi = ">=0.7.0,<0.8.0" -mdanalysis = ">=2.8.0" +mdanalysis = ">=2.10.0" # kartograf excluded from Windows test deps diff --git a/wrapper/Convert/__init__.py b/wrapper/Convert/__init__.py index 92d27ec91..8f0d6515e 100644 --- a/wrapper/Convert/__init__.py +++ b/wrapper/Convert/__init__.py @@ -63,32 +63,12 @@ def _infer_bond_info_via_mdanalysis(pickle: bytes) -> bytes: atom.SetNoImplicit(True) atom.SetIntProp("_MDAnalysis_index", i) - try: - from MDAnalysis.converters.RDKitInferring import MDAnalysisInferrer - except ImportError: - # MDAnalysis < 2.10, the newest available on Python 3.10, only - # has the inference steps as private functions. - from MDAnalysis.converters.RDKit import ( - _infer_bo_and_charges, - _standardize_patterns, - ) - - mol.UpdatePropertyCache(strict=False) - _infer_bo_and_charges(mol) - mol = _standardize_patterns(mol) - order = sorted( - range(mol.GetNumAtoms()), - key=lambda i: mol.GetAtomWithIdx(i).GetIntProp("_MDAnalysis_index"), - ) - mol = Chem.RenumberAtoms(mol, order) - Chem.SanitizeMol(mol) - else: - mol = MDAnalysisInferrer()(mol) + mol = MDAnalysisInferrer()(mol) return mol.ToBinary() try: - import MDAnalysis # noqa: F401 + from MDAnalysis.converters.RDKitInferring import MDAnalysisInferrer _set_bond_order_inference_callback(_infer_bond_info_via_mdanalysis) except Exception: From 69fb2fb0f9ecf8b18842a3a5321adb5193c3cf39 Mon Sep 17 00:00:00 2001 From: Lester Hedges Date: Mon, 9 Nov 2026 12:30:42 +0000 Subject: [PATCH 4/6] Add missing downstream dependencies to obs feature. --- pixi.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pixi.toml b/pixi.toml index 18b7079ca..c8251fc96 100644 --- a/pixi.toml +++ b/pixi.toml @@ -73,14 +73,18 @@ configargparse = "*" ipywidgets = "*" kcombu_bss = "*" lomap2 = "*" +networkx = "*" nglview = "*" -openff-interchange-base = "*" +openff-interchange-base = ">=0.5.0" openff-toolkit-base = "*" parmed = "*" py3dmol = "*" +pyarrow = "*" pydot = "*" pyyaml = "*" +rdkit = "*" # somd2 +filelock = "*" loguru = "*" numba = "*" nvidia-ml-py = "*" @@ -100,6 +104,8 @@ pycuda = "*" [feature.obs.target.linux-aarch64.dependencies] gromacs = "*" openff-nagl = "*" +# loch +pyopencl = "*" # ambertools, alchemlyb, mdtraj, mdanalysis not available on linux-aarch64 [feature.obs.target.osx-arm64.dependencies] From 2e7c4a1cef116aef109d9b3b8d6c748f316a4cb0 Mon Sep 17 00:00:00 2001 From: Lester Hedges Date: Mon, 9 Nov 2026 14:07:44 +0000 Subject: [PATCH 5/6] Compile SireOpenMM with C++20 whenever Torch is found. --- wrapper/Convert/SireOpenMM/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wrapper/Convert/SireOpenMM/CMakeLists.txt b/wrapper/Convert/SireOpenMM/CMakeLists.txt index 30c108c81..ce5c8db0a 100644 --- a/wrapper/Convert/SireOpenMM/CMakeLists.txt +++ b/wrapper/Convert/SireOpenMM/CMakeLists.txt @@ -80,8 +80,8 @@ if (${SIRE_USE_OPENMM}) # Create the library that holds all of the class wrappers add_library (SireOpenMM ${SIREOPENMM_SOURCES}) - # MSVC needs C++20 to compile the libtorch headers. - if (MSVC AND TORCH_FOUND) + # The libtorch headers require C++20. + if (TORCH_FOUND) set_target_properties(SireOpenMM PROPERTIES CXX_STANDARD 20) endif() From 87fe28a25ee34d7979f6277e21f3d3ff89a69e39 Mon Sep 17 00:00:00 2001 From: Lester Hedges Date: Mon, 9 Nov 2026 15:16:33 +0000 Subject: [PATCH 6/6] Pass -std=c++20 explicitly for SireOpenMM with GCC and Clang. --- wrapper/Convert/SireOpenMM/CMakeLists.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/wrapper/Convert/SireOpenMM/CMakeLists.txt b/wrapper/Convert/SireOpenMM/CMakeLists.txt index ce5c8db0a..370a04b99 100644 --- a/wrapper/Convert/SireOpenMM/CMakeLists.txt +++ b/wrapper/Convert/SireOpenMM/CMakeLists.txt @@ -80,9 +80,14 @@ if (${SIRE_USE_OPENMM}) # Create the library that holds all of the class wrappers add_library (SireOpenMM ${SIREOPENMM_SOURCES}) - # The libtorch headers require C++20. + # The libtorch headers require C++20. Pass the flag explicitly elsewhere, + # since CMake omits it when C++20 is the compiler default (e.g. GCC 16). if (TORCH_FOUND) - set_target_properties(SireOpenMM PROPERTIES CXX_STANDARD 20) + if (MSVC) + set_target_properties(SireOpenMM PROPERTIES CXX_STANDARD 20) + else() + target_compile_options(SireOpenMM PRIVATE -std=c++20) + endif() endif() set_target_properties(SireOpenMM