zopefoundation / ZODB

Python object-oriented database
https://zodb-docs.readthedocs.io/
Other
672 stars 90 forks source link

Add support for Python 3.11 #373

Closed mauritsvanrees closed 1 year ago

mauritsvanrees commented 1 year ago

Lots of changes, but 99 percent is automatic by isort. No real changes needed to far.

dataflake commented 1 year ago

Please hold on with this PR:

There are a few larger PRs in the work and they will take more time. If you put all those "cosmetic" changes from isort and flake8 on master it will become a huge pain to integrate those branches.

My suggestion: Re-do without flake8 and only the minimum required changes for Python 3.11 support. Linting can be added later, after everything else is done.

dataflake commented 1 year ago

Oops, I misspoke: The big PRs are actually for ZEO, not for ZODB. Sorry for the confusion. This looks fine, go ahead.

mauritsvanrees commented 1 year ago

Merged. Thanks for the reviews. A release would probably be good, but this PR and the other changes since the previous release only touch meta files and tests, so no hurry here. I am just happy to know that ZODB works with 3.11.

I did have a quick look at ZEO yesterday, but already decided not to touch it currently for the reasons Jens mentions.

dataflake commented 1 year ago

ZODB 5.8.0 is now released.