]> CRI, Mines Paris - PSL - linpy.git/blobdiff - doc/conf.py
Update reference examples to match the tutorial
[linpy.git] / doc / conf.py
index b06c693672868e73dd9310e37b448b4e881fd4fd..da25c6cdeac7283e1bd7a129ba817e1ee24145dc 100644 (file)
@@ -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.