mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 20:31: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 -*-
|
# -*- mode: python ; coding: utf-8 -*-
|
||||||
from importlib.util import find_spec
|
|
||||||
from os import getenv
|
from os import getenv
|
||||||
from re import search
|
from re import search
|
||||||
from sys import platform
|
from sys import platform
|
||||||
|
|
||||||
from PyInstaller.utils.hooks import copy_metadata
|
from PyInstaller.utils.hooks import copy_metadata
|
||||||
|
|
||||||
|
from gam.var import GAM_VER_LIBS
|
||||||
|
|
||||||
extra_files = []
|
extra_files = []
|
||||||
with open('requirements.txt', 'r') as reqs:
|
for pkg in GAM_VER_LIBS:
|
||||||
for req in reqs:
|
copy_metadata(pkg, recursive=True)
|
||||||
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)
|
|
||||||
extra_files += [('cbcm-v1.1beta1.json', '.')]
|
extra_files += [('cbcm-v1.1beta1.json', '.')]
|
||||||
extra_files += [('contactdelegation-v1.json', '.')]
|
extra_files += [('contactdelegation-v1.json', '.')]
|
||||||
extra_files += [('admin-directory_v1.1beta1.json', '.')]
|
extra_files += [('admin-directory_v1.1beta1.json', '.')]
|
||||||
|
|||||||
@@ -884,20 +884,11 @@ def doGAMVersion(checkForArgs=True):
|
|||||||
doGAMCheckForUpdates(forceCheck)
|
doGAMCheckForUpdates(forceCheck)
|
||||||
if extended:
|
if extended:
|
||||||
print(ssl.OPENSSL_VERSION)
|
print(ssl.OPENSSL_VERSION)
|
||||||
libs = ['cryptography',
|
for lib in GAM_VER_LIBS:
|
||||||
'filelock',
|
|
||||||
'google-auth-httplib2',
|
|
||||||
'google-auth-oauthlib',
|
|
||||||
'google-auth',
|
|
||||||
'httplib2',
|
|
||||||
'passlib',
|
|
||||||
'python-dateutil',
|
|
||||||
'yubikey-manager',
|
|
||||||
]
|
|
||||||
for lib in libs:
|
|
||||||
try:
|
try:
|
||||||
print(f'{lib} {lib_version(lib)}')
|
print(f'{lib} {lib_version(lib)}')
|
||||||
except:
|
except Exception as e:
|
||||||
|
print(e)
|
||||||
pass
|
pass
|
||||||
tls_ver, cipher_name, used_ip = _getServerTLSUsed(testLocation)
|
tls_ver, cipher_name, used_ip = _getServerTLSUsed(testLocation)
|
||||||
print(
|
print(
|
||||||
|
|||||||
@@ -17,6 +17,18 @@ GAM_INFO = (
|
|||||||
f'Python {platform.python_version()} {sys.version_info.releaselevel} / '
|
f'Python {platform.python_version()} {sys.version_info.releaselevel} / '
|
||||||
f'{platform.platform()} {platform.machine()}')
|
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_RELEASES = 'https://github.com/GAM-team/GAM/releases'
|
||||||
GAM_WIKI = 'https://github.com/GAM-team/GAM/wiki'
|
GAM_WIKI = 'https://github.com/GAM-team/GAM/wiki'
|
||||||
GAM_ALL_RELEASES = 'https://api.github.com/repos/GAM-team/GAM/releases'
|
GAM_ALL_RELEASES = 'https://api.github.com/repos/GAM-team/GAM/releases'
|
||||||
|
|||||||
Reference in New Issue
Block a user