Rotate Python Versions

Use when adding or dropping Python version support — updating requires-python, tox environments, CI matrix, and docs to reflect a new set of supported versions.

tomevault-io 3b1d882 2 files · 1.8 KB Updated

File contents

Rotate Python Versions

Update all version references consistently when adding or dropping Python support.

Locations to update

  • pyproject.tomlrequires-python constraint and tox env_list
  • .github/workflows/ — CI matrix python-version list
  • docs/ and README.rst — requirements/compatibility version list
  • CLAUDE.md — any version range mentioned in comments

Key detail

Use >=X.Y for requires-python, not ~=X.Y without a patch version — the tilde specifier without a patch (e.g. ~=3.12) is ambiguous and triggers a uv warning.

After editing

Search for stray references:

rg "3\.\d{2}|py3\d{2}" --glob "*.toml" --glob "*.yml" --glob "*.rst" --glob "*.md"

Then verify all environments pass:

uv run tox -p

Source: todofixthis/class-registry — distributed by TomeVault.

tomevault-io/skills-registry/tree/main/todofixthis--class-registry--class-registry commit 3b1d882ae7

Frequently asked questions

npx skillmds@latest add tomevault-io/rotate-python-versions