Skip to content

fix(deps): raise Python floor to 3.10 and relock to clear Dependabot alerts - #9

Merged
mikejgray merged 1 commit into
mainfrom
fix/python-floor-3.10
Sep 6, 2026
Merged

mikejgray merged 1 commit into
mainfrom
fix/python-floor-3.10

Conversation

@mikejgray

Copy link
Copy Markdown
Contributor

What changed

  • requires-python raised from >=3.9 to >=3.10 in pyproject.toml
  • 3.9 dropped from the python-version matrix in .github/workflows/unit-tests.yml
  • uv.lock re-resolved with plain uv lock (no --upgrade)

Why the 3.9 fork mattered

uv.lock contained a python_full_version < '3.10' resolution fork. Because
3.9 was still supported, uv had to lock a second, older version of several
packages for that fork -- and those older versions are the ones Dependabot was
flagging. The >= '3.10' fork already carried the fixed versions.

So the alerts were not "we are behind on upgrades"; they were "the lockfile
still describes a Python 3.9 world." Raising the floor removes that fork, and
each package collapses to a single fixed entry. grep "python_full_version < '3.10'" uv.lock now returns zero matches.

This plugin is deployed on a Neon Hub running Python 3.12, so the floor raise
costs nothing in practice. skill-homeassistant made the same move in Aug 2026.

Packages before/after

Package Before (3.9 fork) After
urllib3 2.6.3 2.7.0
pytest 8.4.2 9.1.1
orjson 3.11.5 3.12.0
requests 2.32.5 2.34.2
filelock 3.19.1 3.32.5

The existing [tool.uv] constraint-dependencies = ["setuptools<81"] pin is
kept exactly as-is -- ovos-plugin-manager still imports pkg_resources, so
the setuptools alert stays blocked upstream. setuptools remains at 80.10.2.

Tests

uv run pytest -- 8 passed, 2 warnings in 1.24s.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DXhezj2WuRNrXA4Zhnc6Tf

…alerts

The uv.lock carried a `python_full_version < '3.10'` resolution fork that
pinned vulnerable versions alongside the already-fixed `>= '3.10'` fork.
Dropping the 3.9 floor collapses each package to a single fixed entry.

- urllib3 2.6.3 -> 2.7.0
- pytest 8.4.2 -> 9.1.1
- orjson 3.11.5 -> 3.12.0
- requests 2.32.5 -> 2.34.2
- filelock 3.19.1 -> 3.32.5

Also drops 3.9 from the CI test matrix. The `setuptools<81` constraint is
kept as-is: ovos-plugin-manager still imports pkg_resources.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DXhezj2WuRNrXA4Zhnc6Tf
@mikejgray
mikejgray merged commit 8e3f66b into main Sep 6, 2026
8 checks passed
@mikejgray
mikejgray deleted the fix/python-floor-3.10 branch September 6, 2026 01:02
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