Replace removed pkg_resources with stdlib

This commit is contained in:
Hugo van Kemenade 2026-02-08 23:59:13 +02:00 committed by Aleksi Häkli
parent b441ccd5fc
commit 6c8feada83

View file

@ -7,7 +7,7 @@ More information on the configuration options is available at:
""" """
# import sphinx_rtd_theme # import sphinx_rtd_theme
from pkg_resources import get_distribution from importlib.metadata import version as get_version
import django import django
from django.conf import settings from django.conf import settings
@ -43,7 +43,7 @@ copyright = "2016, Jazzband"
author = "Jazzband" author = "Jazzband"
# The full version, including alpha/beta/rc tags. # The full version, including alpha/beta/rc tags.
release = get_distribution("django-axes").version release = get_version("django-axes")
# The short X.Y version. # The short X.Y version.
version = ".".join(release.split(".")[:2]) version = ".".join(release.split(".")[:2])