Skip to content

Commit bf72330

Browse files
committed
Set the correct version in the docs
Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent fca9c6c commit bf72330

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

docs/conf.py

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,14 @@
1111
# All configuration values have a default; values that are commented out
1212
# serve to show the default.
1313

14-
import sys, os
14+
from __future__ import unicode_literals
15+
16+
import os
17+
1518
import alabaster
1619

20+
import saml2.version
21+
1722
# If extensions (or modules to document with autodoc) are in another directory,
1823
# add these directories to sys.path here. If the directory is relative to the
1924
# documentation root, use os.path.abspath to make it absolute, like shown here.
@@ -39,15 +44,15 @@
3944
master_doc = 'index'
4045

4146
# General information about the project.
42-
project = u'pysaml2'
43-
copyright = u'2010-2011, Roland Hedberg'
47+
project = 'pysaml2'
48+
copyright = '2010-2011, Roland Hedberg'
4449

4550
# The version info for the project you're documenting, acts as replacement for
4651
# |version| and |release|, also used in various other places throughout the
4752
# built documents.
4853
#
4954
# The short X.Y version.
50-
version = ''
55+
version = str(saml2.version.version)
5156
# The full version, including alpha/beta/rc tags.
5257
release = ''
5358

@@ -180,8 +185,13 @@
180185
# Grouping the document tree into LaTeX files. List of tuples
181186
# (source start file, target name, title, author, documentclass [howto/manual]).
182187
latex_documents = [
183-
('index', 'pysaml2.tex', u'pysaml2 Documentation',
184-
u'Roland Hedberg', 'manual'),
188+
(
189+
'index',
190+
'pysaml2.tex',
191+
'pysaml2 Documentation',
192+
'Roland Hedberg',
193+
'manual',
194+
),
185195
]
186196

187197
# The name of an image file (relative to this directory) to place at the top of

0 commit comments

Comments
 (0)