@@ -45,7 +45,7 @@ def _get_sys_info() -> dict[str, JSONSerializable]:
45
45
language_code , encoding = locale .getlocale ()
46
46
return {
47
47
"commit" : _get_commit_hash (),
48
- "python" : "." . join ([ str ( i ) for i in sys . version_info ] ),
48
+ "python" : platform . python_version ( ),
49
49
"python-bits" : struct .calcsize ("P" ) * 8 ,
50
50
"OS" : uname_result .system ,
51
51
"OS-release" : uname_result .release ,
@@ -70,33 +70,25 @@ def _get_dependency_info() -> dict[str, JSONSerializable]:
70
70
"pytz" ,
71
71
"dateutil" ,
72
72
# install / build,
73
- "setuptools" ,
74
73
"pip" ,
75
74
"Cython" ,
76
- # test
77
- "pytest" ,
78
- "hypothesis" ,
79
75
# docs
80
76
"sphinx" ,
81
- # Other, need a min version
82
- "blosc" ,
83
- "feather" ,
84
- "xlsxwriter" ,
85
- "lxml.etree" ,
86
- "html5lib" ,
87
- "pymysql" ,
88
- "psycopg2" ,
89
- "jinja2" ,
90
77
# Other, not imported.
91
78
"IPython" ,
92
- "pandas_datareader" ,
93
79
]
80
+ # Optional dependencies
94
81
deps .extend (list (VERSIONS ))
95
82
96
83
result : dict [str , JSONSerializable ] = {}
97
84
for modname in deps :
98
- mod = import_optional_dependency (modname , errors = "ignore" )
99
- result [modname ] = get_version (mod ) if mod else None
85
+ try :
86
+ mod = import_optional_dependency (modname , errors = "ignore" )
87
+ except Exception :
88
+ # Dependency conflicts may cause a non ImportError
89
+ result [modname ] = "N/A"
90
+ else :
91
+ result [modname ] = get_version (mod ) if mod else None
100
92
return result
101
93
102
94
0 commit comments