Skip to content
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

Merged
merged 2 commits into from
Nov 24, 2023
Merged

Add support for Python 3.12 and ZODB 6. #14

merged 2 commits into from
Nov 24, 2023

Conversation

thet
Copy link
Member

@thet thet commented Nov 21, 2023

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

@dataflake
Copy link
Member

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

Copy link
Member

@dataflake dataflake left a 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

@dataflake dataflake merged commit 7676c8f into master Nov 24, 2023
12 checks passed
@dataflake dataflake deleted the python-3.12 branch November 24, 2023 11:17
@dataflake
Copy link
Member

Version 4.1 is now live

@thet
Copy link
Member Author

thet commented Nov 24, 2023

@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
Copy link
Member

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.

Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants