From 30ee93f8bc44de4f2f7f1c83ae103e7829c48b22 Mon Sep 17 00:00:00 2001 From: Tobias Raabe Date: Sun, 11 Oct 2026 16:12:03 +0200 Subject: [PATCH 1/9] ci: test Python 3.15 and document compatibility blockers --- .github/PYTHON315.md | 59 ++++++++++++++++++++++++++++++++++++++ .github/workflows/main.yml | 12 ++++---- 2 files changed, 66 insertions(+), 5 deletions(-) create mode 100644 .github/PYTHON315.md diff --git a/.github/PYTHON315.md b/.github/PYTHON315.md new file mode 100644 index 00000000..d18bce47 --- /dev/null +++ b/.github/PYTHON315.md @@ -0,0 +1,59 @@ +# Python 3.15 CI blockers + +Python 3.15 runs on Linux, macOS, and Windows in the test matrix. These jobs are +experimental and use `continue-on-error` while the blockers below are investigated. +Python 3.11 through 3.14 retain their existing failure behavior. Adding the matrix +row does not yet declare Python 3.15 support in the package classifiers. + +## Dependency installation + +Checked on 2026-10-11 with CPython 3.15.0 on Windows and the repository's unchanged +`uv.lock`: + +| Dependency | Locked version | Observation | Next step | +| --- | --- | --- | --- | +| `aiohttp` | 3.14.3 | No CPython 3.15 wheels in the lock; installation attempts a source build. | Evaluate 3.14.5, which publishes CPython 3.15 wheels. | +| `greenlet` | 3.2.3 | No CPython 3.15 wheels in the lock; installation attempts a source build. | Evaluate a newer version with CPython 3.15 wheels, such as 3.5.6. | +| `cachebox` | 5.2.3 | No CPython 3.15 wheels in the lock. `deepdiff` 9.1.0 requires `cachebox>=5.2,<6`, preventing an upgrade to 6.2.8, which has CPython 3.15 wheels. | Find a compatible `cachebox` 5.x release or update the `deepdiff` constraint upstream. | +| `pywin32` | 310 | No CPython 3.14 or 3.15 wheels in the lock. The existing `nbmake` dependency marker excludes Windows on these versions. | Evaluate `pywin32` 312 and restore Windows notebook coverage after validating its dependency chain. | + +Sources: [aiohttp 3.14.5](https://pypi.org/project/aiohttp/3.14.5/#files), +[greenlet 3.5.6](https://pypi.org/project/greenlet/3.5.6/#files), +[cachebox 6.2.8](https://pypi.org/project/cachebox/6.2.8/#files), +[deepdiff 9.1.0 metadata](https://pypi.org/pypi/deepdiff/9.1.0/json), and +[pywin32 312](https://pypi.org/project/pywin32/312/#files). + +Reproduce the locked-environment check with a current `uv`: + +```console +uv sync --python 3.15 --group test +uv sync --python 3.15 --group test --no-build +``` + +The first command failed locally before tests ran: the `aiohttp` source build +could not find the Windows SDK header `io.h`. The second command confirms that the +locked `aiohttp` distribution has no compatible Windows wheel. A diagnostic update +of `aiohttp`, `greenlet`, and `cachebox` still selected `cachebox` 5.2.3 because of +the `deepdiff` constraint; that source build failed because `link.exe` was unavailable. +These compiler failures describe the local environment, not proven upstream +incompatibilities. CI runner results must establish whether source builds work there. +The diagnostic lock changes are not included in this PR. + +## Runtime availability and test coverage + +[Python 3.15.0 was released on 2026-10-09](https://www.python.org/downloads/release/python-3150/). +Local `uv` 0.12.17 offered only 3.15.0rc2, while `uvx uv@latest` installed 3.15.0. +Use a current `uv` when reproducing the jobs; the workflow uses `setup-uv` without +pinning an old `uv` version. + +Windows 3.15 follows the existing Windows 3.14 path without `--nbmake`, matching +the dependency marker. Linux and macOS attempt the normal notebook-inclusive suite. +The highest-resolution job stays on Python 3.14 until the experimental jobs can run +successfully. The existing Coiled dependency marker also excludes Python 3.15, so +the Coiled-specific test remains skipped. + +No claim about pytask runtime compatibility can be made from the local run because +dependency installation failed before test collection. Record CI failures here as +they become available. Remove `continue-on-error` and add the Python 3.15 classifier +only after dependency installation and the applicable test suites pass on all three +operating systems. diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 41e02aac..f884143f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -46,6 +46,8 @@ jobs: name: Run tests for ${{ matrix.os }} on ${{ matrix.python-version }} runs-on: ${{ matrix.os }} + # Track Python 3.15 blockers without blocking supported Python versions. + continue-on-error: ${{ matrix.python-version == '3.15' }} permissions: contents: read @@ -53,7 +55,7 @@ jobs: fail-fast: false matrix: os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] - python-version: ['3.11', '3.12', '3.13', '3.14'] + python-version: ['3.11', '3.12', '3.13', '3.14', '3.15'] steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 @@ -79,13 +81,13 @@ jobs: run: just test-cov - name: Run tests on Windows - if: matrix.os == 'windows-latest' && matrix.python-version != '3.14' + if: matrix.os == 'windows-latest' && !contains(fromJSON('["3.14", "3.15"]'), matrix.python-version) shell: bash -l {0} run: just test-cov --snapshot-warn-unused - # pywin32 has no wheels for Python 3.14 yet, so skip notebook tests - - name: Run tests without notebook tests (Windows + Python 3.14) - if: matrix.os == 'windows-latest' && matrix.python-version == '3.14' + # The locked pywin32 version has no wheels for Python 3.14 or 3.15. + - name: Run tests without notebook tests (Windows + Python 3.14 or 3.15) + if: matrix.os == 'windows-latest' && contains(fromJSON('["3.14", "3.15"]'), matrix.python-version) shell: bash -l {0} run: uv run --group test pytest --cov=src --cov=tests --cov-report=xml -n auto --snapshot-warn-unused From 0635c636b7c6a3a7eb94da527c1c767bf1369efb Mon Sep 17 00:00:00 2001 From: Tobias Raabe Date: Sun, 11 Oct 2026 16:12:32 +0200 Subject: [PATCH 2/9] docs: link Python 3.15 CI changes and blockers --- .github/workflows/main.yml | 1 + CHANGELOG.md | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f884143f..e8f52569 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -47,6 +47,7 @@ jobs: name: Run tests for ${{ matrix.os }} on ${{ matrix.python-version }} runs-on: ${{ matrix.os }} # Track Python 3.15 blockers without blocking supported Python versions. + # See .github/PYTHON315.md for blockers and promotion criteria. continue-on-error: ${{ matrix.python-version == '3.15' }} permissions: contents: read diff --git a/CHANGELOG.md b/CHANGELOG.md index 42572cd9..e67ead93 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ releases are available on [PyPI](https://pypi.org/project/pytask) and ## Unreleased +- [#1023](https://github.com/pytask-dev/pytask/pull/1023) adds experimental Python + 3.15 tests on Linux, macOS, and Windows and documents compatibility blockers. - [#1022](https://github.com/pytask-dev/pytask/pull/1022) raises the minimum supported Python version to 3.11. - [#935](https://github.com/pytask-dev/pytask/pull/935) detects when a cached task From 56e1b271c8ee72a365df379e9b70ab4c290fa3c4 Mon Sep 17 00:00:00 2001 From: Tobias Raabe Date: Sun, 11 Oct 2026 16:15:32 +0200 Subject: [PATCH 3/9] docs: record confirmed Python 3.15 CI blockers --- .github/PYTHON315.md | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/.github/PYTHON315.md b/.github/PYTHON315.md index d18bce47..d793e329 100644 --- a/.github/PYTHON315.md +++ b/.github/PYTHON315.md @@ -12,9 +12,10 @@ Checked on 2026-10-11 with CPython 3.15.0 on Windows and the repository's unchan | Dependency | Locked version | Observation | Next step | | --- | --- | --- | --- | -| `aiohttp` | 3.14.3 | No CPython 3.15 wheels in the lock; installation attempts a source build. | Evaluate 3.14.5, which publishes CPython 3.15 wheels. | -| `greenlet` | 3.2.3 | No CPython 3.15 wheels in the lock; installation attempts a source build. | Evaluate a newer version with CPython 3.15 wheels, such as 3.5.6. | +| `aiohttp` | 3.14.3 | No CPython 3.15 wheels in the lock; source build succeeded on Windows CI but failed with the local compiler setup. | Evaluate 3.14.5, which publishes CPython 3.15 wheels. | +| `greenlet` | 3.2.3 | No CPython 3.15 wheels in the lock; source build succeeded on Windows CI. | Evaluate a newer version with CPython 3.15 wheels, such as 3.5.6. | | `cachebox` | 5.2.3 | No CPython 3.15 wheels in the lock. `deepdiff` 9.1.0 requires `cachebox>=5.2,<6`, preventing an upgrade to 6.2.8, which has CPython 3.15 wheels. | Find a compatible `cachebox` 5.x release or update the `deepdiff` constraint upstream. | +| `rpds-py` | 0.25.1 | The Linux notebook dependency chain selects a source build whose PyO3 version rejects Python 3.15. | Evaluate 2026.9.1, which publishes CPython 3.15 wheels. | | `pywin32` | 310 | No CPython 3.14 or 3.15 wheels in the lock. The existing `nbmake` dependency marker excludes Windows on these versions. | Evaluate `pywin32` 312 and restore Windows notebook coverage after validating its dependency chain. | Sources: [aiohttp 3.14.5](https://pypi.org/project/aiohttp/3.14.5/#files), @@ -22,6 +23,7 @@ Sources: [aiohttp 3.14.5](https://pypi.org/project/aiohttp/3.14.5/#files), [cachebox 6.2.8](https://pypi.org/project/cachebox/6.2.8/#files), [deepdiff 9.1.0 metadata](https://pypi.org/pypi/deepdiff/9.1.0/json), and [pywin32 312](https://pypi.org/project/pywin32/312/#files). +See also [rpds-py 2026.9.1](https://pypi.org/project/rpds-py/2026.9.1/#files). Reproduce the locked-environment check with a current `uv`: @@ -39,6 +41,23 @@ These compiler failures describe the local environment, not proven upstream incompatibilities. CI runner results must establish whether source builds work there. The diagnostic lock changes are not included in this PR. +## Confirmed CI failures + +The first CI run for commit `0635c636b7c6a3a7eb94da527c1c767bf1369efb` confirmed +dependency failures before pytest collection: + +- [Linux job](https://github.com/pytask-dev/pytask/actions/runs/38146254905/job/114490184835): + `rpds-py` 0.25.1 uses PyO3 0.25.0, which rejects Python 3.15 because its maximum + supported version is 3.14. The dependency chain is `nbmake` → `nbformat` → + `jsonschema` → `rpds-py`. +- [Windows job](https://github.com/pytask-dev/pytask/actions/runs/38146254905/job/114490184675): + `cachebox` 5.2.3 uses PyO3 0.27.1, which also rejects Python 3.15 because its + maximum supported version is 3.14. `aiohttp` and `greenlet` built successfully + from source on this runner. + +macOS was still running when these results were recorded. Missing wheels alone +do not prove incompatibility; the PyO3 version checks above are confirmed blockers. + ## Runtime availability and test coverage [Python 3.15.0 was released on 2026-10-09](https://www.python.org/downloads/release/python-3150/). @@ -52,8 +71,8 @@ The highest-resolution job stays on Python 3.14 until the experimental jobs can successfully. The existing Coiled dependency marker also excludes Python 3.15, so the Coiled-specific test remains skipped. -No claim about pytask runtime compatibility can be made from the local run because -dependency installation failed before test collection. Record CI failures here as -they become available. Remove `continue-on-error` and add the Python 3.15 classifier +No claim about pytask runtime compatibility can be made from these runs because +dependency installation failed before test collection. Record further CI failures here +as they become available. Remove `continue-on-error` and add the Python 3.15 classifier only after dependency installation and the applicable test suites pass on all three operating systems. From 1c0aded89509cc668d44522c06e82eec6c97f556 Mon Sep 17 00:00:00 2001 From: Tobias Raabe Date: Sat, 21 Nov 2026 11:12:50 +0100 Subject: [PATCH 4/9] Update notebook kernel for Python 3.15 --- uv.lock | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/uv.lock b/uv.lock index 1937761f..0deac496 100644 --- a/uv.lock +++ b/uv.lock @@ -1596,7 +1596,7 @@ wheels = [ [[package]] name = "ipykernel" -version = "6.29.5" +version = "7.4.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "appnope", marker = "sys_platform == 'darwin'" }, @@ -1606,16 +1606,15 @@ dependencies = [ { name = "jupyter-client" }, { name = "jupyter-core" }, { name = "matplotlib-inline" }, - { name = "nest-asyncio" }, + { name = "nest-asyncio2" }, { name = "packaging" }, - { name = "psutil" }, { name = "pyzmq" }, { name = "tornado" }, { name = "traitlets" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/e9/5c/67594cb0c7055dc50814b21731c22a601101ea3b1b50a9a1b090e11f5d0f/ipykernel-6.29.5.tar.gz", hash = "sha256:f093a22c4a40f8828f8e330a9c297cb93dcab13bd9678ded6de8e5cf81c56215", size = 163367, upload-time = "2024-07-01T14:07:22.543Z" } +sdist = { url = "https://files.pythonhosted.org/packages/7a/05/e5499c8b762387d83926bf0389e8fff888c9bf6e7af30566a8527bc12f4a/ipykernel-7.4.0.tar.gz", hash = "sha256:4330114d22b9b33575b2c7c68753fc8faabbbcfbc60b0cdff9f14dd4ce63742f", size = 192731, upload-time = "2026-09-29T16:33:11.468Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/94/5c/368ae6c01c7628438358e6d337c19b05425727fbb221d2a3c4303c372f42/ipykernel-6.29.5-py3-none-any.whl", hash = "sha256:afdb66ba5aa354b09b91379bac28ae4afebbb30e8b39510c9690afb7a10421b5", size = 117173, upload-time = "2024-07-01T14:07:19.603Z" }, + { url = "https://files.pythonhosted.org/packages/a5/f8/8b5c10c7f36ab5a3b5c4703669e5b14e44e98782b58e535dd30670e8799a/ipykernel-7.4.0-py3-none-any.whl", hash = "sha256:a6757f790ddc5a6006b813d82da1a9dbb65b3a00f2b6607df776418c6566ec1c", size = 123184, upload-time = "2026-09-29T16:33:09.612Z" }, ] [[package]] @@ -1742,7 +1741,7 @@ wheels = [ [[package]] name = "jupyter-client" -version = "8.6.3" +version = "8.10.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "jupyter-core" }, @@ -1750,10 +1749,11 @@ dependencies = [ { name = "pyzmq" }, { name = "tornado" }, { name = "traitlets" }, + { name = "typing-extensions" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/71/22/bf9f12fdaeae18019a468b68952a60fe6dbab5d67cd2a103cac7659b41ca/jupyter_client-8.6.3.tar.gz", hash = "sha256:35b3a0947c4a6e9d589eb97d7d4cd5e90f910ee73101611f01283732bd6d9419", size = 342019, upload-time = "2024-09-17T10:44:17.613Z" } +sdist = { url = "https://files.pythonhosted.org/packages/c5/2a/906772148a06e48885039e0250c340b770a55bbf37b08d6ee0449df369c3/jupyter_client-8.10.0.tar.gz", hash = "sha256:9f7116294dca55f1785be880057d44544db9b1567718d92cb33c58886afb9497", size = 360653, upload-time = "2026-08-28T12:17:10.854Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/11/85/b0394e0b6fcccd2c1eeefc230978a6f8cb0c5df1e4cd3e7625735a0d7d1e/jupyter_client-8.6.3-py3-none-any.whl", hash = "sha256:e8a19cc986cc45905ac3362915f410f3af85424b4c0905e94fa5f2cb08e8f23f", size = 106105, upload-time = "2024-09-17T10:44:15.218Z" }, + { url = "https://files.pythonhosted.org/packages/0f/88/7c548de1f6c2ade7c931a3282da73f9274fa6a1531091be682f89c85efb9/jupyter_client-8.10.0-py3-none-any.whl", hash = "sha256:5f73f24f22fa25192cfff6b23c051932a2473a797b05734aff495b392103e14e", size = 110184, upload-time = "2026-08-28T12:17:09.028Z" }, ] [[package]] @@ -2408,12 +2408,12 @@ wheels = [ ] [[package]] -name = "nest-asyncio" -version = "1.6.0" +name = "nest-asyncio2" +version = "1.7.4" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/83/f8/51569ac65d696c8ecbee95938f89d4abf00f47d58d48f6fbabfe8f0baefe/nest_asyncio-1.6.0.tar.gz", hash = "sha256:6f172d5449aca15afd6c646851f4e31e02c598d553a667e38cafa997cfec55fe", size = 7418, upload-time = "2024-01-21T14:25:19.227Z" } +sdist = { url = "https://files.pythonhosted.org/packages/32/2c/70e3b6bb2189cfd260280b7e1042bd622949a258663f95e887fada4ac1e6/nest_asyncio2-1.7.4.tar.gz", hash = "sha256:995b1409d926ec55e0876ea39a69bffdd8852cf1db3652c177e8c8ffdbcaf3cc", size = 16891, upload-time = "2026-10-07T22:31:50.507Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/a0/c4/c2971a3ba4c6103a3d10c4b0f24f461ddc027f0f09763220cf35ca1401b3/nest_asyncio-1.6.0-py3-none-any.whl", hash = "sha256:87af6efd6b5e897c81050477ef65c62e2b2f35d51703cae01aff2905b1852e1c", size = 5195, upload-time = "2024-01-21T14:25:17.223Z" }, + { url = "https://files.pythonhosted.org/packages/09/ed/559d2915dce85794bc0c36064043da170da50cd98746dcbddd85d5932017/nest_asyncio2-1.7.4-py3-none-any.whl", hash = "sha256:86e77b52c3d1496b294af3c944b44213b9b82a12a5ee590c0acc4ca4692ef6c7", size = 8543, upload-time = "2026-10-07T22:31:49.245Z" }, ] [[package]] From a16e2acaa47ae8590e59c8f0c6636d194a0fa2c0 Mon Sep 17 00:00:00 2001 From: Tobias Raabe Date: Sat, 21 Nov 2026 11:20:44 +0100 Subject: [PATCH 5/9] Fix debugger prompt matching on Python 3.15 --- tests/test_debugging.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_debugging.py b/tests/test_debugging.py index f2f6611f..1c8ec8ec 100644 --- a/tests/test_debugging.py +++ b/tests/test_debugging.py @@ -488,10 +488,10 @@ def task_1(): ) child.expect(["PDB", "set_trace", r"\(IO-capturing", "turned", r"off\)"]) - child.expect(r"\n\(Pdb") + child.expect(r"\(Pdb\)") child.sendline("debug foo()") child.expect("ENTERING RECURSIVE DEBUGGER") - child.expect(r"\n\(\(Pdb") + child.expect(r"\(\(Pdb\)\)") child.sendline("c") child.expect("LEAVING RECURSIVE DEBUGGER") assert b"PDB continue" not in child.before # type: ignore[operator] From be088be9d626278e9b844e43ce9db8f67747b632 Mon Sep 17 00:00:00 2001 From: Tobias Raabe Date: Sat, 21 Nov 2026 11:21:26 +0100 Subject: [PATCH 6/9] Clean up Python 3.15 CI configuration --- .github/PYTHON315.md | 21 --------------------- .github/workflows/main.yml | 3 --- CHANGELOG.md | 4 ++-- 3 files changed, 2 insertions(+), 26 deletions(-) delete mode 100644 .github/PYTHON315.md diff --git a/.github/PYTHON315.md b/.github/PYTHON315.md deleted file mode 100644 index 7c747faa..00000000 --- a/.github/PYTHON315.md +++ /dev/null @@ -1,21 +0,0 @@ -# Python 3.15 CI - -Python 3.15 jobs run experimentally on Linux, macOS, and Windows. They use -`continue-on-error` while compatibility is checked and do not declare official -support. Windows follows the existing Python 3.14 path without notebook tests; -Coiled-specific coverage is also excluded by its dependency marker. - -On 2026-10-11, the original locked dependencies prevented test collection: -`rpds-py` 0.25.1 failed to build with Python 3.15 on Linux and macOS, and -`cachebox` 5.2.3 failed on Windows because their PyO3 versions rejected 3.15. - -On 2026-11-21, the lockfile was updated to `aiohttp` 3.14.5, `greenlet` 3.5.6, -`deepdiff` 9.2.1, `cachebox` 6.2.11, and `rpds-py` 2026.9.1. A local Windows -Python 3.15.0 run on an earlier main checkout passed 1,094 tests, with 42 skipped, -one expected failure, and five unexpected passes, without notebook tests. The CI -matrix on this branch checks the updated main and dependency combination on all -three platforms. - -Review the individual 3.15 jobs: their failures do not fail the overall workflow. -Promote Python 3.15 to supported status only after the applicable suites pass -across the matrix and remaining coverage exclusions have been assessed. diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 46eed4f9..8cbad8ed 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -46,9 +46,6 @@ jobs: name: Run tests for ${{ matrix.os }} on ${{ matrix.python-version }} runs-on: ${{ matrix.os }} - # Track Python 3.15 blockers without blocking supported Python versions. - # See .github/PYTHON315.md for blockers and promotion criteria. - continue-on-error: ${{ matrix.python-version == '3.15' }} permissions: contents: read diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f8188ea..0639ddef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,8 +7,8 @@ releases are available on [PyPI](https://pypi.org/project/pytask) and ## Unreleased -- [#1023](https://github.com/pytask-dev/pytask/pull/1023) adds experimental Python - 3.15 tests on Linux, macOS, and Windows and documents compatibility blockers. +- [#1023](https://github.com/pytask-dev/pytask/pull/1023) adds Python 3.15 tests on + Linux, macOS, and Windows. - [#1026](https://github.com/pytask-dev/pytask/pull/1026) preserves definition-local bindings for generated tasks with postponed annotations and releases temporary snapshots after collection or generator failures. Internal task registration no From 57c8f5e79fa827cf5a3de33f69617610c3bd113b Mon Sep 17 00:00:00 2001 From: Tobias Raabe Date: Sat, 21 Nov 2026 11:24:13 +0100 Subject: [PATCH 7/9] Handle recursive debugger terminal output --- tests/test_debugging.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_debugging.py b/tests/test_debugging.py index 1c8ec8ec..4a07bc63 100644 --- a/tests/test_debugging.py +++ b/tests/test_debugging.py @@ -491,12 +491,12 @@ def task_1(): child.expect(r"\(Pdb\)") child.sendline("debug foo()") child.expect("ENTERING RECURSIVE DEBUGGER") - child.expect(r"\(\(Pdb\)\)") + child.expect(r"\(Pdb\)") child.sendline("c") child.expect("LEAVING RECURSIVE DEBUGGER") assert b"PDB continue" not in child.before # type: ignore[operator] # No extra newline. - assert child.before.endswith(b"c\r\nprint_from_foo\r\n") # type: ignore[union-attr] + assert _escape_ansi(child.before.decode()).endswith("c\r\nprint_from_foo\r\n") # type: ignore[union-attr] # set_debug should not raise outcomes. Exit, if used recursively. child.sendline("debug 42") From de087d1afd2f5648bb18cfcbc90b3c9171b60a15 Mon Sep 17 00:00:00 2001 From: Tobias Raabe Date: Sat, 21 Nov 2026 11:26:34 +0100 Subject: [PATCH 8/9] Normalize debugger terminal line endings --- tests/test_debugging.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_debugging.py b/tests/test_debugging.py index 4a07bc63..9d4e58c3 100644 --- a/tests/test_debugging.py +++ b/tests/test_debugging.py @@ -496,7 +496,8 @@ def task_1(): child.expect("LEAVING RECURSIVE DEBUGGER") assert b"PDB continue" not in child.before # type: ignore[operator] # No extra newline. - assert _escape_ansi(child.before.decode()).endswith("c\r\nprint_from_foo\r\n") # type: ignore[union-attr] + output = _escape_ansi(child.before.decode()).replace("\n\r", "\r\n") # type: ignore[union-attr] + assert output.endswith("c\r\nprint_from_foo\r\n") # set_debug should not raise outcomes. Exit, if used recursively. child.sendline("debug 42") From bc24c2592b9841d4f232f83828dfac65d57bf9f6 Mon Sep 17 00:00:00 2001 From: Tobias Raabe Date: Sat, 21 Nov 2026 11:34:13 +0100 Subject: [PATCH 9/9] Enable Windows notebook tests on Python 3.14 and 3.15 --- .github/workflows/main.yml | 8 +------- pyproject.toml | 3 +-- uv.lock | 34 ++++++++++++++++++++-------------- 3 files changed, 22 insertions(+), 23 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8cbad8ed..7ca6aac1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -79,16 +79,10 @@ jobs: run: just test-cov - name: Run tests on Windows - if: matrix.os == 'windows-latest' && !contains(fromJSON('["3.14", "3.15"]'), matrix.python-version) + if: matrix.os == 'windows-latest' shell: bash -l {0} run: just test-cov --snapshot-warn-unused - # The locked pywin32 version has no wheels for Python 3.14 or 3.15. - - name: Run tests without notebook tests (Windows + Python 3.14 or 3.15) - if: matrix.os == 'windows-latest' && contains(fromJSON('["3.14", "3.15"]'), matrix.python-version) - shell: bash -l {0} - run: uv run --group test pytest --cov=src --cov=tests --cov-report=xml -n auto --snapshot-warn-unused - - name: Upload test coverage reports to Codecov with GitHub Action uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1 diff --git a/pyproject.toml b/pyproject.toml index 8225898a..21ffda94 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,8 +62,7 @@ plugin-list = ["httpx>=0.27.0", "tabulate[widechars]>=0.9.0"] test = [ "cloudpickle>=3.0.0", "deepdiff>=7.0.0", - # nbmake requires pywin32 on Windows, which has no wheels for Python 3.14 yet - "nbmake>=1.5.5; platform_system != 'Windows' or python_version < '3.14'", + "nbmake>=1.5.5", "pygments>=2.18.0", "pexpect>=4.9.0", "pytest>=8.4.0", diff --git a/uv.lock b/uv.lock index 0deac496..707a074b 100644 --- a/uv.lock +++ b/uv.lock @@ -3056,7 +3056,7 @@ test = [ { name = "cloudpickle" }, { name = "coiled", marker = "python_full_version < '3.14'" }, { name = "deepdiff" }, - { name = "nbmake", marker = "python_full_version < '3.14' or sys_platform != 'win32'" }, + { name = "nbmake" }, { name = "networkx" }, { name = "pexpect" }, { name = "pygments" }, @@ -3107,7 +3107,7 @@ test = [ { name = "cloudpickle", specifier = ">=3.0.0" }, { name = "coiled", marker = "python_full_version < '3.14'", specifier = ">=1.42.0" }, { name = "deepdiff", specifier = ">=7.0.0" }, - { name = "nbmake", marker = "python_full_version < '3.14' or sys_platform != 'win32'", specifier = ">=1.5.5" }, + { name = "nbmake", specifier = ">=1.5.5" }, { name = "networkx", specifier = ">=2.4.0" }, { name = "pexpect", specifier = ">=4.9.0" }, { name = "pygments", specifier = ">=2.18.0" }, @@ -3176,18 +3176,24 @@ wheels = [ [[package]] name = "pywin32" -version = "310" -source = { registry = "https://pypi.org/simple" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/f7/b1/68aa2986129fb1011dabbe95f0136f44509afaf072b12b8f815905a39f33/pywin32-310-cp311-cp311-win32.whl", hash = "sha256:1e765f9564e83011a63321bb9d27ec456a0ed90d3732c4b2e312b855365ed8bd", size = 8784284, upload-time = "2025-03-17T00:55:53.124Z" }, - { url = "https://files.pythonhosted.org/packages/b3/bd/d1592635992dd8db5bb8ace0551bc3a769de1ac8850200cfa517e72739fb/pywin32-310-cp311-cp311-win_amd64.whl", hash = "sha256:126298077a9d7c95c53823934f000599f66ec9296b09167810eb24875f32689c", size = 9520748, upload-time = "2025-03-17T00:55:55.203Z" }, - { url = "https://files.pythonhosted.org/packages/90/b1/ac8b1ffce6603849eb45a91cf126c0fa5431f186c2e768bf56889c46f51c/pywin32-310-cp311-cp311-win_arm64.whl", hash = "sha256:19ec5fc9b1d51c4350be7bb00760ffce46e6c95eaf2f0b2f1150657b1a43c582", size = 8455941, upload-time = "2025-03-17T00:55:57.048Z" }, - { url = "https://files.pythonhosted.org/packages/6b/ec/4fdbe47932f671d6e348474ea35ed94227fb5df56a7c30cbbb42cd396ed0/pywin32-310-cp312-cp312-win32.whl", hash = "sha256:8a75a5cc3893e83a108c05d82198880704c44bbaee4d06e442e471d3c9ea4f3d", size = 8796239, upload-time = "2025-03-17T00:55:58.807Z" }, - { url = "https://files.pythonhosted.org/packages/e3/e5/b0627f8bb84e06991bea89ad8153a9e50ace40b2e1195d68e9dff6b03d0f/pywin32-310-cp312-cp312-win_amd64.whl", hash = "sha256:bf5c397c9a9a19a6f62f3fb821fbf36cac08f03770056711f765ec1503972060", size = 9503839, upload-time = "2025-03-17T00:56:00.8Z" }, - { url = "https://files.pythonhosted.org/packages/1f/32/9ccf53748df72301a89713936645a664ec001abd35ecc8578beda593d37d/pywin32-310-cp312-cp312-win_arm64.whl", hash = "sha256:2349cc906eae872d0663d4d6290d13b90621eaf78964bb1578632ff20e152966", size = 8459470, upload-time = "2025-03-17T00:56:02.601Z" }, - { url = "https://files.pythonhosted.org/packages/1c/09/9c1b978ffc4ae53999e89c19c77ba882d9fce476729f23ef55211ea1c034/pywin32-310-cp313-cp313-win32.whl", hash = "sha256:5d241a659c496ada3253cd01cfaa779b048e90ce4b2b38cd44168ad555ce74ab", size = 8794384, upload-time = "2025-03-17T00:56:04.383Z" }, - { url = "https://files.pythonhosted.org/packages/45/3c/b4640f740ffebadd5d34df35fecba0e1cfef8fde9f3e594df91c28ad9b50/pywin32-310-cp313-cp313-win_amd64.whl", hash = "sha256:667827eb3a90208ddbdcc9e860c81bde63a135710e21e4cb3348968e4bd5249e", size = 9503039, upload-time = "2025-03-17T00:56:06.207Z" }, - { url = "https://files.pythonhosted.org/packages/b4/f4/f785020090fb050e7fb6d34b780f2231f302609dc964672f72bfaeb59a28/pywin32-310-cp313-cp313-win_arm64.whl", hash = "sha256:e308f831de771482b7cf692a1f308f8fca701b2d8f9dde6cc440c7da17e47b33", size = 8458152, upload-time = "2025-03-17T00:56:07.819Z" }, +version = "312" +source = { registry = "https://pypi.org/simple" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/1f/f5/10a6e845a00fc5e7afd0a988b744f403d4d57162a28d160a093c4d9322f0/pywin32-312-cp311-cp311-win32.whl", hash = "sha256:17948aeadbdb091f0ced6ef0841620794e68327b94ee415571c1203594b7215c", size = 6362659, upload-time = "2026-06-04T07:49:21.349Z" }, + { url = "https://files.pythonhosted.org/packages/35/c4/dcd2d62b5944b6d5db53413a5899016ccd57ffcb7278f3f81655d25d2027/pywin32-312-cp311-cp311-win_amd64.whl", hash = "sha256:d11417d84412f859b722fad0841b3614459ed0047f7542d8362e77884f6b6e8a", size = 6928825, upload-time = "2026-06-04T07:49:23.934Z" }, + { url = "https://files.pythonhosted.org/packages/b7/56/3cbb433fe4501cdba2eb9040f56a4e1a8243faa4186b25295564d1a7a79d/pywin32-312-cp311-cp311-win_arm64.whl", hash = "sha256:b2200a054ca6d6625c4842fc56a4976a4b47f96b73dbe5538c3f813a80359f47", size = 6721875, upload-time = "2026-06-04T07:49:26.416Z" }, + { url = "https://files.pythonhosted.org/packages/83/ff/32aa7d2ed0ab12b323aaa64f9b75e6ad4f8fd09f9ccfc28c79414d46838d/pywin32-312-cp312-cp312-win32.whl", hash = "sha256:dab4f65ac9c4e48400a2a0530c46c3c579cd5905ecd11b80692373915269208b", size = 6371877, upload-time = "2026-06-04T07:49:28.836Z" }, + { url = "https://files.pythonhosted.org/packages/03/d9/77040d3b43df3f3be32ea289433d660d2727f5ba327bc73be835127d9d60/pywin32-312-cp312-cp312-win_amd64.whl", hash = "sha256:b457f6d628a47e8a7346ce22acb7e1a46a4a78b52e1d17e1af56871bd19a93bc", size = 6914841, upload-time = "2026-06-04T07:49:31.85Z" }, + { url = "https://files.pythonhosted.org/packages/e3/cc/7b1ec671775756020a0ee7f4feeaf3c568f0ab86bd3900088cf986937a92/pywin32-312-cp312-cp312-win_arm64.whl", hash = "sha256:6017c58e12f6809fbb0555b75df144c2922a9ffd18e4b9b5afa863b6c1a9d950", size = 6727901, upload-time = "2026-06-04T07:49:34.244Z" }, + { url = "https://files.pythonhosted.org/packages/2d/41/12fbfd7f36ed2146d8bc9de96c2741296bf0d490b98508496cff322e274c/pywin32-312-cp313-cp313-win32.whl", hash = "sha256:7a27df850933d16a8eabfbaeb73d52b273e2da667f80d70b01a89d1f6828d02c", size = 6370184, upload-time = "2026-06-04T07:49:36.253Z" }, + { url = "https://files.pythonhosted.org/packages/ba/db/36a78e3403099d31d9746d13fdcde5accc43c1155f375a34d15983a479a7/pywin32-312-cp313-cp313-win_amd64.whl", hash = "sha256:c53e878d15a1c44788082bfe712a905433473aa38f86375b7cf8b45e3acbaaf9", size = 6914298, upload-time = "2026-06-04T07:49:38.876Z" }, + { url = "https://files.pythonhosted.org/packages/84/37/c1697194092b76de9ed47ca124323f02c57ffc8a45c06f88a3d5acaf01eb/pywin32-312-cp313-cp313-win_arm64.whl", hash = "sha256:59aba5d5940842075343a5ddc6b11f1cdf0d1567fe745290359dfbcc7c2eb831", size = 6727640, upload-time = "2026-06-04T07:49:41.083Z" }, + { url = "https://files.pythonhosted.org/packages/fc/2b/1f3cded5822fd49c02f40544cbb5f58c7cfd6b1694869fd476cb6170ee97/pywin32-312-cp314-cp314-win32.whl", hash = "sha256:a77a90fbb6881238d2ca9c6fd797b25817f3768fe78d214a90137ff055a75f5b", size = 6468928, upload-time = "2026-06-04T07:49:43.188Z" }, + { url = "https://files.pythonhosted.org/packages/21/82/3bf86d2e2808902013132e1ce905a7da0da53790f3836c64bf44d55e24f3/pywin32-312-cp314-cp314-win_amd64.whl", hash = "sha256:a4dd3a848290ef724347b19f301045831d8e802fa4464f491b98b1e0a081432e", size = 7024157, upload-time = "2026-06-04T07:49:45.34Z" }, + { url = "https://files.pythonhosted.org/packages/a4/0e/73f6d6800b4f27655abd9e9f6aaeaefcddb2b946e4674efa2bab184a7f7b/pywin32-312-cp314-cp314-win_arm64.whl", hash = "sha256:9fce94568364e0155e6dfb781ac5d95903be8baf28670632beab1b523f300daa", size = 6839598, upload-time = "2026-06-04T07:49:47.613Z" }, + { url = "https://files.pythonhosted.org/packages/eb/61/caa39686032d2ebdd04ff0ab5cbe163126c0066d98e00c9018646e42393b/pywin32-312-cp315-cp315-win32.whl", hash = "sha256:5c1fbe4a937a73ae9297384a3da38518cbc694c68ad8a809b2e19acd350f03ed", size = 6471159, upload-time = "2026-06-04T07:49:50.035Z" }, + { url = "https://files.pythonhosted.org/packages/0f/cd/7e1de64a4a6f69c04214169657ccab0d93a670ea50e35eb8f489d7378249/pywin32-312-cp315-cp315-win_amd64.whl", hash = "sha256:c2f03a0f73f804a13c2735b99392b0cd426bb4f2c4d0178e5ac966a0f21618d5", size = 7025293, upload-time = "2026-06-04T07:49:54.857Z" }, + { url = "https://files.pythonhosted.org/packages/23/ed/4532e9388e65fa16b46776ef47ad631a64eda1631884488af707666350ed/pywin32-312-cp315-cp315-win_arm64.whl", hash = "sha256:a8597d28f267b39074aef51fa593530082b39cbe5a074226096857b1fed2dfb9", size = 6840337, upload-time = "2026-06-04T07:49:57.531Z" }, ] [[package]]