armi icon indicating copy to clipboard operation
armi copied to clipboard

Support Python 3.13

Open john-science opened this issue 1 year ago • 2 comments

Python 3.13 is expected to be released on 2024-10-01.

I have a branch ready to test this: py_313.

I have already tested ARMI against the dev versions of Python 3.13, but the problem right now is that SciPy does not yet support Python 3.13. So that is our current stopping block (thought it may be there are other libraries that also don't fully support 3.13 yet).

john-science avatar Aug 20 '24 14:08 john-science

As a fun aside, I had to make a few changes to test out dev versions of Python 3.13:

https://github.com/terrapower/armi/blob/068484d7585cdeaa301d3bfbfff84086f6ebc5ab/.github/workflows/unittests.yaml#L17-L25

As stated here, I found I could add "3.13" to the Python version list as long as I added allow-prereleases: true as well. But that feature wasn't supported unless I used a more modern version of the Python installation action: actions/setup-python@v5.

This also makes me notice that we are using an older version of the Git action as well, and that could be updated: actions/checkout@v4.

john-science avatar Aug 20 '24 14:08 john-science

Update:

  • SciPy supported Python 3.13!
  • Now the road block is ruamel.yaml does not support Python 3.13; it won't even install.

john-science avatar Aug 22 '24 20:08 john-science