Remove uses of pkg_resources
This commit is contained in:
10
docs/conf.py
10
docs/conf.py
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user