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

Get support for Python 3.11 #10343

Closed
twisted-trac opened this issue May 11, 2022 · 3 comments · Fixed by #11734
Closed

Get support for Python 3.11 #10343

twisted-trac opened this issue May 11, 2022 · 3 comments · Fixed by #11734

Comments

@twisted-trac
Copy link

adiroiban's avatar @adiroiban reported
Trac ID trac#10343
Type enhancement
Created 2022-05-11 20:27:34Z

Some info at #1723 (comment) from Colin

BTW, I haven't attempted to add test runs for 3.11 yet because there are some other problems. We need a Cython release with cython/cython#4667, an Automat release with glyph/automat#7453, there are some weird builtins.TypeError: __dict__ must be set to a dictionary, not a '_Dereference' test failures that I don't understand, and there are a few fairly trivial test failures due to https://docs.python.org/3.11/whatsnew/3.11.html#enhanced-error-locations-in-tracebacks. But it's generally looking closer, and this on its own is enough to let me get the testtools test suite passing.

Searchable metadata
trac-id__10343 10343
type__enhancement enhancement
reporter__adiroiban adiroiban
priority__normal normal
milestone__None None
branch__ 
branch_author__ 
status__new new
resolution__None None
component__core core
keywords__None None
time__1652300854237229 1652300854237229
changetime__1652425385864237 1652425385864237
version__None None
owner__None None
cc__mgorny
@twisted-trac
Copy link
Author

mgorny's avatar @mgorny commented

You can run tests using cython from 0.29.x git branch. In virtualenv it's a bit of PITA because of the new fancy PEP517 logic that insists on building using pypi's current cython but it's doable if you use setup.py install instead.

@adiroiban
Copy link
Member

From gitter https://gitter.im/twisted/twisted?at=63529430bad3c73752e7654a

from @DMRobertson

Hi all. I've been trying to run Synapse in CI against Python 3.11 RCs, but I'm running into some new errors. One class of errors involves code objects, and I think is fixed in recent Twisted releases provided you use a sufficiently new version of automat. (See glyph/automat#139 (comment))

I reached out here to ask if there were plans to make a new release but haven't heard back. Does anyone here know more?

@eevelweezel
Copy link
Contributor

I've created a PR for enabling tests against Python 3.11. There's still a huge number of failing tests. There's a ticket for fixing the jelly tests, should I create others for fixing the rest?

glyph added a commit that referenced this issue Nov 5, 2022
Add support for running tests w/ Python 3.11 on Windows, MacOS, and Linux.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants