File tree 2 files changed +14
-6
lines changed 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 69
69
copyright = '2015-2018, Bertini Team'
70
70
author = 'Bertini Team'
71
71
72
+
72
73
# The version info for the project you're documenting, acts as replacement for
73
74
# |version| and |release|, also used in various other places throughout the
74
75
# built documents.
75
- #
76
- # The short X.Y version.
77
- version = '1.0'
78
- # The full version, including alpha/beta/rc tags.
79
- release = '1.0a1'
76
+ try :
77
+ import git #package gitpython
78
+ repo = git .Repo (search_parent_directories = True )
79
+ last_commit = str (repo .head .commit )
80
+ version = last_commit [:7 ]
81
+ release = last_commit # full version
82
+ except :
83
+ last_commit = 'not_from_git'
84
+ version = last_commit # The short X.Y version.
85
+ release = version # The full version, including alpha/beta/rc tags.
86
+
87
+
88
+
80
89
81
90
# The language for content autogenerated by Sphinx. Refer to documentation
82
91
# for a list of supported languages.
Original file line number Diff line number Diff line change 4
4
{
5
5
"path" : " ." ,
6
6
"file_exclude_patterns" : [" serialization_test*" ,
7
- " Makefile" ,
8
7
" Makefile.in" ,
9
8
" *.la" ,
10
9
" libtool" ,
You can’t perform that action at this time.
0 commit comments