From ecdd7a74c442b7d1c4adb77b1bfedf08bd7ec657 Mon Sep 17 00:00:00 2001 From: David Vo Date: Mon, 21 Sep 2026 20:33:30 +1000 Subject: [PATCH] docs: Replace pkg_resources with importlib.metadata Read the Docs builds have been broken since cxxheaderparser 1.7.1. --- docs/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 0703390..a55eca7 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -6,8 +6,8 @@ # -- Path setup -------------------------------------------------------------- +import importlib.metadata import os -import pkg_resources # -- Project information ----------------------------------------------------- @@ -16,7 +16,7 @@ author = "Dustin Spicuzza" # The full version, including alpha/beta/rc tags -release = pkg_resources.get_distribution("cxxheaderparser").version +release = importlib.metadata.version("cxxheaderparser") # -- General configuration ---------------------------------------------------