Commit ced832c
committed
Remove unnecessary entry_points wrapper for Python 3.10+
Since the project requires Python 3.10+, we no longer need a custom
wrapper around importlib.metadata.entry_points(). In Python 3.10+,
entry_points() natively supports the group= and name= parameters and
returns EntryPoints directly.
Changes:
- Remove the entry_points() wrapper function from _entrypoints.py
- Directly import and re-export entry_points from importlib.metadata
- Update _discover.py to import EntryPoint type directly
- Simplify type annotations by removing im.EntryPoint indirection
All tests pass (296 passed, 5 skipped, 1 xfailed)1 parent 97e5f11 commit ced832c
File tree
2 files changed
+5
-15
lines changed- vcs-versioning/src/vcs_versioning
2 files changed
+5
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | | - | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
54 | | - | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | | - | |
17 | | - | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | 21 | | |
33 | 22 | | |
34 | 23 | | |
| |||
0 commit comments