Skip to content

Commit 2177f72

Browse files
committed
Use version info from package.
1 parent e10d3e5 commit 2177f72

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

doc/conf.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# If extensions (or modules to document with autodoc) are in another directory,
1717
# add these directories to sys.path here. If the directory is relative to the
1818
# documentation root, use os.path.abspath to make it absolute, like shown here.
19-
#sys.path.insert(0, os.path.abspath('.'))
19+
sys.path.insert(0, os.path.abspath('..'))
2020

2121
# -- General configuration -----------------------------------------------------
2222

@@ -47,10 +47,11 @@
4747
# |version| and |release|, also used in various other places throughout the
4848
# built documents.
4949
#
50+
import github2
5051
# The short X.Y version.
51-
version = '0.2'
52+
version = ".".join(map(str, github2.VERSION[:2]))
5253
# The full version, including alpha/beta/rc tags.
53-
release = '0.2.0'
54+
release = github2.__version__
5455

5556
# The language for content autogenerated by Sphinx. Refer to documentation
5657
# for a list of supported languages.

0 commit comments

Comments
 (0)