mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 12:21:35 +00:00
Print versions for more libraries
This commit is contained in:
@@ -6,11 +6,11 @@ import configparser
|
|||||||
import csv
|
import csv
|
||||||
import datetime
|
import datetime
|
||||||
from email import message_from_string
|
from email import message_from_string
|
||||||
|
from importlib.metadata import version as lib_version
|
||||||
import io
|
import io
|
||||||
import json
|
import json
|
||||||
import mimetypes
|
import mimetypes
|
||||||
import os
|
import os
|
||||||
import pkg_resources
|
|
||||||
import platform
|
import platform
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import random
|
import random
|
||||||
@@ -763,8 +763,7 @@ def doGAMVersion(checkForArgs=True):
|
|||||||
return
|
return
|
||||||
pyversion = platform.python_version()
|
pyversion = platform.python_version()
|
||||||
cpu_bits = struct.calcsize('P') * 8
|
cpu_bits = struct.calcsize('P') * 8
|
||||||
api_client_ver = pkg_resources.get_distribution(
|
api_client_ver = lib_version('google-api-python-client')
|
||||||
'google-api-python-client').version
|
|
||||||
print(
|
print(
|
||||||
(f'GAM {GAM_VERSION} - {GAM_URL} - {GM_Globals[GM_GAM_TYPE]}\n'
|
(f'GAM {GAM_VERSION} - {GAM_URL} - {GM_Globals[GM_GAM_TYPE]}\n'
|
||||||
f'{GAM_AUTHOR}\n'
|
f'{GAM_AUTHOR}\n'
|
||||||
@@ -786,6 +785,21 @@ def doGAMVersion(checkForArgs=True):
|
|||||||
doGAMCheckForUpdates(forceCheck=True)
|
doGAMCheckForUpdates(forceCheck=True)
|
||||||
if extended:
|
if extended:
|
||||||
print(ssl.OPENSSL_VERSION)
|
print(ssl.OPENSSL_VERSION)
|
||||||
|
libs = ['cryptography',
|
||||||
|
'filelock',
|
||||||
|
'google-auth-httplib2',
|
||||||
|
'google-auth-oauthlib',
|
||||||
|
'google-auth',
|
||||||
|
'httplib2',
|
||||||
|
'passlib',
|
||||||
|
'python-dateutil',
|
||||||
|
'yubikey-manager',
|
||||||
|
'yomama']
|
||||||
|
for lib in libs:
|
||||||
|
try:
|
||||||
|
print(f'{lib} {lib_version(lib)}')
|
||||||
|
except:
|
||||||
|
pass
|
||||||
tls_ver, cipher_name, used_ip = _getServerTLSUsed(testLocation)
|
tls_ver, cipher_name, used_ip = _getServerTLSUsed(testLocation)
|
||||||
print(
|
print(
|
||||||
f'{testLocation} ({used_ip}) connects using {tls_ver} {cipher_name}'
|
f'{testLocation} ({used_ip}) connects using {tls_ver} {cipher_name}'
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ google-auth-httplib2
|
|||||||
google-auth-oauthlib>=0.4.1
|
google-auth-oauthlib>=0.4.1
|
||||||
google-auth>=1.11.2
|
google-auth>=1.11.2
|
||||||
httplib2>=0.17.0
|
httplib2>=0.17.0
|
||||||
|
importlib.metadata; python_version < '3.8'
|
||||||
passlib>=1.7.2
|
passlib>=1.7.2
|
||||||
python-dateutil
|
python-dateutil
|
||||||
yubikey-manager>=4.0.0
|
yubikey-manager>=4.0.0
|
||||||
|
|||||||
Reference in New Issue
Block a user