Skip to content

Pyjo.Reactor.Winloop: the reactor of Pyjoyment on Winloop - #1

Merged
dex4er merged 2 commits into
mainfrom
skeleton
Nov 5, 2026
Merged

dex4er merged 2 commits into
mainfrom
skeleton

Conversation

@dex4er

@dex4er dex4er commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

The reactor of Pyjoyment on Winloop, the fork of uvloop for Windows, in a distribution of its own made of the repository of Pyjo-Reactor-Uvloop: for now its template, on which the reactor is written in this pull request.

Changes

  • The workflows, Trunk with Biome, Renovate, mise, the documentation, README.md, AGENTS.md and SECURITY.md of Pyjo-Reactor-Uvloop, for Winloop: winloop>=0.8.2 on Windows only (sys_platform == 'win32'), as it has wheels for Windows only, and Pyjoyment of Git main for Pyjo.App.ASGI: the error of an application after its close of a WebSocket, and a reactor of asyncio by its class in the tests Pyjoyment#510, as in Pyjo-Reactor-Uvloop.
  • Tests on windows-2025, CPython 3.12 to 3.15 and 3.15t; Build installs the wheel and runs the example on windows-2025; Docs and Trunk Check stay on Linux, without Winloop.
  • Pyjo/Reactor/Winloop.py: a stub with the docstring and the synopsis, whose constructor raises NotImplementedError.
  • t/Reactor_Winloop.py (a stub), t/docs/Reactor_Winloop.py (the synopsis), t/examples.py with examples/hello_world_winloop.py and examples/loopback_winloop.py, which Build runs with the wheel.

Plan

  • The workarounds of _Loop of Pyjo.Reactor.Uvloop checked on Winloop: what Windows needs, written down in AGENTS.md
  • The reactor: _own_loop with a loop of Winloop, on Pyjo.Reactor.Asyncio
  • pyright and the autodoc of the module on Linux, without Winloop
  • t/Reactor_Winloop.py: the port of t/Reactor_Uvloop.py, without what does not apply on Windows
  • The workflows on Windows: Tests and Build
  • The suite of Pyjoyment on the reactor, with its failures in groups here
  • AGENTS.md and the docstring of the module with what the reactor does and why

Validation

  • trunk check --all: no issues
  • t/ of the repository with PYTHONDEVMODE=1, on Windows
  • sphinx-build -W --keep-going
  • CI of this pull request

Not in the repository: the project of Read the Docs pyjo-reactor-winloop, the trusted publisher of PyPI and Renovate.

🤖 Generated with Claude Code

dex4er and others added 2 commits November 4, 2026 13:59
The repository of Pyjo-Reactor-Uvloop for Winloop, the fork of uvloop
for Windows: the workflows, with the tests and the wheel on Windows,
Trunk with Biome, Renovate, mise, the documentation, README.md,
AGENTS.md and SECURITY.md, and a stub of the module, whose constructor
raises NotImplementedError, with the tests and the examples of the
reactor to be.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pyjo.Reactor.Uvloop for Winloop: _own_loop makes a loop of Winloop in
the place of the SelectorEventLoop of Pyjo.Reactor.Asyncio on Windows.
Of the workarounds of _Loop of Uvloop, the halt of the readers and the
writers after stop and the hook of the finalizer of an async generator
in the debug mode are taken; the relay of the wakeup fd, the blocking
mode and the watch again after an error are left out, as AGENTS.md
explains from the sources of Winloop 0.8.2 and libuv 1.53.

Pyright of Linux and macOS takes the stub of typings/winloop, and
autodoc a mock of Winloop. t/Reactor_Winloop.py is the port of
t/Reactor_Uvloop.py without what does not apply on Windows, with a
signal while the loop waits and the writer of a socket whose peer has
closed it. t/examples.py stops the server with Ctrl-Break, and runs
examples/asyncio_winloop.py, the port of asyncio_uvloop.py. Tests and
Build pass the interpreter by its path of Windows, and Build compares
the output without the CR of Windows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Tests

Job Tests Passed ✅ Skipped ⚠️ Failed ❌ Log
prove (python 3.12) 7049 6976 70 3 ❌ 126627326965
prove (python 3.13) 7049 6976 70 3 ❌ 126627327116
prove (python 3.14) 7091 7023 65 3 ❌ 126627326901
prove (python 3.15) 7091 7025 65 1 ❌ 126627327349
prove (python 3.15t) 7072 7003 65 4 ❌ 126627327098
All 35352 35003 335 14 ❌
Job Script Test Message
prove (python 3.12) t/Pyjo/JSON_RPC.py 27 - Calls of a closed peer
prove (python 3.12) t/Pyjo/Prove.py 15 - Capture the standard error
prove (python 3.12) t/Pyjo/Prove.py No plan found in TAP output
prove (python 3.13) t/Pyjo/JSON_RPC.py 27 - Calls of a closed peer
prove (python 3.13) t/Pyjo/Prove.py 15 - Capture the standard error
prove (python 3.13) t/Pyjo/Prove.py No plan found in TAP output
prove (python 3.14) t/Pyjo/JSON_RPC.py 27 - Calls of a closed peer
prove (python 3.14) t/Pyjo/Prove.py 26 - Summary in Markdown
prove (python 3.14) t/Pyjo/Prove.py No plan found in TAP output
prove (python 3.15) t/Pyjo/JSON_RPC.py 27 - Calls of a closed peer
prove (python 3.15t) t/Pyjo/JSON_RPC.py 27 - Calls of a closed peer
prove (python 3.15t) t/Pyjo/Prove.py 15 - Capture the standard error
prove (python 3.15t) t/Pyjo/Prove.py No plan found in TAP output
prove (python 3.15t) t/Pyjo/Server_Prethread.py Timed out after 120 seconds

The run of the workflow

@dex4er
dex4er marked this pull request as ready for review November 5, 2026 11:08
@dex4er
dex4er merged commit 5ba7de5 into main Nov 5, 2026
7 of 14 checks passed
@dex4er
dex4er deleted the skeleton branch November 5, 2026 11:09
dex4er added a commit that referenced this pull request Nov 5, 2026
uv on Windows takes the path of --python as it is, without .exe, so
venv/Scripts/python was not found, and Build failed since #1. The
directory of the virtual environment is found on every platform.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dex4er added a commit that referenced this pull request Nov 5, 2026
…erited (#3)

* uv.lock: Pyjoyment of Git main at 1d48088, and event_loop_modules inherited

Pyjoyment of Git main with pyjoyment/Pyjoyment#534, whose
Pyjo.Reactor._finalize defers the cleanup of a finalizer below the frames
of the module of the class of the reactor and of event_loop_modules. The
reactor names no winloop: the loop of Winloop is compiled with Cython and
makes no frames of Python, and a probe of _finalize over the suite of
Pyjoyment on the reactor found no frame of Winloop below any of its calls.

Closes #2

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Build: the wheel installed in the virtual environment by its directory

uv on Windows takes the path of --python as it is, without .exe, so
venv/Scripts/python was not found, and Build failed since #1. The
directory of the virtual environment is found on every platform.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@dex4er dex4er added this to the 0.1.0 milestone Nov 6, 2026
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.

1 participant