Commit a70b2cc
authored
feat: support Python 3.10-3.14, drop 3.8/3.9, update plugin compatibility (#386)
## Summary
Support Python 3.10 through 3.14, drop end-of-life Python 3.8 and 3.9. Update plugin `support_matrix` and test services for newer library versions on 3.12+.
Supersedes #374.
### Core agent fixes
- Fix missing `import importlib.util` that caused `NameError` on Python 3.12+ (root cause of #374 failures)
- Replace deprecated `find_module`/`load_module` with `find_spec`/`module_from_spec` in plugin loader and doc generator
- Remove Python <3.8 `pkg_resources` fallback (dead code)
### Dependency updates
- Python range: `>=3.10, <3.15`
- Unpin `psutil`, `packaging`; loosen `wrapt>=1.14`, `uvloop>=0.17`
- Remove `uwsgi` from dev deps (doesn't build on 3.12+)
- Mark plugins/lint groups as optional; use `>=` ranges so `poetry lock` resolves on all Python versions
- Upgrade pylint pin from `2.13.9` to `>=2.13.9`
- Remove Poetry 1.5.1 pin on Linux (can't read Poetry 2.x lock files)
### Plugin support_matrix updates for 3.12+
All hook points verified against new library versions:
| Plugin | >=3.10 | >=3.12 | >=3.13 | >=3.14 |
|--------|--------|--------|--------|--------|
| bottle | 0.12.23 | 0.12.23 | 0.13 | 0.13 |
| django | 3.2 | 3.2 | 5.1 | 5.1 |
| flask | 2.0 | 2.0 | 2.0 | 3.0 |
| tornado | 6.0, 6.1 | 6.0, 6.1 | 6.0, 6.1 | 6.4 |
| pyramid | 1.10, 2.0 | 2.1 | 2.1 | 2.1 |
| kafka-python | 2.0 | 2.3 | 2.3 | 2.3 |
| pulsar-client | 3.3.0 | 3.9.0 | 3.9.0 | 3.9.0 |
| psycopg | 3.0/3.1 | 3.1 | 3.2 | 3.2 |
| httpx | 0.22/0.23 | 0.22/0.23 | 0.23 | 0.28/0.23 |
| happybase | 1.2.0 | 1.3.0 | 1.3.0 | 1.3.0 |
| urllib3 | 1.25/1.26 | skipped | skipped | skipped |
- **urllib3**: skipped on 3.12+ — `urllib3.request.RequestMethods` was removed in urllib3 2.x, plugin needs code adaptation
- **happybase**: upgraded to 1.3.0 for 3.12+ (thriftpy2 0.6.0 has cp312/cp313 wheels)
### Test service fixes
- Django test services: replace removed `django.conf.urls.url` with `django.urls.path` (compatible with Django 2.0+ through 5.1)
- Fix `testcontainers` DockerCompose API for v4 compatibility (`filepath` -> `context`)
### CI updates
- Test matrix: Python 3.10/3.11/3.12/3.13/3.14 (dropped 3.8/3.9)
- Fix test step: `poetry install --without plugins,lint` (avoids installing incompatible old plugin deps on host)
- Replace unapproved `getsentry/paths-filter` with approved `dorny/paths-filter`
- Exclude `profiling_greenlet` E2E on 3.14 (gevent doesn't have 3.14 wheels yet)
### Docker & docs
- Update docker/Makefile for 3.10-3.14
- Update Container.md with version range and known limitations
- Add CLAUDE.md and Claude Code skills for plugin development
### Locally verified (with span data validation)
- django==5.1 on Python 3.13 — PASSED
- psycopg[binary]==3.2.* on Python 3.13 — PASSED
- happybase==1.3.0 on Python 3.13 — PASSED
- httpx==0.23.* on Python 3.13 — PASSED
- requests==2.26/2.25 on Python 3.13 — PASSED
- Agent loads all 35 plugins on Python 3.10/3.11/3.12/3.13/3.141 parent b91ebc4 commit a70b2cc
File tree
32 files changed
+4388
-2572
lines changed- .claude/skills
- new-plugin
- plugin-test
- .github/workflows
- docker
- docs/en
- contribution
- setup
- faq
- skywalking/plugins
- tests/plugin
- web/sw_django/services
- tools
32 files changed
+4388
-2572
lines changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| |||
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
68 | | - | |
| 70 | + | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
| |||
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
89 | | - | |
| 91 | + | |
90 | 92 | | |
91 | 93 | | |
92 | | - | |
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
| |||
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
141 | | - | |
| 142 | + | |
142 | 143 | | |
143 | 144 | | |
144 | 145 | | |
| |||
171 | 172 | | |
172 | 173 | | |
173 | 174 | | |
174 | | - | |
| 175 | + | |
175 | 176 | | |
176 | 177 | | |
177 | 178 | | |
| |||
205 | 206 | | |
206 | 207 | | |
207 | 208 | | |
208 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
209 | 212 | | |
210 | 213 | | |
211 | 214 | | |
| |||
219 | 222 | | |
220 | 223 | | |
221 | 224 | | |
222 | | - | |
| 225 | + | |
223 | 226 | | |
224 | 227 | | |
225 | 228 | | |
| |||
251 | 254 | | |
252 | 255 | | |
253 | 256 | | |
254 | | - | |
| 257 | + | |
255 | 258 | | |
256 | 259 | | |
257 | 260 | | |
| |||
275 | 278 | | |
276 | 279 | | |
277 | 280 | | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
278 | 286 | | |
279 | 287 | | |
280 | 288 | | |
| |||
0 commit comments