-
Notifications
You must be signed in to change notification settings - Fork 35
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 #219
Conversation
@dannyroberts I imagine you've got a lot going on, but any chance you have a moment to take a look at this pull request? I'm hopeful that I've done everything I can to make this easy and low risk for you 🤞🏻... but let me know if there's anything else you want me to do. As mentioned, the one thing missing is incrementing the version number of jsonobject itself, since I figured you'd prefer to do that yourself. Context:
Again, I know that maintaining an open source project can be a thankless task, so let us know how we can help. |
Whoops, I just realized Tammy already pinged you on the related issue. Sorry for the double notification 😅 |
Hey @nickbaum, apologies for the delayed response and thanks for the contribution. It looks like in addition to the I'll be looking closer at this in the coming week and will be sure to provide any updates here. Thanks again for your patience. |
Thanks so much for the response, and for catching that. I just updated the pull request to use the same Cython version (0.29.35) as the currently checked in files, which as you suspected removed any changes to the c files. |
@gherceg Hi Graham, the tests now fail because the checked in c files are built with cython 0.29.35, while the latest version of cython compatible with setup.py is 0.29.37. I created a separate pull request to rebuild the c files using cython 0.29.37. I've also merged that change into this pull request, so the tests pass again. Once you've merged the Cython 0.29.37 pull request, the diff for the c files should disappear from this pull request. |
Fantastic, thanks so much for taking the time to review this 🙏🏻 |
I've added support for Python 3.12, similar to how /pull/205 added support for 3.11.
The only additional change was renaming assertRaisesRegexp (deprecated since Python 3.2) to assertRaisesRegex (introduced in Python 3.2).
The tests pass, I'm pasting the test run below.
I have not updated the version number since I believe you prefer to do that in a separate pull request, but let me know if you'd like me to create a pull request for that as well.
This is currently blocking us from upgrading from Python 3.12.
Thank you!
-Nick