Skip to content

Commit db9e268

Browse files
chrisguidryclaude
andauthored
Bump pydocket>=0.19.0, drop fakeredis pin (#3822)
pydocket 0.19.0 fixes the fakeredis 2.35.0 FakeConnection rename internally, so we no longer need to carry the fakeredis ceiling ourselves. Removes the direct fakeredis[lua]<2.35.0 dependency from the tasks extra entirely — it's just a transitive of pydocket now. 🤖 Generated with Claude Code Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent faf5f86 commit db9e268

4 files changed

Lines changed: 11 additions & 16 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,7 @@ azure = ["azure-identity>=1.16.0", "PyJWT>=2.12.0"]
5959
code-mode = ["pydantic-monty==0.0.9"]
6060
gemini = ["google-genai>=1.18.0"]
6161
openai = ["openai>=1.102.0"]
62-
# fakeredis 2.35.0 renamed FakeConnection, which breaks pydocket's memory://
63-
# backend. Remove the ceiling once a fixed pydocket release ships.
64-
# See https://github.com/chrisguidry/docket/pull/382
65-
tasks = ["pydocket>=0.18.0", "fakeredis[lua]<2.35.0"]
62+
tasks = ["pydocket>=0.19.0"]
6663

6764
[dependency-groups]
6865
dev = [

src/fastmcp/server/dependencies.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,11 +422,11 @@ def _get_sync_redis(url: str) -> Any:
422422
_DOCKET_AVAILABLE: bool | None = None
423423

424424

425-
_MIN_DOCKET_VERSION = Version("0.18.0")
425+
_MIN_DOCKET_VERSION = Version("0.19.0")
426426

427427

428428
def is_docket_available() -> bool:
429-
"""Check if a compatible pydocket (>= 0.18.0) is installed and importable.
429+
"""Check if a compatible pydocket (>= 0.19.0) is installed and importable.
430430
431431
Three things have to be true for fastmcp's task features to work:
432432
1. pydocket distribution metadata is discoverable

tests/server/test_dependencies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ def test_is_docket_available(self):
758758
assert is_docket_available() is True
759759

760760
def test_is_docket_available_false_when_pydocket_too_old(self, monkeypatch):
761-
"""``is_docket_available()`` must treat pre-0.18.0 pydocket as unavailable.
761+
"""``is_docket_available()`` must treat pre-0.19.0 pydocket as unavailable.
762762
763763
Older pydocket versions (e.g. 0.16.x, pulled in transitively by
764764
packages like prefect) import cleanly but lack the APIs fastmcp

uv.lock

Lines changed: 7 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)