Skip to content

Commit 80ee88b

Browse files
committed
Use pkg_resources to get the version in docs
1 parent 6cb790d commit 80ee88b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/conf.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@
1818
# documentation root, use os.path.abspath to make it absolute, like shown here.
1919
#
2020
import os
21+
import pkg_resources
2122
import sys
2223
sys.path.insert(0, os.path.abspath('..'))
2324

25+
__version__ = pkg_resources.get_distribution('chainerrl').version
26+
2427

2528
# -- General configuration ------------------------------------------------
2629

@@ -62,9 +65,9 @@
6265
# built documents.
6366
#
6467
# The short X.Y version.
65-
version = '0.0'
68+
version = __version__
6669
# The full version, including alpha/beta/rc tags.
67-
release = '0.1.0'
70+
release = __version__
6871

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

0 commit comments

Comments
 (0)