Skip to content
Snippets Groups Projects
Commit 6c3ca9b1 authored by Christoph Groth's avatar Christoph Groth
Browse files

correct determination of short version

parent 03e0e381
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -52,12 +52,8 @@ copyright = u'2011-2015, C. W. Groth (CEA), M. Wimmer, A. R. Akhmerov, X. Wainta ...@@ -52,12 +52,8 @@ copyright = u'2011-2015, C. W. Groth (CEA), M. Wimmer, A. R. Akhmerov, X. Wainta
# The full version, including alpha/beta/rc tags. # The full version, including alpha/beta/rc tags.
release = kwant.__version__ release = kwant.__version__
for i, s in enumerate(release):
if s not in '0123456790.':
break
# The short X.Y version. # The short X.Y version.
version = release[:i] version = release[:len(release) - len(release.lstrip('012345679.'))].rstrip('.')
# The language for content autogenerated by Sphinx. Refer to documentation # The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages. # for a list of supported languages.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment