ApolloResearch / rib

Library for methods related to the Local Interaction Basis (LIB)
MIT License
2 stars 0 forks source link

Updates for python 3.12 #327

Closed nix-apollo closed 5 months ago

nix-apollo commented 5 months ago

Python 3.12 🚀

Description

We say we support 3.12 in setup.py. This makes sure we actually do. Plus a few bonus version upgrades.

How Has This Been Tested?

I haven't tested all the new package versions on 3.10. Will need to do so before merging.

Things run fine on python 3.12 for me.

nix-apollo commented 5 months ago

One minor issue: One einops docstring has \s inside it, which raises a SyntaxWarning as of python 3.12. This warning prints in the prerelease hook when running pylint.

This is fixed in einops main, but they haven't done a release since then. See PR https://github.com/arogozhnikov/einops/pull/298

It would also be fixed for pylint by this issue https://github.com/pylint-dev/pylint/issues/9322

nix-apollo commented 5 months ago

I tested requirements for python 3.10 as well. The failing test is fixed in #330 .