diff options
Diffstat (limited to 'docs/conf.py')
-rw-r--r-- | docs/conf.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/docs/conf.py b/docs/conf.py index 07d6ad41..72c1ce43 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -18,11 +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 sys, os -sys.path.append(os.path.abspath('..')) - -import setup as setup_script +import setuptools_scm # -- General configuration ----------------------------------------------------- @@ -51,9 +47,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 # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. |