-
Notifications
You must be signed in to change notification settings - Fork 76
Test Python 3.12 support #139
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,20 +50,22 @@ | |
'License :: OSI Approved :: MIT License', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think those removals should be included in another PR. [1] https://github.com/pquentin/yappi/blob/dff6a39973a643a128338d4dae94c846c0072b5d/run_tests.py#L25C1-L26C34 |
||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
'Programming Language :: Python :: 3.11', | ||
'Programming Language :: Python :: 3.12', | ||
'Programming Language :: Python :: Implementation :: CPython', | ||
'Operating System :: OS Independent', | ||
'Topic :: Software Development :: Libraries', | ||
'Topic :: Software Development :: Libraries :: Python Modules', | ||
] | ||
|
||
test_deps = ['gevent>=20.6.2'] | ||
test_deps = [ | ||
'greenlet>=3.0.0a1', # needed to test Python 3.12 support | ||
'gevent>=20.6.2', | ||
] | ||
|
||
setup( | ||
name=NAME, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -224,7 +224,7 @@ static void _DebugPrintObjects(unsigned int arg_count, ...) | |
|
||
int | ||
IS_SUSPENDED(PyFrameObject *frame) { | ||
#if PY_MAJOR_VERSION >= 3 && PY_MINOR_VERSION == 11 | ||
#if PY_MAJOR_VERSION >= 3 && PY_MINOR_VERSION >= 11 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is unlikely to be enough, according to a comment below there are APIs in Python 3.12 to do that now? |
||
PyGenObject *gen = (PyGenObject *)PyFrame_GetGenerator(frame); | ||
if (gen == NULL) { | ||
return 0; | ||
|
@@ -691,7 +691,7 @@ _code2pit(PyFrameObject *fobj, uintptr_t current_tag) | |
if (cobj->co_argcount) { | ||
// There has been a lot going on with `co_varnames`, but finally in | ||
// 3.11.0rc1, it is added as a public API | ||
#if PY_MAJOR_VERSION >= 3 && PY_MINOR_VERSION == 11 | ||
#if PY_MAJOR_VERSION >= 3 && PY_MINOR_VERSION >= 11 | ||
co_varnames = PyCode_GetVarnames(cobj); | ||
#else | ||
co_varnames = cobj->co_varnames; | ||
|
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 can be remove once the PR rebased on top of #145