-
Notifications
You must be signed in to change notification settings - Fork 704
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
Core, CI: Add Python 3.12 support #3290
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stardew changes are totally fine.
Other changes look okay, but my expertise is low so I wouldn't put much weight on that approval
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created a Python 3.12.3 venv in Windows, tested
- Webhost: launching the webhost which didn't work before sending a location, making sure the tracker updated, closing and relaunching the server to validate the load from the savefile. Didn't see any errors in the log, no warnings other than options deprecations
- Generate: Just did a simple clique generate and looked for errors in the log. Didn't see any. Only warnings were again options deprecations.
- Kivy: Ran the launcher, checked the logs for any Kivy errors, didn't see any. Opened the text client, connected to a slot, still didn't see any errors.
|
I think it is still undecided how we are going to handle this exactly once we drop 3.8, but kivy sometimes being slow to update might be a problem regardless of our plans, so I think the versions should be mentioned explicitly. We had a bunch of people that were on unsupported python versions and didn't know. My personal preference would be to roughly follow github ubuntu-latest python for the oldest, which changes around the time when the latest Ubuntu LTS gets its point 1 release. And bleeding edge for the newest. |
When running in Python 3.12.4 on Windows 10, I get the following errors. I don't know enough about them to suggest fixes, but hopefully they prove useful. They seem to be coming from Pony, which I know was a pain point for a while. I saw your requirement file directs the installer to grab a version from your GitHub. Is it possible your build of Pony is the problem? I have not deleted my local database for a while, so that could be causing the problem as well.
|
|
Are you working in a venv, if so, have you created a fresh venv or upgraded your existing one? If you don't use a venv at all, I have no idea how/where pony gets installed on Windows, but |
I am using a venv, yeah, though I didn't create a fresh one after checking out your fork. I'll give that a go. |
Pony merged the Py3.12 fix and released 0.7.18: https://github.com/ponyorm/pony/releases/tag/v0.7.18 I just tried checking out this branch, merging main into it, reverting the requirements.txt changes and just changing the pony version to 0.7.18, created a new 3.12 venv and tested the webhost. Everything appears to be working correctly. I started a multiworld with a Clique in hard mode, sent a check, restarted the webhost, |
What is this fixing or adding?
Add/fix Python 3.12 support. and use 3.12 in CI
Need to fix Stardew's use of deprecated assertEquals since it's now goneStardew and ModuleUpdate could be cherry-picked if we want to give upstream pony more time.
How was this tested?