econchick / interrogate

Explain yourself! Interrogate a codebase for docstring coverage.
https://interrogate.readthedocs.io
MIT License
562 stars 46 forks source link

New release? #164

Closed woodruffw closed 3 months ago

woodruffw commented 7 months ago

Hi there! First of all, thank you for creating and maintaining interrogate! We use it on pip-audit to ensure that all of our public APIs are documented, and it's a delight to use.

On recent versions of Python (3.12+), we're seeing a ModuleNotFoundError due to interrogate's use of pkg_resources, which was removed from the standard Python distribution:

Traceback (most recent call last):
  File "/Users/william/devel/pip-audit/env/bin/interrogate", line 5, in <module>
    from interrogate.cli import main
  File "/Users/william/devel/pip-audit/env/lib/python3.12/site-packages/interrogate/cli.py", line 11, in <module>
    from interrogate import badge_gen
  File "/Users/william/devel/pip-audit/env/lib/python3.12/site-packages/interrogate/badge_gen.py", line 11, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

It looks like this was patched with https://github.com/econchick/interrogate/commit/3aa94a6a9d6dca0a015d97ef389feb788cb466dd, but that that commit hasn't landed in a new release quite yet.

So: would it be possible to get a new release cut for interrogate?

woodruffw commented 5 months ago

Gentle ping on this 🙂

(For others experiencing this: a workaround that may work for you is to also install setuptools, since setuptools provides pkg_resources.)

s-weigand commented 3 months ago

@econchick Any updates on this? 😅

econchick commented 3 months ago

finally released 1.6.0 🙈 😅 thanks for your patience!!

woodruffw commented 3 months ago

Thank you as well!