From 460bb9fa24b4b26a4fd2483ea126c723381def08 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Thu, 11 Aug 2022 23:58:54 +0200 Subject: [PATCH] fix GitPython compatibility, fix #430 --- CHANGELOG.md | 4 ++++ pdoc/extract.py | 2 ++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ebdd0c83..204c0271 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ # Unreleased: pdoc next + - Add compatibility with Python 3.11 + ([#394](https://github.com/mitmproxy/pdoc/issues/394), [@mhils](https://github.com/mhils)) - Make sure that docstrings are picked up for functions that have been turned into non-function objects by decorators. ([#416](https://github.com/mitmproxy/pdoc/issues/416), [@jeamland](https://github.com/jeamland)) @@ -13,6 +15,8 @@ ([#428](https://github.com/mitmproxy/pdoc/issues/428), [@mhils](https://github.com/mhils)) - pdoc now terminates if a module cannot be imported instead of raising a warning. ([#407](https://github.com/mitmproxy/pdoc/issues/407), [@mhils](https://github.com/mhils)) + - Fix compatibility with GitPython. + ([#430](https://github.com/mitmproxy/pdoc/issues/430), [@mhils](https://github.com/mhils)) # 2022-06-08: pdoc 12.0.2 diff --git a/pdoc/extract.py b/pdoc/extract.py index c3588ac4..b047870b 100644 --- a/pdoc/extract.py +++ b/pdoc/extract.py @@ -175,6 +175,8 @@ def __init__(self, *args, **kwargs): # pragma: no cover "ld", shutil.which("gcc") or shutil.which("cc"), shutil.which("objdump"), + # https://github.com/mitmproxy/pdoc/issues/430: GitPython invokes git commands, which is also fine. + "git", ) ) if not command_allowed: