Repository navigation
Commit 9d7f1d5
committed
Require Lingua 4.16 or greater
The Lingua extractor plugin was repaired to work with the Lingua 4 API
in 1.2.0, however the test suite continued to pin Lingua below 4, a cap
added while that defect was outstanding. As the plugin is skipped when
Lingua is not importable, the stale cap went unnoticed: Lingua 3 imports
pkg_resources at startup, which is not present in current setuptools
releases, so the pinned version could not be imported and the plugin was
covered by no tests at all.
Lingua 4.16 resolves entry points using importlib.metadata, falling back
to pkg_resources only when that is unavailable, so no deprecated
pkg_resources usage remains. Raising the pin to 4.16 restores coverage
of the plugin, which passes against the current release unmodified.
Fixes: #393
Change-Id: Ia88fc2ad137e96709bc4be24ebd756c0bea1cc1d1 parent 21c11f3 commit 9d7f1d5
3 files changed
Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
0 commit comments