From 6c8feada8377cf20a97fab0c5ff3925c620374f4 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Sun, 8 Feb 2026 23:59:13 +0200 Subject: [PATCH] Replace removed pkg_resources with stdlib --- docs/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 5df65ec..c436fd0 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -7,7 +7,7 @@ More information on the configuration options is available at: """ # import sphinx_rtd_theme -from pkg_resources import get_distribution +from importlib.metadata import version as get_version import django from django.conf import settings @@ -43,7 +43,7 @@ copyright = "2016, Jazzband" author = "Jazzband" # The full version, including alpha/beta/rc tags. -release = get_distribution("django-axes").version +release = get_version("django-axes") # The short X.Y version. version = ".".join(release.split(".")[:2])