jaraco / pytest-checkdocs

MIT License
6 stars 5 forks source link

error with importlib_metadata 0.21 #1

Closed jaraco closed 5 years ago

jaraco commented 5 years ago

Following the release of importlib_metadata 0.21 yesterday, this library now fails with this error:

_______________________________________________________________ test session ________________________________________________________________
.tox/python/lib/python3.7/site-packages/pluggy/hooks.py:286: in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
.tox/python/lib/python3.7/site-packages/pluggy/manager.py:92: in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
.tox/python/lib/python3.7/site-packages/pluggy/manager.py:86: in <lambda>
    firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
.tox/python/lib/python3.7/site-packages/_pytest/runner.py:117: in pytest_runtest_call
    item.runtest()
.tox/python/lib/python3.7/site-packages/pytest_checkdocs.py:19: in runtest
    self.rst2html(self.get_long_description())
.tox/python/lib/python3.7/site-packages/pytest_checkdocs.py:51: in get_long_description
    desc = self._find_local_distribution().metadata['Description']
.tox/python/lib/python3.7/site-packages/pytest_checkdocs.py:46: in _find_local_distribution
    dist, = dists
.tox/python/lib/python3.7/site-packages/pytest_checkdocs.py:44: in <genexpr>
    for resolver in resolvers
E   TypeError: find_distributions() got an unexpected keyword argument 'path'