summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/docs/conf.py b/docs/conf.py
index dc0d8fae..1ebc6572 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -18,12 +18,7 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
-# Allow Sphinx to find the setup command that is imported below, as referenced above.
-import os
-import sys
-sys.path.append(os.path.abspath('..'))
-
-import setup as setup_script
+import setuptools_scm
# -- General configuration -----------------------------------------------------
@@ -49,9 +44,9 @@ copyright = '2009-2014, The fellowship of the packaging'
# built documents.
#
# The short X.Y version.
-version = setup_script.setup_params['version']
+version = setuptools_scm.get_version(root='..', relative_to=__file__)
# The full version, including alpha/beta/rc tags.
-release = setup_script.setup_params['version']
+release = version
# List of directories, relative to source directory, that shouldn't be searched
# for source files.