-
-
Notifications
You must be signed in to change notification settings - Fork 10
Update to pytest >= 7.0.0 and use importlib_metadata to get versions #177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to pytest >= 7.0.0 and use importlib_metadata to get versions #177
Conversation
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."
poetry.lock: Update poetry lock file after updating pytest version requirement and removing pytest-pythonpath.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
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).
poetry.lock: Update poetry lock after adding importlib_metadata conditionally.
35202a7
to
91feca4
Compare
Ouf, that CI is very flaky! :S |
4f2caf0
to
53e40dd
Compare
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".
coverage_conditional_plugin/__init__.py: Use importlib_metadata to derive package versions, instead of relying on pkg_resources (which implicitly dragged in setuptools).
53e40dd
to
078baf9
Compare
setup.cfg: Disable WPS440 and WPS433 for plugin as they are requirements for the conditional import of importlib_metadata.
Codecov Report
@@ Coverage Diff @@
## master #177 +/- ##
=======================================
Coverage 90.90% 90.90%
=======================================
Files 1 1
Lines 11 11
=======================================
Hits 10 10
Misses 1 1 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
pyproject.toml: Update dependencies to their latest versions. Remove setuptools, as coverage-conditional-plugin no longer implicitly requires it (wemake-services/coverage-conditional-plugin#177).
Fixes #174
Fixes #154