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 diff --git a/pixi.toml b/pixi.toml index b038706f8..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 = "*" @@ -91,7 +95,7 @@ ambertools = ">=22" gromacs = "*" alchemlyb = "*" mdtraj = "*" -mdanalysis = ">=2.8.0" +mdanalysis = ">=2.10.0" openff-nagl = "*" # loch pyopencl = "*" @@ -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] @@ -107,7 +113,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 +122,7 @@ pyopencl = "*" # ambertools and gromacs not available on Windows alchemlyb = "*" mdtraj = "*" -mdanalysis = ">=2.8.0" +mdanalysis = ">=2.10.0" # loch pycuda = "*" pyopencl = "*" @@ -132,26 +138,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 @@ -164,10 +163,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" @@ -176,11 +174,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/SireOpenMM/CMakeLists.txt b/wrapper/Convert/SireOpenMM/CMakeLists.txt index 30c108c81..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}) - # MSVC needs C++20 to compile the libtorch headers. - if (MSVC AND TORCH_FOUND) - set_target_properties(SireOpenMM PROPERTIES CXX_STANDARD 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) + 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 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: