From f1b2fba31466421e92cb8caaac23abd0a8dfa897 Mon Sep 17 00:00:00 2001 From: Brett Date: Tue, 19 Sep 2023 13:49:28 -0400 Subject: [PATCH] use importlib.metadata instead of pkg_resources in docs conf --- docs/source/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index f12d9f57..39aff956 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -6,11 +6,11 @@ # http://www.sphinx-doc.org/en/master/config import datetime +import importlib.metadata import sys from pathlib import Path import tomli -from pkg_resources import get_distribution # -- Project information ----------------------------------------------------- try: @@ -33,7 +33,7 @@ version = readme.readline().split(" ")[-1] # The full version, including alpha/beta/rc tags -release = get_distribution(configuration["name"]).version +release = importlib.metadata.version(configuration["name"]) intersphinx_mapping["asdf"] = ("https://asdf.readthedocs.io/en/latest/", None) # noqa: F405