We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c89da2 commit ca3ea70Copy full SHA for ca3ea70
picard/util/versions.py
@@ -53,11 +53,21 @@
53
'discid-version': "Discid",
54
'astrcmp': "astrcmp",
55
'ssl-version': "SSL",
56
+ 'pygit2-version': "pygit2",
57
}
58
59
60
def _load_versions():
61
global _versions
62
+
63
+ # Get pygit2 version if available
64
+ try:
65
+ import pygit2
66
67
+ pygit2_version = pygit2.__version__
68
+ except ImportError:
69
+ pygit2_version = None
70
71
_versions = OrderedDict(
72
(
73
('version', PICARD_FANCY_VERSION_STR),
@@ -68,6 +78,7 @@ def _load_versions():
78
('discid-version', discid_version),
79
('astrcmp', astrcmp_implementation),
80
('ssl-version', QSslSocket.sslLibraryVersionString()),
81
+ ('pygit2-version', pygit2_version),
82
)
83
84
0 commit comments