Repository navigation
py(deps[dev]) Scope pillow and fastmcp to Python 3.11+ - #83
Merged
Merged
Conversation
why: The Python 3.10 lock fork kept pillow 12.3.0 and dnspython 2.8.0, whose fixed releases (pillow 13.0.0, dnspython 2.9.0) need Python 3.11. `uv lock --upgrade` could not clear the 42 Dependabot alerts on them. Both packages only enter through the root `dev` group, so no published package is affected. what: - Mark `pillow>=13` and `fastmcp>=4.0.2` in the `dev` group with `python_version >= '3.11'`; relock. The 3.10 fork entries for pillow, dnspython and the other forked packages collapse to the 3.11+ version. - Skip `tests/visual/test_visual_regression.py` when PIL is absent. - Skip collecting the FastMCP demo server doctest when fastmcp is absent. - Let mypy on 3.10 treat PIL, pydantic and mcp as Any in the three modules that import them.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #83 +/- ##
==========================================
- Coverage 93.41% 93.41% -0.01%
==========================================
Files 278 279 +1
Lines 24125 24130 +5
==========================================
+ Hits 22536 22540 +4
- Misses 1589 1590 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
4 of 5 tasks
tony
added a commit
that referenced
this pull request
Nov 8, 2026
Python 3.10 reached end of life in October 2026. Every workspace package now requires Python 3.11, and the 3.10 accommodations from #83 are removed. `pillow` and `fastmcp` lose their `python_version >= '3.11'` marker, `tomli` is dropped, and the 3.10-only mypy overrides, `docs/conftest.py` and the `PIL` `importorskip` guard go with them. `tomllib` is imported directly, and `Mode` in `sphinx-vite-builder` is a `StrEnum`. The lock collapses its 3.10 forks without moving any version in the 3.11+ fork.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Python 3.10 fork of
uv.lockkeptpillow12.3.0 anddnspython2.8.0. Their fixed releases (13.0.0 and 2.9.0) need Python 3.11, so no upgrade could clear the 42 open Dependabot alerts. Both packages only come in through the rootdevgroup. This scopespillowandfastmcp(which pullsdnspython) to Python 3.11+ there.Changes
pyproject.toml:pillow>=13andfastmcp>=4.0.2getpython_version >= '3.11'.uv.lock: relocked withuv lock(no upgrade). Onepillow(13.0.0) and onednspython(2.9.2) remain. The 3.10 fork entries of 13 packages collapse to their 3.11+ version (aiofile, caio, cyclopts, dnspython, griffelib, httpcore2, httpx2, joserfc, pillow, platformdirs, pycparser, pydantic-settings, python-multipart, rpds-py, sse-starlette); no 3.11+ version moved.tests/visual/test_visual_regression.py:pytest.importorskip("PIL").docs/conftest.py: skip collecting the FastMCP demo server doctest whenfastmcpis missing.pyproject.tomlmypy overrides: on 3.10 PIL, pydantic and mcp are absent, so the three modules that import them are checked againstAny.No
CHANGESentry: dev-only, no public API, CLI, configuration or output change.Test plan
uv sync --python 3.10 --all-packages --all-extras --group dev,UV_PYTHON=3.10): ruff check, ruff format --check, mypy, pytest: 2323 passed, 94 skipped. One process-timing test failed under load and passed on its own re-run.sphinx-build -W -b dirhtml docssucceeds.No module named 'PIL', thenfastmcp) and mypy reported 80 errors.Fixes #82