Skip to content

Add Winloop to test suite if User is using Windows #10922

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
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES/10922.contrib.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added Winloop to test suite to support in the future -- by :user:`Vizonex`.
1 change: 1 addition & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ Vincent Maillol
Vitalik Verhovodov
Vitaly Haritonsky
Vitaly Magerya
Vizonex
Vladimir Kamarzin
Vladimir Kozlovski
Vladimir Rutsky
Expand Down
1 change: 1 addition & 0 deletions docs/spelling_wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ websocket’s
websockets
Websockets
wildcard
Winloop
Workflow
ws
wsgi
Expand Down
1 change: 1 addition & 0 deletions requirements/base.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@

gunicorn
uvloop; platform_system != "Windows" and implementation_name == "cpython" # MagicStack/uvloop#14
winloop; platform_system == "Windows" and implementation_name == "cpython"
1 change: 1 addition & 0 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ pycparser==2.22
typing-extensions==4.13.2
# via multidict
uvloop==0.21.0 ; platform_system != "Windows" and implementation_name == "cpython"
winloop==0.1.8; platform_system == "Windows" and implementation_name == "cpython"
# via -r requirements/base.in
yarl==1.20.0
# via -r requirements/runtime-deps.in
5 changes: 4 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@


try:
import uvloop
if sys.platform == "win32":
import winloop as uvloop
else:
import uvloop
except ImportError:
uvloop = None # type: ignore[assignment]

Expand Down
Loading