-
Notifications
You must be signed in to change notification settings - Fork 567
Port uvloop to Python 3.12 #570
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
Merged
Changes from 11 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
ee803be
Bump Cython to 0.29.36
1st1 f179c5c
Add missing new API -- timeout param to shutdown_default_executor
1st1 6a37f32
Stop using the beloved, but now deprecated, 'IF'
1st1 77767b9
Explicitly qualify void-returning callback functions as `noexcept`.
1st1 52ff91a
Fix test_libuv_get_loop_t_ptr to work under Python 3.12
1st1 df9576c
"Fix" the failing asyncio tests by adding a sleep() call
1st1 9a97442
Add 3.12 to CI scripts
1st1 f23f2ff
An attempt to force CI to not build a wheel for aiohttp
1st1 247fb17
A workaround for aiohttp lacking a native 3.12 wheel
1st1 eccd451
Seems like setuptools now needs to be installed explicitly for 3.12
1st1 4cc4f91
Disable debug build tests on 3.12
1st1 0648d1f
Stop configuring watchers for asyncio tests under 3.12+
1st1 178df25
Add the new timeout parameter of shutdown_default_executor to typeshed
1st1 233033b
Implement uvloop.run()
1st1 b1f2edd
Install aiohttp 3.9.0b0 on Python 3.12
fantix b2c3e4e
Add pyproject.toml and update CI
fantix e6232d4
Merge branch 'master' into 12
fantix File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
from uvloop import _testbase as tb | ||
from uvloop.loop import libuv_get_loop_t_ptr, libuv_get_version | ||
from uvloop.loop import _testhelper_unwrap_capsuled_pointer as unwrap | ||
|
||
|
||
class Test_UV_libuv(tb.UVTestCase): | ||
def test_libuv_get_loop_t_ptr(self): | ||
loop = self.new_loop() | ||
cap1 = libuv_get_loop_t_ptr(loop) | ||
cap2 = libuv_get_loop_t_ptr(loop) | ||
cap3 = libuv_get_loop_t_ptr(self.new_loop()) | ||
loop1 = self.new_loop() | ||
cap1 = libuv_get_loop_t_ptr(loop1) | ||
cap2 = libuv_get_loop_t_ptr(loop1) | ||
|
||
import pyximport | ||
loop2 = self.new_loop() | ||
cap3 = libuv_get_loop_t_ptr(loop2) | ||
|
||
pyximport.install() | ||
|
||
import cython_helper | ||
|
||
self.assertTrue(cython_helper.capsule_equals(cap1, cap2)) | ||
self.assertFalse(cython_helper.capsule_equals(cap1, cap3)) | ||
try: | ||
self.assertEqual(unwrap(cap1), unwrap(cap2)) | ||
self.assertNotEqual(unwrap(cap1), unwrap(cap3)) | ||
finally: | ||
loop1.close() | ||
loop2.close() | ||
|
||
def test_libuv_get_version(self): | ||
self.assertGreater(libuv_get_version(), 0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.