Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/choose_branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}" }
Expand All @@ -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:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/devel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}" }
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}" }
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}" }
Expand All @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions doc/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ organisation on `GitHub <https://github.com/openbiosim/sire>`__.
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 <https://github.com/openbiosim/sire/compare/2026.1.0...2026.2.0>`__ - September 2026
----------------------------------------------------------------------------------------------

Expand Down
8 changes: 4 additions & 4 deletions doc/source/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
34 changes: 16 additions & 18 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "*"
Expand All @@ -91,7 +95,7 @@ ambertools = ">=22"
gromacs = "*"
alchemlyb = "*"
mdtraj = "*"
mdanalysis = ">=2.8.0"
mdanalysis = ">=2.10.0"
openff-nagl = "*"
# loch
pyopencl = "*"
Expand All @@ -100,14 +104,16 @@ 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]
ambertools = ">=22"
# gromacs not available on osx-arm64
alchemlyb = "*"
mdtraj = "*"
mdanalysis = ">=2.8.0"
mdanalysis = ">=2.10.0"
openff-nagl = "*"
# loch
pyopencl = "*"
Expand All @@ -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 = "*"
Expand All @@ -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
Expand All @@ -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"
Expand All @@ -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

Expand Down
11 changes: 8 additions & 3 deletions wrapper/Convert/SireOpenMM/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
24 changes: 2 additions & 22 deletions wrapper/Convert/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading