Skip to content

fix: require Python >=3.11 (stdlib tomllib) — green CI, 0.2.1 - #10

Merged
collincusce merged 1 commit into
mainfrom
fix/require-python-311
Jun 5, 2026
Merged

fix: require Python >=3.11 (stdlib tomllib) — green CI, 0.2.1#10
collincusce merged 1 commit into
mainfrom
fix/require-python-311

Conversation

@collincusce

Copy link
Copy Markdown
Owner

The failure

CI went red on the Python 3.10 matrix leg only:

ModuleNotFoundError: No module named 'tomllib'

tomllib is stdlib since Python 3.11. config.py and profiles/detect.py import it, but pyproject.toml claimed requires-python = ">=3.10" and CI tested 3.10 — so 3.10 never actually worked (it passed locally only because the dev box is 3.11). 3.11–3.13 are green.

The fix

Require Python ≥ 3.11 — the honest, lean fix that keeps the zero-runtime-dependency promise (the alternative, a tomli backport, would add a dep just to support an EOL-approaching minor).

  • requires-python = ">=3.11", drop the 3.10 classifier
  • CI matrix → ["3.11", "3.12", "3.13"]
  • Bump to 0.2.1 + CHANGELOG (the published 0.2.0 advertises 3.10 but crashes there)

Verified

  • uv build0.2.1, wheel metadata shows Requires-Python: >=3.11
  • twine check PASSED on both artifacts
  • 72 tests pass

After merge, CI should be green. To correct the published metadata on PyPI (0.2.0 is immutable and still claims 3.10), cut a v0.2.1 GitHub Release — publish.yml will ship it automatically.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HiQppNdrQhiZ5vwMEdSCzT


Generated by Claude Code

CI failed on 3.10 with ModuleNotFoundError: tomllib (stdlib only since 3.11).
0.2.0 advertised >=3.10 but crashed on import there. Correct requires-python,
classifiers, and the test matrix (3.11-3.13). Keeps the zero-dep promise.
@collincusce
collincusce merged commit 20707fd into main Jun 5, 2026
3 checks passed
collincusce pushed a commit that referenced this pull request Jun 10, 2026
…for the next session

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@collincusce
collincusce deleted the fix/require-python-311 branch July 28, 2026 21:30
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.

2 participants