diff --git a/docs/source/conf.py b/docs/source/conf.py index dc3dc71..4dbcd08 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -9,6 +9,7 @@ import os import sys from datetime import date + from pkg_resources import get_distribution # -- Path setup -------------------------------------------------------------- @@ -32,7 +33,7 @@ project = "django-auditlog" author = "Jan-Jelle Kester and contributors" copyright = f"2013-{date.today().year}, {author}" -release = get_distribution('django-auditlog').version +release = get_distribution("django-auditlog").version # for example take major/minor version = ".".join(release.split(".")[:2])