Skip to content

chore/Python-version-pin · L-261023-028959 - #96

Merged
lchoquel merged 1 commit into
devfrom
chore/Python-version-pin
Oct 23, 2026
Merged

lchoquel merged 1 commit into
devfrom
chore/Python-version-pin

Conversation

@lchoquel

@lchoquel lchoquel commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

cocode now pins its development interpreter to 3.13 in .python-version, and the Makefile exports it as UV_PYTHON, so make install builds on the pin and PYTHON_VERSION=3.11 make install really rebuilds on 3.11, which it silently did not before. The lint and test matrices set UV_PYTHON per cell and end by asserting the interpreter they ran, the docs check keeps 3.11 at job level, and the docs deploy reads the version from the file.

Closes L-261023-028959

🤖 Generated with Claude Code

https://claude.ai/code/session_01TuqArJByf4EdN7khSDRiPe


Summary by cubic

Pins the development interpreter to 3.13 in .python-version and has the Makefile and CI read it, so the terminal, editor, and CI all agree on one Python version.

Before, PYTHON_VERSION=3.11 make install silently left an existing .venv on its old Python; now it rebuilds on the version named, and a plain make install returns the environment to the pin. The lint and test matrix jobs set UV_PYTHON per version and fail unless .venv ran the version the job names. The docs check keeps 3.11 at job level, and the docs deploy installs the pinned version from the file.

Closes L-261023-028959

Written for commit f5b9fa6. Summary will update on new commits.

View guided diff

…ell's version

.python-version names 3.13, the version the Makefile defaulted to. The Makefile
reads it and exports the chosen version as UV_PYTHON, so PYTHON_VERSION or
UV_PYTHON still select another one and every uv command, uv sync included,
keeps .venv on it; before, PYTHON_VERSION=3.11 make install left an existing
.venv on its old Python. The lint and test matrices set UV_PYTHON for the whole
job instead of prefixing one command, and end by asserting that .venv ran the
version the job names. The docs check keeps 3.11 through a job-level UV_PYTHON,
and the docs deploy installs the pinned Python instead of the newest 3.x.
CONTRIBUTING.md, which the docs site includes, says where the interpreter is
pinned and how to try another.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TuqArJByf4EdN7khSDRiPe
@lchoquel
lchoquel merged commit 98e7707 into dev Oct 23, 2026
16 checks passed
@lchoquel
lchoquel deleted the chore/Python-version-pin branch October 23, 2026 19:45
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