From ccbbd5ef1c5d8ea5dae8cce4073125731d272012 Mon Sep 17 00:00:00 2001 From: Theodore Turocy Date: Mon, 5 Oct 2026 15:34:24 +0100 Subject: [PATCH] Temporarily remove open_spiel from Python 3.15 CI tests The CI on Python 3.15 on Windows is very slow at the moment, because `open_spiel` does not yet have a wheel available for Python 3.15, and as a result it has to be re-built from scratch, which takes too long. This temporarily disables building open_spiel and running the corresponding notebook in tests for the Windows/py315 combination. --- pyproject.toml | 2 +- tests/test_tutorials.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 162feee407..90206b25e1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -58,7 +58,7 @@ doc = [ "pickleshare", "jupyter", "jupyter-sphinx", - "open_spiel; sys_platform != 'win32'", + "open_spiel; sys_platform != 'win32' and python_version < '3.15'", "sphinxcontrib-tikz", "jupyter_sphinx", "pyyaml", diff --git a/tests/test_tutorials.py b/tests/test_tutorials.py index 6d6a4bb9e0..756f552cb7 100644 --- a/tests/test_tutorials.py +++ b/tests/test_tutorials.py @@ -53,6 +53,10 @@ def test_execute_notebook(nb_path): if sys.platform == "win32" and "openspiel" in nb_path.name.lower(): pytest.skip("OpenSpiel notebook requires OpenSpiel, which is not available on Windows") + # OpenSpiel has no Python 3.15 wheels yet, and building it from source is very slow + if sys.version_info >= (3, 15) and "openspiel" in nb_path.name.lower(): + pytest.skip("OpenSpiel is not installed on Python 3.15 (no wheels available)") + # GAMUT notebook requires Java and gamut.jar; outputs are pre-saved for docs builds if "gamut" in nb_path.name.lower(): pytest.skip("GAMUT notebook requires Java and gamut.jar (see catalog documentation)")