X-Git-Url: https://scm.cri.mines-paristech.fr/git/linpy.git/blobdiff_plain/716fef940d54c340234d568b292b1c03cdefe049..d1c9ff71cf2d59fa6c56665d1569d16d3f1428a6:/doc/conf.py?ds=inline diff --git a/doc/conf.py b/doc/conf.py index b06c693..da25c6c 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -52,9 +52,11 @@ copyright = '2014, MINES ParisTech' # built documents. # # The short X.Y version. -version = '1.0' +with open('../linpy/_version.py') as file: + exec(file.read()) +version = __version__ # The full version, including alpha/beta/rc tags. -release = '1.0a' +release = __version__ # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.