Skip to content

Official Codebase of 3DCodeVerse

Python

one python version: 3.13 — requires-python, ruff target, setup.sh, the portability pin, CI job and docs

gaoypeng2a6298a69d35
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 962fab83..b90e5666 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -20,9 +20,10 @@ jobs:
working-directory: harness
tests:
- # ONE JOB, ON THE FLOOR. 3.12 is pyproject's requires-python and ruff's
- # target-version, so this job tests exactly what the package claims and the
- # claim cannot drift untested. It was a 3.10 + 3.13 matrix until 2026-08-25;
+ # ONE JOB, ONE VERSION. 3.13 is pyproject's requires-python and ruff's
+ # target-version (the owner fixed a single version on 2026-08-26; the 3.12
+ # floor and its LTS argument are gone), so this job tests exactly what the
+ # package claims and the claim cannot drift untested. It was a 3.10 + 3.13 matrix until 2026-08-25;
# across every failure it ever saw, both jobs failed identically — the source
# level is already covered by tests/core/test_portability.py, which is static
# and runs anywhere, so the second interpreter only ever reported one bug
@@ -32,13 +33,13 @@ jobs:
# Node is not installed on the runner, so the node floor (20.6.0, see
# runtime_js/package.json "engines") is only checked by the version logic in
# tests/core/test_portability.py — the `node`-marked tests are deselected below.
- name: offline tests (py3.12 — the requires-python floor)
+ name: offline tests (py3.13 — the one supported version)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
- python-version: "3.12"
+ python-version: "3.13"
cache: pip
- name: Install the harness (no Blender / node / GPU on the runner)
run: pip install -e ./harness[dev]
diff --git a/harness/CLAUDE.md b/harness/CLAUDE.md
index bd61e6c7..b1599d76 100644
--- a/harness/CLAUDE.md
+++ b/harness/CLAUDE.md
@@ -29,14 +29,11 @@ score-vs-complexity corpus study) before changing anything.
build, let `check_contract`/`check_connectivity` gate it.
## Supported versions (what other people can run this on)
-python **3.12+** · node **20.6+** · Blender 4.2+ · Linux x86_64. Developed on 3.13 /
-node 24; **CI runs the floor (3.12) and only the floor** — one job that tests exactly what
-`requires-python` claims, so the claim cannot drift untested. 3.12 is the floor because it
-is what Ubuntu 24.04 LTS ships; being >= 3.11 it also needs no compatibility shim
-(`StrEnum`, `datetime.UTC` and `tomllib` are stdlib from 3.11, which is why
-`codeverse/_compat.py` was deleted). The floor lives in `pyproject` `requires-python` +
-ruff `target-version` + `scripts/setup.sh`, and `spatial/node.py:NODE_MIN` +
-`runtime_js/package.json` `engines` for node, pinned together by
+python **3.13** (one fixed version — owner's decision 2026-08-26; no floor, no matrix) ·
+node **20.6+** · Blender 4.2+ · Linux x86_64. **CI runs one job on 3.13** that tests exactly
+what `requires-python` claims, so the claim cannot drift untested. The version lives in
+`pyproject` `requires-python` + ruff `target-version` + `scripts/setup.sh`, and
+`spatial/node.py:NODE_MIN` + `runtime_js/package.json` `engines` for node, pinned together by
`tests/core/test_portability.py`. Details: `docs/INSTALL.md` §2.1.
## Environment (this machine)
diff --git a/harness/README.md b/harness/README.md
index 72bd371f..55b7d8d6 100644
--- a/harness/README.md
+++ b/harness/README.md
@@ -31,7 +31,7 @@ renders, judges, refines, textures and records every run as data-flywheel materi
in an orbit viewer, `record.json`) actually opens. `3dcv gallery build --embed` writes
the same page as one shareable file.
-**Supported versions:** python **3.12+** and node **20.6+** (Linux x86_64; Blender
+**Supported versions:** python **3.13** and node **20.6+** (Linux x86_64; Blender
4.2+ optional). Developed and measured on python 3.13 / node 24 — CI runs both
ends of that range. See `docs/INSTALL.md` §2.1.
diff --git a/harness/docs/INSTALL.md b/harness/docs/INSTALL.md
index 63d3e50e..cacb2af9 100644
--- a/harness/docs/INSTALL.md
+++ b/harness/docs/INSTALL.md
@@ -55,33 +55,26 @@ cd harness/runtime_js && npm ci && npx puppeteer browsers install chrome && cd .
### 2.1 Supported versions
-The harness is **developed and measured on python 3.13 / node 24**, and
-**supported down to python 3.12 / node 20.6** — both ends are installed from
-scratch and run in CI on every push (`.github/workflows/ci.yml`), so the floor is
-a tested claim, not an aspiration.
-
-| component | floor | developed on | how the floor is enforced | what you lose at the floor |
-|---|---|---|---|---|
-| **python** | **3.10** | 3.13 | `requires-python = ">=3.10"` (pip refuses 3.9); ruff `target-version = "py310"`; CI matrix 3.10 + 3.13; `tests/core/test_portability.py` parses every module with `ast.parse(feature_version=(3, 10))` and bans direct imports of 3.11-only stdlib names | nothing — the offline suite is green on both (2110 passed of the 2116 selected, measured on 3.13; the few skips are data-dependent — recorded runs and bench batteries a fresh clone does not have — and on 3.10 the `enum.StrEnum` parity check skips as well, since it needs 3.11 to have something to compare against). Resolved deps are a little older (numpy 2.2 vs 2.4, scipy 1.15 vs 1.18, networkx 3.4 vs 3.6, cadquery 2.7 vs 2.8) and pip additionally installs `tomli` |
-| **node** | **20.6.0** | 24 (LTS) | `runtime_js/package.json` `engines.node`; `codeverse.spatial.node.NODE_MIN` fails every node workload with an actionable message; `3dcv doctor`'s `node` row; `scripts/setup.sh` | nothing. 20.6.0 is where `node --import` lands, which the `three` resolver hook needs; below 22.15 it registers the older async loader hooks (`lib/resolve_three_async.mjs`) instead of the in-thread ones — same resolutions, a few ms slower at startup. Verified: all 93 `node`-marked tests (GLB export, headless-Chrome renders, scene probes, shader preflight) pass on node 20.19.5 |
-| **Blender** | 4.2 | 5.0.1 | runtime probe only (`Settings.resolve_blender()`) | untested below 4.2; the `blender` / `urdf_blender` languages are the only users |
-| **OS** | Linux x86_64 | WSL2 Ubuntu | — | macOS should work (pure-python + node + Blender; no code is Linux-specific except `resource.setrlimit` guards) but is **not** tested. Windows is not supported: use WSL2 |
-
-Python 3.11 and 3.12 are in the middle of a range whose two ends CI proves, and
-are not run separately. The three 3.11 stdlib names the harness wants —
-`enum.StrEnum`, `datetime.UTC`, `tomllib` — live behind `codeverse/_compat.py`,
-whose docstring says exactly when each shim can be deleted (when the floor
-reaches 3.11). Nothing else in the package is newer than 3.10.
-
-Raising the floor later is a four-line change: `requires-python`, ruff's
-`target-version`, `PY_FLOOR` in `tests/core/test_portability.py`, `MIN_PY_MINOR`
-in `scripts/setup.sh` — the test will then tell you which shims to delete.
+One fixed Python version — **3.13** — by the owner's decision (2026-08-26): no floor, no
+matrix, no compatibility shims. The harness is developed, measured and CI-tested on it
+(`.github/workflows/ci.yml`: one `offline tests (py3.13)` job on every push, so the claim in
+`requires-python` cannot drift untested).
+
+| component | version | how it is enforced | notes |
+|---|---|---|---|
+| **python** | **3.13** | `requires-python = ">=3.13"`; ruff `target-version = "py313"`; `PY_FLOOR` in `tests/core/test_portability.py`; `MIN_PY_MINOR` in `scripts/setup.sh` | the four places are pinned together by the portability test |
+| **node** | **20.6.0+** (developed on 24 LTS) | `runtime_js/package.json` `engines.node`; `codeverse.spatial.node.NODE_MIN` fails every node workload with an actionable message | 20.6 is the `--import` module-hook floor |
+| **Blender** | 4.2+ (developed on 5.0.1) | runtime probe only (`Settings.resolve_blender()`) | `blender` / `urdf_blender` are the only users |
+| **OS** | Linux x86_64 (WSL2 Ubuntu here) | — | macOS should work (nothing is Linux-specific except `resource.setrlimit` guards) but is not tested |
+
+Moving to another Python later is the same four-line change (`requires-python`, ruff
+`target-version`, `PY_FLOOR`, `MIN_PY_MINOR`) plus the CI job's `python-version`.
### 2.2 What you need installed
| what | required? | verified here | how it degrades without it |
|---|---|---|---|
-| **Python 3.12+** | yes | 3.13.9 (`/home/yipeng/miniconda3/bin/python`) | nothing runs; `requires-python = ">=3.10"` (§2.1) |
+| **Python 3.13** | yes | 3.13.9 (`/home/yipeng/miniconda3/bin/python`) | nothing runs; `requires-python = ">=3.13"` (§2.1) |
| **pip + venv** | yes | pip 25.3, `python -m venv` | `scripts/setup.sh` cannot install the package. A stock Debian/Ubuntu `/usr/bin/python3` ships **without** pip and is PEP 668 `EXTERNALLY-MANAGED`, so `pip install -e harness` refuses even once pip is present: `sudo apt install python3-venv python3-pip`, then use a virtualenv |
| **git** | yes | 2.53.0 | run workspaces are git repos (one commit per round); `Workspace.create()` and the flywheel trajectory/pair miners fail |
| **node ≥ 20.6** | yes, except for the `graphics` track | v24.14.0 (npm 11.9.0) | the `threejs` / `scene_threejs` languages disappear **and no object renders happen at all**: `spatial/render.py` renders *every* GLB (Blender-built and CadQuery-built included) with three.js in headless Chrome. Only `graphics` (moderngl) is node-free |
@@ -587,7 +580,7 @@ those by hand (`npm rm -g @google/gemini-cli @anthropic-ai/claude-code @openai/c
| component | version | where |
|---|---|---|
-| python | 3.13.9 (floor 3.10 — §2.1, verified in a clean 3.12.14 venv) | `/home/yipeng/miniconda3/bin/python` |
+| python | 3.13.9 (the one supported version — §2.1) | `/home/yipeng/miniconda3/bin/python` |
| pip packages | pydantic 2.13.2 · trimesh 4.12.2 · python-fcl 0.7.0.11 · moderngl 5.12.0 · shapely 2.1.2 · networkx 3.6.1 · manifold3d 3.5.2 · pyarrow 24.0.0 · mcp 2.0.0 · scipy 1.18.0 · yourdfpy 0.0.60 · cadquery 2.8.0 · google-genai 2.10.0 · pytest 9.1.1 · ruff 0.15.20 | editable install of `harness/` |
| node / npm | v24.14.0 / 11.9.0 (floor 20.6.0 — §2.1, verified against node 20.19.5) | `/home/yipeng/miniconda3/bin/node` |
| runtime_js deps | three 0.182.0 · puppeteer 24.43.1 · three-mesh-bvh 0.9.14 (100 packages, 97 MB) | `harness/runtime_js/node_modules` |
diff --git a/harness/pyproject.toml b/harness/pyproject.toml
index ddcd49c4..7ae3f146 100644
--- a/harness/pyproject.toml
+++ b/harness/pyproject.toml
@@ -8,16 +8,13 @@ version = "0.1.0"
description = "3dcodeverse: a data-flywheel harness for LLM-written 3D code (Blender / CadQuery / Three.js / URDF / GLSL) across static objects, articulated objects and scenes."
readme = "README.md"
# Floor = 3.10 (the oldest interpreter the whole dependency set still resolves on and the
-# offline suite is green on); developed and measured on 3.13. CI runs both ends.
+# one fixed version, 3.13 (owner, 2026-08-26): developed, measured and CI-tested on it.
# Nothing in the package uses a 3.11+ stdlib name directly — the three that were used
# (StrEnum, datetime.UTC, tomllib) live behind codeverse/_compat.py.
-requires-python = ">=3.12"
+requires-python = ">=3.13"
license = { text = "Apache-2.0" }
classifiers = [
"License :: OSI Approved :: Apache Software License",
- "Programming Language :: Python :: 3.10",
- "Programming Language :: Python :: 3.11",
- "Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
@@ -81,7 +78,7 @@ codeverse = ["**/__pycache__/*"] # a wheel must not carry the build host's byt
[tool.ruff]
line-length = 100
-target-version = "py312" # == requires-python floor: no 3.13+ idiom may slip in
+target-version = "py313" # == requires-python: one fixed version (owner, 2026-08-26)
[tool.ruff.lint]
select = ["E", "F", "I", "B", "UP", "SIM"]
diff --git a/harness/scripts/setup.sh b/harness/scripts/setup.sh
index c86888d9..4361199a 100755
--- a/harness/scripts/setup.sh
+++ b/harness/scripts/setup.sh
@@ -12,7 +12,7 @@ set -euo pipefail
# The supported floor (docs/INSTALL.md §2.1). Pinned to pyproject's requires-python
# and to codeverse/spatial/node.py NODE_MIN by tests/core/test_portability.py.
-MIN_PY_MINOR=12 # python 3.12+
+MIN_PY_MINOR=13 # python 3.13 (one fixed version)
MIN_NODE_MAJOR=20 # node 20.6+ (`node --import` module hooks)
MIN_NODE_MINOR=6
diff --git a/harness/tests/core/test_portability.py b/harness/tests/core/test_portability.py
index cbfba274..fe7d9eef 100644
--- a/harness/tests/core/test_portability.py
+++ b/harness/tests/core/test_portability.py
@@ -7,7 +7,7 @@ fakes. Three things are pinned:
* the floors agree across ``pyproject.toml``, ``ruff``, ``scripts/setup.sh``,
``codeverse/spatial/node.py`` and ``runtime_js/package.json``;
-* no module reaches past the floor — no 3.12 syntax, and the three 3.11 stdlib
+* no module reaches past the floor — no 3.14 syntax, and the three 3.11 stdlib
names the harness needs come from ``codeverse/_compat`` and nowhere else;
* the ``StrEnum`` shim behaves exactly like ``enum.StrEnum``.
"""
@@ -32,8 +32,8 @@ from codeverse.spatial.node import (
from codeverse.workspace import Workspace
HARNESS = Path(__file__).resolve().parents[2]
-PY_FLOOR = (3, 12)
-PY_FLOOR_STR = "3.12"
+PY_FLOOR = (3, 13)
+PY_FLOOR_STR = "3.13"
#: directories under the scanned trees that hold *run output*, not harness source: