mirror of
https://github.com/jazzband/django-axes.git
synced 2026-03-16 14:20:23 +00:00
Replace removed pkg_resources with stdlib
This commit is contained in:
parent
b441ccd5fc
commit
6c8feada83
1 changed files with 2 additions and 2 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Reference in a new issue