diff --git a/scripts/generate_python_docs.py b/scripts/generate_python_docs.py index af9890d0dfc..8d9126d9e87 100644 --- a/scripts/generate_python_docs.py +++ b/scripts/generate_python_docs.py @@ -6,12 +6,7 @@ from sphinx.builders.html import StandaloneHTMLBuilder from sphinx.writers.html5 import HTML5Translator from docutils.nodes import SkipChildren - -import pandas -print(pandas) -print(pandas.DataFrame) - -import duckdb +from importlib.metadata import version FRONTMATTER = """\ @@ -55,7 +50,7 @@ def post_process(filename:Path): def main(): - print('generating against duckdb version', duckdb.__version__) + print('generating against duckdb version', version('duckdb'), 'and pandas version', version('pandas')) destdir = join(dirname(__file__), "../docs/api/python/reference/") app = Sphinx(