From 735dd9f4e854c807549e69c59884a085c54f79ab Mon Sep 17 00:00:00 2001 From: Benjamin Hackl Date: Tue, 4 Aug 2026 10:19:23 +0200 Subject: [PATCH] Fix Read the Docs build with modern setuptools --- docs/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 02447f8a..d5c9a3fe 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -16,16 +16,16 @@ # sys.path.insert(0, os.path.abspath("..")) +from importlib.metadata import version as distribution_version from pathlib import Path # -- Project information ----------------------------------------------------- -from pkg_resources import get_distribution project = "ManimPango" copyright = "2021, The Manim Community Dev Team" author = "The Manim Community Dev Team" -release = get_distribution("ManimPango").version +release = distribution_version("ManimPango") version = ".".join(release.split(".")[:2])