Commit 1c4c4db
Replace deprecated pkg_resources with importlib.metadata
pkg_resources (from setuptools) is deprecated and causes issues on
Python 3.12+ where it may not be available. Replace all usage with
importlib.metadata (stdlib since Python 3.8), with a fallback to the
importlib_metadata backport for older Python versions.
Fixes #1552
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent c7e7e1d commit 1c4c4db
2 files changed
+8
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
8 | 11 | | |
9 | 12 | | |
10 | | - | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
14 | | - | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
300 | | - | |
301 | | - | |
302 | 300 | | |
303 | | - | |
| 301 | + | |
304 | 302 | | |
305 | | - | |
| 303 | + | |
306 | 304 | | |
307 | 305 | | |
308 | 306 | | |
| |||
0 commit comments