From 1b59bf1d4172036f9b17e8b785f14f95c9dd2e20 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Wed, 3 Jul 2024 17:34:54 -0400 Subject: [PATCH] docs: do not require setuptools for docs Signed-off-by: Henry Schreiner --- docs/conf.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index df33c772..3032a0ce 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -6,16 +6,14 @@ from __future__ import annotations -# Warning: do not change the path here. To use autodoc, you need to install the -# package first. -from pkg_resources import get_distribution +import importlib.metadata # -- Project information ----------------------------------------------------- project = "Hist" copyright = "2020, Henry Schreiner" author = "Henry Schreiner and Nino Lau" -version = get_distribution("hist").version +version = importlib.metadata.version("hist") # -- General configuration ---------------------------------------------------