-
Notifications
You must be signed in to change notification settings - Fork 8
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 and ZODB 6. #14
Conversation
To claim Python 3.12 support please run the config tool to update all places that need updating: https://github.com/zopefoundation/meta/tree/master/config |
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.
I finished it off with the configuration script
Version 4.1 is now live |
@dataflake thank you, and sorry for not doing it myself. It was on my stack of things to do.... |
|
||
from AccessControl import ClassSecurityInfo | ||
from AccessControl.class_init import InitializeClass | ||
from Acquisition import Implicit | ||
from Acquisition import aq_base | ||
from OFS.SimpleItem import SimpleItem | ||
from Persistence import Persistent | ||
from ZODB._compat import BytesIO | ||
from ZODB._compat import Pickler |
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 will probably break with the next ZODB release. Importing from modules starting with an underscore can be a source of trouble. But we'll see and fix it later.
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 underscores the need for using tools like zope.deprecation
more often.
While trying out Plone 6.1 on Python 3.12 with ZODB 6 and ZEO 6 (both source checkouts) I had to apply this fix to make Products.ZopeVersionControl work together with this stack.
It's basically the same as
ZODB._compat
was doing anyways for Python 3, see:zopefoundation/ZODB@6f88781#diff-d3f727ac8d95d754aa9b86cbba3715c589e7d19735265064e9cedb3ff27f3517L127