Skip to content

build: use nixpkgs-unstable python315 and require Python 3.15.2 - #25

Merged
furedea merged 2 commits into
mainfrom
build/python-3152
Nov 12, 2026
Merged

furedea merged 2 commits into
mainfrom
build/python-3152

Conversation

@furedea-agent

@furedea-agent furedea-agent Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

概要

Python を 3.14.10 から 3.15.2 に上げ,自前の CPython ビルド(nix/python.nix)をやめて nixpkgs-unstable の python315 を使う.3.15.2 は ssl が侵害された eMudhra 中間証明書を拒否する最初のリリースで,nixpkgs-unstable がそれを配布するようになったため,自前ビルドの理由がなくなった.

変更 内容
nix/python.nix 削除.mimetypesSupport = false に依存するものはリポジトリ内になかった
flake.nix devShell が nixpkgs-unstable.legacyPackages.${system}.python315 を使う
pyproject.toml requires-python = ">= 3.15.2, < 3.16",ruff target-version = "py315"
.python-version 3.15
nix/uv.nix コメントを更新.3.15.2 を入れられる uv の最小版は 0.13.6(リリースノート "Add CPython ... 3.15.2").devShell は nixpkgs の Python を使う(UV_PYTHON_DOWNLOADS=never)ので uv 本体は 0.13.5 のまま
flake.lock nixpkgs-unstable を f20cd90 (2026-10-16) から f6bf105 (2026-11-08) へ
uv.lock 再生成.tomli 2.4.1 が消えた

ロックファイルは別コミットにした.

Closes #24

確認

  • nix develop -c python3 --version は 3.15.2 で,実体は /nix/store/...-python3-3.15.2/bin/python3.15
  • uv run --frozen pytest は 1 passed(Python 3.15.2)

計画からの逸脱

なし.

🤖 Generated with Claude Code

furedea and others added 2 commits November 12, 2026 15:38
Drop the in-house CPython 3.14.10 build. Python 3.15.2 is the first release whose

ssl denylists the compromised eMudhra intermediates, and nixpkgs-unstable ships it.

Align requires-python, .python-version and ruff target-version.

Refs #24

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
nixpkgs-unstable f20cd90 -> f6bf105 ships python315 3.15.2.

uv lock re-resolves for requires-python >= 3.15.2 and removes tomli 2.4.1.

Refs #24

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

furedea commented Nov 12, 2026

Copy link
Copy Markdown
Owner

@codex review

@github-actions

Copy link
Copy Markdown

Review summary

I reviewed this read-only for correctness, security, and missing tests. I found no blocking issues and posted no inline comments.

What I checked:

  • Leftover 3.14 references: none remain. .python-version, requires-python, ruff target-version, uv.lock and the flake all point at 3.15. No file still references nix/python.nix, and no /etc/mime.types dependency relied on the removed mimetypesSupport = false override.
  • devShell: UV_PYTHON_DOWNLOADS=never and UV_PYTHON_PREFERENCE=only-system are still set, so the pinned uv 0.13.5 never has to download CPython 3.15.2 itself. The updated comment in nix/uv.nix describes this correctly.
  • Security floor: requires-python >= 3.15.2 keeps the eMudhra denylist guarantee that the custom 3.14.10 build used to provide, and the locked nixpkgs-unstable revision ships 3.15.2.
  • uv.lock: the only changes are dropping tomli (deptry needs it only on older Pythons) and the cp314 wheels for coverage. Both are expected.
  • Tests: this is a toolchain-only change with no behavior change, so no new tests are needed. CI's lint, typecheck and test jobs run under the new interpreter.

Not verified here: I could not run ruff 0.15.11 or ty 0.0.31 locally. The PR's own checks list only pytest, so the CI lint and typecheck jobs are what confirm that both tools accept the py315 / 3.15 target.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: a5acbc3204

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-12T06:48:09.835460Z a5acbc3 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@furedea
furedea merged commit 77725d9 into main Nov 12, 2026
18 checks passed
@furedea
furedea deleted the build/python-3152 branch November 12, 2026 07:06
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.

build: Python 3.15.2 に移り nixpkgs-unstable の python315 を使う

1 participant