From 36f5e9bd332533422bf52348ebb78ed4d51bb3bb Mon Sep 17 00:00:00 2001
From: nadevko <me+oss@nadevko.cc>
Date: Sat, 8 Aug 2026 20:33:08 +0300
Subject: [PATCH] fix docs build with setuptools>=82

pkg_resources was removed in setuptools 82.0.0, which broke the Sphinx
doc build:

  ModuleNotFoundError: No module named 'pkg_resources'

docs/conf.py used pkg_resources.get_distribution() to determine the
package version at build time. Replace it with importlib.metadata, which
has been part of the standard library since Python 3.8 and needs no
extra dependency
---
 docs/conf.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/conf.py b/docs/conf.py
index 7af1c42..a894de7 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -48,7 +48,7 @@ source_suffix = '.rst'
 # The master toctree document.
 master_doc = 'index'
 
-from pkg_resources import get_distribution
+from importlib.metadata import version as get_distribution_version
 
 # General information about the project.
 project = 'ebuildtester'
@@ -60,7 +60,7 @@ author = 'Nicolas Bock'
 # built documents.
 #
 # The full version, including alpha/beta/rc tags.
-release = get_distribution("ebuildtester").version
+release = get_distribution_version("ebuildtester")
 # The short X.Y version.
 version = release
 
-- 
2.54.0

