Commit fc9082c
Verify Starlette 1.0.0 compatibility (#846)
* Use Job.id property instead of removed get_id() method
rq v2.7 refactored Job.id from `id = property(get_id, set_id)` to a
`@property` decorator, removing get_id() as a callable method.
Job.id has been available since rq v0.5.0 so this is backwards compatible.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Support FastMCP 3.x while maintaining 2.x backwards compatibility
FastMCP 3.0 replaced private _call_tool_mcp()/_list_tools_mcp() with
public call_tool()/list_tools() methods, and changed get_tool() to
return None instead of raising when a tool is not found.
- Update instrumentation to handle get_tool() returning None
- Update tests with compat helpers that use the correct API based on
the installed fastmcp version
- Remove the fastmcp<3 version pin from tox.ini (no longer needed)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Add explicit Starlette 1.0 test matrix and update classifiers
Add dedicated tox environments to test against both Starlette 0.36.x
and 1.0.x, verifying compatibility of Scout's ASGI middleware with
the Starlette 1.0 stable release. Also update setup.py classifiers
to reflect tested Django 5.x and Python 3.13/3.14 support.
Closes #836
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix starlette tox envs for isolated testing
- Remove starlette 0.36 envs (not relevant to 1.0 compat verification)
- Run only starlette tests in starlette envs (avoids collection errors
from Django tests when Django is not installed)
- Add asgiref dep (needed by test, normally a Django transitive dep)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 4591d64 commit fc9082c
2 files changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
76 | 79 | | |
77 | 80 | | |
78 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
54 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
55 | 58 | | |
56 | 59 | | |
57 | 60 | | |
| |||
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
0 commit comments