Commit 1bdfa48
authored
Bump Python requirement to 3.8 and replace usage of pkg_resources (#48)
Before this patch, LNT would use the pkg_resources package to extract
metadata about the current installation. However, that package has been
deprecated in recent Python versions, which produces a warning. Fixing
this either requires switching to the recommended alternative, or
pinning the setuptools dependency to a version < 81.
This patch switches to the recommended alternative (importlib.metadata)
and bumps the Python requirement to 3.8, which is when importlib.metadata
was introduced.
This version bump is fairly gentle and makes us match the Python
requirement used by the rest of LLVM (which is IMO overdue for a
bump as well), so I think it's reasonable.1 parent ab46fce commit 1bdfa48
2 files changed
+12
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
469 | | - | |
| 469 | + | |
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
483 | 480 | | |
484 | 481 | | |
485 | 482 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
0 commit comments