diff options
| author | Michael Merickel <michael@merickel.org> | 2013-08-04 05:20:26 -0500 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2013-08-10 01:03:50 -0500 |
| commit | 95d5b72927484fa3882c5c47bf79d591a5af50a5 (patch) | |
| tree | c81acacdc4ee2fdce1db5f26f923cefef772580f /docs/conf.py | |
| parent | b210ce350a3856166376f63a32725cc1516ba294 (diff) | |
| download | pyramid-95d5b72927484fa3882c5c47bf79d591a5af50a5.tar.gz pyramid-95d5b72927484fa3882c5c47bf79d591a5af50a5.tar.bz2 pyramid-95d5b72927484fa3882c5c47bf79d591a5af50a5.zip | |
update sphinx to use the version from the package automatically
Diffstat (limited to 'docs/conf.py')
| -rw-r--r-- | docs/conf.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/conf.py b/docs/conf.py index ff5f325d8..e50c0c60a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -19,6 +19,8 @@ import warnings warnings.simplefilter('ignore', DeprecationWarning) +import pkg_resources + # skip raw nodes from sphinx.writers.text import TextTranslator from sphinx.writers.latex import LaTeXTranslator @@ -93,7 +95,7 @@ copyright = '2008-%s, Agendaless Consulting' % thisyear # other places throughout the built documents. # # The short X.Y version. -version = '1.5dev' +version = pkg_resources.get_distribution('pyramid').version # The full version, including alpha/beta/rc tags. release = version |
