Remove uses of pkg_resources

This commit is contained in:
Simon Conseil
2023-07-05 19:13:58 +02:00
parent 8e364692ee
commit b45d018cea
2 changed files with 8 additions and 15 deletions

View File

@@ -2,7 +2,7 @@ import os
import sys
import alabaster
from pkg_resources import get_distribution
from sigal import __version__
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
@@ -39,12 +39,8 @@ copyright = "2012-2020, Simon Conseil"
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
release = get_distribution("sigal").version
# for example take major/minor
version = ".".join(release.split(".")[:2])
release = __version__
version = __version__
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.