-
Notifications
You must be signed in to change notification settings - Fork 36
ENH: drop python 3.8, 3.9 and support 3.13 #368
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
base: main
Are you sure you want to change the base?
Conversation
|
@evvaaaa any suggestions? Apparently some fields have been changed from |
evvaaaa
left a comment
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.
This would be nice, however, bluesky supports 3.9 still, and event-model is a required dependency. I wouldn't be happy updating this without also dropping 3.9 from bluesky.
There's a PR open for that. Once that's merged, this can be merged as well safely I believe |
evvaaaa
left a comment
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.
To be merged alongside the bluesky update.
Happy new year to you too 🥳 Cool, happy for this to be merged. Can you rebase and squash it? |
- Remove support for Python 3.8 and 3.9 - Add support for Python 3.13 - Update CI workflows - Remove importlib-resources dependency - Regenerate schema files
|
@evvaaaa it seems the latest release of datamodel-code-generator is switching entirely to ruff for formatting; is it ok for me to adapt that change to this PR? EDIT: according to the error message the warning can be suppressed by explicitly setting the formatters in the generate function. Since event-model is already using ruff, I can simply add it in the API call |
|
Ah, nevermind, the test actually fails because |
|
Some of our changes to datamodel-code-generator have also been merged. I can make an issue, will let us cut down on custom jinja. For now we just fix it by doing what they suggest. |
|
@evvaaaa I applied their suggestion locally; trouble is that it produces a series of exceptions. Copy-pasting the local output of my The specific exception of the exception group is raised 10 times in total (a.k.a. for each JSON schema document currently generated, except for the |
|
I suppressed the warning on the |
|
The failing type checking test is caused by the fact that the latest version of What's your reccomendation? Can this be added as an ignore for mypy? Although the more I progress with this PR the more troublesome it becomes... EDIT: maybe it could be solved via editing the ninja template |
|
I opened #2951 to see how to suppress this. Most probably it will involve adapting the template. |
Description
Closes #367 and #354
Motivation and Context
Python 3.9 reaches EOL end of this month; this is an attempt to mirror bluesky repo.
Currently blocked by #1959
How Has This Been Tested?
Tested locally but some changes due to autogenerating typed dictionary models are fishy.