diff options
author | Joffrey F <joffrey@docker.com> | 2018-12-07 16:57:40 -0800 |
---|---|---|
committer | Joffrey F <joffrey@docker.com> | 2018-12-07 16:57:40 -0800 |
commit | b297b837df511178a69f29a9f8461aee0193e278 (patch) | |
tree | aa9522efee6bf414d185c66c96d0f1e431c3af8b | |
parent | e15db4cb20b22c97e5df5f4fc2fdb54c18e785e9 (diff) | |
download | docker-py-2185-placement-prefs.tar.gz |
Dynamically retrieve version information for generated docs2185-placement-prefs
Signed-off-by: Joffrey F <joffrey@docker.com>
-rw-r--r-- | docs/conf.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/conf.py b/docs/conf.py index 3e17678..f46d1f7 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -69,10 +69,12 @@ author = u'Docker Inc' # |version| and |release|, also used in various other places throughout the # built documents. # -# The short X.Y version. -version = u'2.0' +with open('../docker/version.py', 'r') as vfile: + exec(vfile.read()) # The full version, including alpha/beta/rc tags. -release = u'2.0' +release = version +# The short X.Y version. +version = '{}.{}'.format(version_info[0], version_info[1]) # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. |