Commit 66a1444
authored
Update to pytest >= 7.0.0 and use importlib_metadata to get versions (#177)
* Update pytest dependency to > 7.0.0
pyproject.toml:
Update the pytest dependency to >= 7.0.0, which obsoletes the use of
pytest-pythonpath.
setup.cfg:
Change the python_paths pytest configuration option to pythonpath, as
that is what is used with pytest >= 7.0.0."
* Update poetry lock file
poetry.lock:
Update poetry lock file after updating pytest version requirement and
removing pytest-pythonpath.
* Add importlib_metadata for python < 3.10
pyproject.toml:
Using importlib_metadata it is possible to derive versions of packages.
To make use of it with python < 3.10 the package importlib_metadata has
to be added (conditionally).
* Update poetry lock after adding importlib_metadata
poetry.lock:
Update poetry lock after adding importlib_metadata conditionally.
* Do not warn about unused ignores with mypy
setup.cfg:
Disable the warning for unused ignores in mypy as there seems to be an
issue between versions of mypy about what is considered an "unused
ignore".
* Use importlib_metadata to derive package versions
coverage_conditional_plugin/__init__.py:
Use importlib_metadata to derive package versions, instead of relying on
pkg_resources (which implicitly dragged in setuptools).
* Disable WPS440 and WPS433 for plugin
setup.cfg:
Disable WPS440 and WPS433 for plugin as they are requirements for the
conditional import of importlib_metadata.1 parent 98945af commit 66a1444
File tree
4 files changed
+31
-50
lines changed- coverage_conditional_plugin
4 files changed
+31
-50
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
| |||
129 | 132 | | |
130 | 133 | | |
131 | 134 | | |
132 | | - | |
133 | | - | |
134 | | - | |
| 135 | + | |
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | | - | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | | - | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
| |||
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
56 | | - | |
| 59 | + | |
57 | 60 | | |
58 | 61 | | |
59 | 62 | | |
| |||
91 | 94 | | |
92 | 95 | | |
93 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
0 commit comments