mirror of
https://github.com/jazzband/django-auditlog.git
synced 2026-03-16 22:20:26 +00:00
Replace importlib with pkg_resources with.
Readthedoc uses Python3.7
Revert a30c8bbfc0
This commit is contained in:
parent
32694b1324
commit
340a01d348
1 changed files with 2 additions and 2 deletions
|
|
@ -9,7 +9,7 @@
|
|||
import os
|
||||
import sys
|
||||
from datetime import date
|
||||
from importlib.metadata import version
|
||||
from pkg_resources import get_distribution
|
||||
|
||||
# -- Path setup --------------------------------------------------------------
|
||||
|
||||
|
|
@ -32,7 +32,7 @@ project = "django-auditlog"
|
|||
author = "Jan-Jelle Kester and contributors"
|
||||
copyright = f"2013-{date.today().year}, {author}"
|
||||
|
||||
release = version("django-auditlog")
|
||||
release = get_distribution('django-auditlog').version
|
||||
# for example take major/minor
|
||||
version = ".".join(release.split(".")[:2])
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue