Skip to content

Upgrade Pillow, dnspython, filelock, setuptools and virtualenv past their advisories - #2861

Merged
Flix6x merged 2 commits into
mainfrom
chore/dependabot-pillow-dnspython-filelock
Nov 11, 2026
Merged

Flix6x merged 2 commits into
mainfrom
chore/dependabot-pillow-dnspython-filelock

Conversation

@Flix6x

@Flix6x Flix6x commented Nov 11, 2026

Copy link
Copy Markdown
Member

Description

Addresses the open Dependabot alerts on uv.lock, except the one for black (a development tool; upgrading it changes the formatting CI enforces, so it deserves its own PR).

  • Raise the floors of the direct dependencies Pillow (>=13.0.0, 41 alerts, 5 critical) and setuptools (>=84.1.0, 1 low alert)
  • Re-lock those two, plus dnspython 2.9.2 (via email-validator, 1 high alert), filelock 4.2.10 (via tldextract, 14 alerts) and virtualenv 21.15.6 (development only, 15 alerts); no other package moves in uv.lock
  • Added changelog item in documentation/changelog.rst

FlexMeasures does not decode untrusted images itself (Pillow comes in for matplotlib and the optional data model visualisation), so the practical exposure was low; the main gain is that the Docker image and uv sync installs no longer carry these advisories.

Backport to 1.1.x (for v1.1.1)

Pillow 13.0.0, dnspython 2.9.0 and filelock 4.2.1 require Python 3.11+, while 1.1.x still supports 3.10.
So on 1.1.x, re-lock with uv lock -P pillow -P dnspython -P filelock -P setuptools -P virtualenv (which forks the resolution: 3.11 and 3.12, including the Docker image, get the fixed versions, while 3.10 keeps the older ones), and raise the Pillow floor for Python 3.11+ only.

How to test

I smoke-tested Pillow 13.0.0, dnspython 2.9.2 and filelock 4.2.10 against FlexMeasures: a matplotlib PNG round trip through Pillow, email validation, and tldextract parsing all work, and the user service and user API tests pass (24 passed). CI runs the rest.

🤖 Generated with Claude Code

…heir advisories

Raise the floors of the direct dependencies Pillow (to 13.0.0) and setuptools (to 84.1.0),
and re-lock those two plus dnspython (2.9.2), filelock (4.2.10) and virtualenv (21.15.6), which arrive transitively.
No other package moves in uv.lock.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: F.N. Claessen <felix@seita.nl>
@Flix6x Flix6x added this to the 1.1.1 milestone Nov 11, 2026
@Flix6x Flix6x self-assigned this Nov 11, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: F.N. Claessen <felix@seita.nl>
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedpillow@​12.3.0 ⏵ 13.0.086 +1100 +7510010070
Updatedsetuptools@​84.0.0 ⏵ 84.2.173 +1100 +110010070

View full report

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 flexmeasures | 🛠️ Build #35810888 | 📁 Comparing c6ba43f against latest (9152e35)

  🔍 Preview build  

2 files changed
± changelog.html
± api/v3_0.html

@Flix6x
Flix6x merged commit 4fbae1c into main Nov 11, 2026
11 checks passed
@Flix6x
Flix6x deleted the chore/dependabot-pillow-dnspython-filelock branch November 11, 2026 11:27
Flix6x added a commit that referenced this pull request Nov 11, 2026
The v1.1.1 patch release backports #2855, #2861, #2838, #2829, #2851, #2845, #2859, #2850 and #2860 to the 1.1.x branch.
Move their changelog bullets out of the v1.2.0 section into a new v1.1.1 section, worded and ordered as on 1.1.x,
so the same fixes are not listed as unreleased once 1.1.1 ships.
The bullet for #2861 takes the 1.1.x wording, which adds that Python 3.10 keeps the earlier Pillow, dnspython and filelock.
The API change log needs no split: v3.0-35 holds only #2859, which ships in v1.1.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Flix6x added a commit that referenced this pull request Nov 11, 2026
…d virtualenv past their advisories (#2861)

Adapted rather than cherry-picked from commit 4fbae1c720eb8b09b3a4f3e07f71b1da3dd3e2a9, as 1.1.x still supports Python 3.10,
while Pillow 13.0.0, dnspython 2.9.0 and filelock 4.2.1 need Python 3.11 or newer:
the Pillow floor of 13.0.0 applies to Python 3.11 and newer only, and uv.lock is re-locked on this branch for the same five packages,
so Python 3.11 and 3.12 (and the Docker image) get the fixed versions, while Python 3.10 keeps Pillow 12.3.0, dnspython 2.8.0 and filelock 4.1.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Flix6x added a commit that referenced this pull request Nov 11, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant