[python-dtcwt] 56/497: fix use of setup.cfg to provide some sphinx info
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Tue Jul 21 18:05:49 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/sid
in repository python-dtcwt.
commit 8d4df2246c219f9fe56a77bbeb59141bc9c15a69
Author: Rich Wareham <rjw57 at cam.ac.uk>
Date: Thu Aug 8 00:26:23 2013 +0100
fix use of setup.cfg to provide some sphinx info
---
docs/conf.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/docs/conf.py b/docs/conf.py
index e3c898a..c859875 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -19,6 +19,11 @@ from six.moves import configparser
setup_cfg = configparser.ConfigParser()
setup_cfg.read(os.path.join(os.path.dirname(__file__), '..', 'setup.cfg'))
+# Load some data from setup.cfg
+project = setup_cfg.get('metadata', 'name')
+version = setup_cfg.get('metadata', 'version')
+release = setup_cfg.get('metadata', '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
# documentation root, use os.path.abspath to make it absolute, like shown here.
@@ -47,7 +52,6 @@ master_doc = 'index'
# General information about the project.
copyright = u'2013, Rich Wareham, Nick Kingsbury, Cian Shaffrey'
-project = 'dtcwt'
# Project version and release are set in setup.py
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-dtcwt.git
More information about the debian-science-commits
mailing list