desy-ml / cheetah

Fast and differentiable particle accelerator optics simulation for reinforcement learning and optimisation applications.
https://cheetah-accelerator.readthedocs.io
GNU General Public License v3.0
35 stars 14 forks source link

Add Python 3.13 support #275

Open jank324 opened 1 month ago

jank324 commented 1 month ago

Description

Adds Python 3.13 to the versions tested and upgrades all other test and format check runs (different OSs, flake8, black etc.) to run on 3.13.

Motivation and Context

Python 3.13 was released two days ago. Closes #271.

Types of changes

Checklist

Note: We are using a maximum length of 88 characters per line.

jank324 commented 1 month ago

We are keeping this in draft for now because it seems at least one dependency isn't compatible with Python 3.13 yet.

jank324 commented 1 month ago

Specifically the issue is PyTorch, and 3.13 support there is only expected for v2.6 (https://github.com/pytorch/pytorch/issues/130249).