mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 12:21:35 +00:00
single static list of libs
This commit is contained in:
10
src/gam.spec
10
src/gam.spec
@@ -1,19 +1,15 @@
|
||||
# -*- mode: python ; coding: utf-8 -*-
|
||||
from importlib.util import find_spec
|
||||
from os import getenv
|
||||
from re import search
|
||||
from sys import platform
|
||||
|
||||
from PyInstaller.utils.hooks import copy_metadata
|
||||
|
||||
from gam.var import GAM_VER_LIBS
|
||||
|
||||
extra_files = []
|
||||
with open('requirements.txt', 'r') as reqs:
|
||||
for req in reqs:
|
||||
r = search('^[a-z,A-Z,0-9-_]*', req)
|
||||
pkg = r.group(0) if r else ''
|
||||
if find_spec(pkg):
|
||||
extra_files += copy_metadata(pkg, recursive=True)
|
||||
for pkg in GAM_VER_LIBS:
|
||||
copy_metadata(pkg, recursive=True)
|
||||
extra_files += [('cbcm-v1.1beta1.json', '.')]
|
||||
extra_files += [('contactdelegation-v1.json', '.')]
|
||||
extra_files += [('admin-directory_v1.1beta1.json', '.')]
|
||||
|
||||
@@ -884,20 +884,11 @@ def doGAMVersion(checkForArgs=True):
|
||||
doGAMCheckForUpdates(forceCheck)
|
||||
if extended:
|
||||
print(ssl.OPENSSL_VERSION)
|
||||
libs = ['cryptography',
|
||||
'filelock',
|
||||
'google-auth-httplib2',
|
||||
'google-auth-oauthlib',
|
||||
'google-auth',
|
||||
'httplib2',
|
||||
'passlib',
|
||||
'python-dateutil',
|
||||
'yubikey-manager',
|
||||
]
|
||||
for lib in libs:
|
||||
for lib in GAM_VER_LIBS:
|
||||
try:
|
||||
print(f'{lib} {lib_version(lib)}')
|
||||
except:
|
||||
except Exception as e:
|
||||
print(e)
|
||||
pass
|
||||
tls_ver, cipher_name, used_ip = _getServerTLSUsed(testLocation)
|
||||
print(
|
||||
|
||||
@@ -17,6 +17,18 @@ GAM_INFO = (
|
||||
f'Python {platform.python_version()} {sys.version_info.releaselevel} / '
|
||||
f'{platform.platform()} {platform.machine()}')
|
||||
|
||||
# Packages we want version info available
|
||||
# for "gam version extended"
|
||||
GAM_VER_LIBS = ['cryptography',
|
||||
'filelock',
|
||||
'google-auth-httplib2',
|
||||
'google-auth-oauthlib',
|
||||
'google-auth',
|
||||
'httplib2',
|
||||
'passlib',
|
||||
'python-dateutil',
|
||||
'yubikey-manager',
|
||||
]
|
||||
GAM_RELEASES = 'https://github.com/GAM-team/GAM/releases'
|
||||
GAM_WIKI = 'https://github.com/GAM-team/GAM/wiki'
|
||||
GAM_ALL_RELEASES = 'https://api.github.com/repos/GAM-team/GAM/releases'
|
||||
|
||||
Reference in New Issue
Block a user