Compare commits

..

6 Commits

Author SHA1 Message Date
Jay Lee
f9d5f9852a Update gam.spec 2023-04-12 16:49:14 -04:00
Jay Lee
0e79035765 Update build.yml 2023-04-12 16:38:59 -04:00
Jay Lee
d5cf38eaca single static list of libs 2023-04-12 14:56:31 +00:00
Jay Lee
1cfa14d8d2 only copy metadata for imports that exist 2023-04-12 14:38:24 +00:00
Jay Lee
bf5a50eb2a copy_metadata for all reqs. Fixes "gam version extended" dep outputs 2023-04-12 14:23:31 +00:00
Jay Lee
f296579aad Update transport.py 2023-04-11 10:43:21 -04:00
5 changed files with 23 additions and 18 deletions

View File

@@ -467,6 +467,8 @@ jobs:
git clone https://github.com/pyinstaller/pyinstaller.git
cd pyinstaller
export latest_release=$(git tag --list | grep -v dev | grep -v rc | sort -Vr | head -n1)
# temp pin to 5.9
export latest_release="v5.9.0"
git checkout "${latest_release}"
# remove pre-compiled bootloaders so we fail if bootloader compile fails
rm -rvf PyInstaller/bootloader/*-*/*

View File

@@ -1,12 +1,15 @@
# -*- mode: python ; coding: utf-8 -*-
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 = []
extra_files += copy_metadata('google-api-python-client')
for pkg in GAM_VER_LIBS:
extra_files += copy_metadata(pkg, recursive=True)
extra_files += [('cbcm-v1.1beta1.json', '.')]
extra_files += [('contactdelegation-v1.json', '.')]
extra_files += [('admin-directory_v1.1beta1.json', '.')]

View File

@@ -6,10 +6,7 @@ import configparser
import csv
import datetime
from email import message_from_string
try:
from importlib.metadata import version as lib_version
except ImportError:
from importlib_metadata import version as lib_version
from importlib.metadata import version as lib_version
import io
import json
import mimetypes
@@ -887,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(

View File

@@ -10,7 +10,7 @@ from gam.var import GC_TLS_MIN_VERSION
from gam.var import GC_Values
# Bump default retries
#httplib2.RETRIES = 5
httplib2.RETRIES = 5
def create_http(cache=None,
timeout=None,

View File

@@ -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'