-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Python 3.12 #135
Comments
I have tried enabling 3.12 builds in our CI: https://github.com/g4edge/pyg4ometry/actions/runs/7423609080/job/20201409008?pr=136 The package seems to build without failures, but something goes wrong during tests. Will need to debug locally. Your build is failing because of a missing/misconfigured CGAL installation (see CMake error message). Which Linux distribution are you on? How did you install the dependencies required to build the package? As for PyPI builds, cbuildwheel was supposed to build 3.12 wheels, but it didn't for same unknown reason. |
Update: Python 3.12 tests seem to fail because of dateutil/dateutil#1314, so there's nothing we can do about it until they fix it. Good news is that pyg4ometry seems to be fully Python 3.12 ready. |
Hi @gipert, thanks for the quick response. Indeed, the issue seems to come from the missing PyPi builds (see jbeirer/pygeosimplify#67). As the list of dependencies required to build pyg4ometry is quite large, I'll wait for the pre-built py312 wheels instead of trashing my CI :) Thanks! |
Running pytest with python3.12. The failure is
Now this is imported via a package we must depend on. So really there is not fixing this until the packages we depend on update. I think the best thing to do is
To get the CI to release a 3.12 version. |
I'm a bit uncomfortable with ignoring deprecation warnings, they are important for development and I'm afraid we would forget about removing this "temporary ignore" once a new version of dateutil is released. I would just ignore the CI failure instead, I'm sure it will fix by itself soon. More importantly, I think I have figured out why cbuildwheel did not build python-3.12 wheels for v1.1.2: we were still using an old version at that point: https://github.com/g4edge/pyg4ometry/actions/runs/7378413766/job/20073504830#step:4:1 So I'm rather sure it will upload 3.12 wheels to PyPI, if we make a new release now. |
I love cutting corners ;-) Ok agreed with you @gipert Having said this, the apple silicon library deps might have been resolved in the more recent cibuildwheel versions |
I'll tag a new version now, let's see what happens. |
Looks like there is now a problem with upload-artifact it might be work moving back to v3. |
Actually, the problem seems to be that Python 3.12 is not available in the |
Python 3.12 wheels should hopefully appear soon on PyPI. |
It would be great to add Python 3.12 support in the near future. Currently installs fail for me with:
The text was updated successfully, but these errors were encountered: