mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 12:21:35 +00:00
retire soon-to-be EoL Python 3.7. Hello walrus operator...
This commit is contained in:
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
@@ -66,11 +66,6 @@ jobs:
|
|||||||
goal: build
|
goal: build
|
||||||
arch: Win32
|
arch: Win32
|
||||||
openssl_archs: VC-WIN32
|
openssl_archs: VC-WIN32
|
||||||
- os: ubuntu-22.04
|
|
||||||
goal: test
|
|
||||||
python: "3.7"
|
|
||||||
jid: 8
|
|
||||||
arch: x86_64
|
|
||||||
- os: ubuntu-22.04
|
- os: ubuntu-22.04
|
||||||
goal: test
|
goal: test
|
||||||
python: "3.8"
|
python: "3.8"
|
||||||
@@ -105,8 +100,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
workload_identity_provider: projects/297925809119/locations/global/workloadIdentityPools/gha-pool/providers/gha-provider
|
workload_identity_provider: projects/297925809119/locations/global/workloadIdentityPools/gha-pool/providers/gha-provider
|
||||||
service_account: github-actions-testing-for-gam@gam-project-wyo-lub-ivl.iam.gserviceaccount.com
|
service_account: github-actions-testing-for-gam@gam-project-wyo-lub-ivl.iam.gserviceaccount.com
|
||||||
#access_token_scopes: https://www.googleapis.com/auth/iam
|
|
||||||
#token_format: access_token
|
|
||||||
|
|
||||||
- name: Cache multiple paths
|
- name: Cache multiple paths
|
||||||
if: matrix.goal == 'build'
|
if: matrix.goal == 'build'
|
||||||
|
|||||||
@@ -22,25 +22,33 @@ For more information, see https://jaylee.us/gam
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
from multiprocessing import freeze_support
|
|
||||||
from multiprocessing import set_start_method
|
|
||||||
|
|
||||||
from gam import controlflow
|
|
||||||
import gam
|
|
||||||
|
|
||||||
|
|
||||||
|
# Note that this file (and only this file) should remain compatible
|
||||||
|
# with older Python versions so we can return a meaningful error
|
||||||
|
# instead of a syntax error.
|
||||||
def main():
|
def main():
|
||||||
|
required_ver = (3, 8, 0)
|
||||||
|
if sys.version_info[:3] < required_ver:
|
||||||
|
err_result = ('ERROR: GAM requires Python %s.%s.%s or newer. You are '
|
||||||
|
'running %s.%s.%s. Please upgrade your Python version '
|
||||||
|
'or use one of the binary GAM downloads.\n' %
|
||||||
|
(required_ver[0],
|
||||||
|
required_ver[1],
|
||||||
|
required_ver[2],
|
||||||
|
sys.version_info[0],
|
||||||
|
sys.version_info[1],
|
||||||
|
sys.version_info[2]))
|
||||||
|
sys.stderr.write(err_result)
|
||||||
|
sys.exit(5)
|
||||||
|
from multiprocessing import freeze_support
|
||||||
freeze_support()
|
freeze_support()
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
# https://bugs.python.org/issue33725 in Python 3.8.0 seems
|
# https://bugs.python.org/issue33725 in Python 3.8.0 seems
|
||||||
# to break parallel operations with errors about extra -b
|
# to break parallel operations with errors about extra -b
|
||||||
# command line arguments
|
# command line arguments
|
||||||
|
from multiprocessing import set_start_method
|
||||||
set_start_method('fork')
|
set_start_method('fork')
|
||||||
if sys.version_info[0] < 3 or sys.version_info[1] < 7:
|
import gam
|
||||||
controlflow.system_error_exit(
|
|
||||||
5,
|
|
||||||
f'GAM requires Python 3.7 or newer. You are running %s.%s.%s. Please upgrade your Python version or use one of the binary GAM downloads.'
|
|
||||||
% sys.version_info[:3])
|
|
||||||
sys.exit(gam.ProcessGAMCommand(sys.argv))
|
sys.exit(gam.ProcessGAMCommand(sys.argv))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4,9 +4,8 @@ filelock
|
|||||||
google-api-python-client>=2.1
|
google-api-python-client>=2.1
|
||||||
google-auth-httplib2
|
google-auth-httplib2
|
||||||
google-auth-oauthlib>=0.4.1
|
google-auth-oauthlib>=0.4.1
|
||||||
google-auth>=2.3.2
|
google-auth[reauth]>=2.3.2
|
||||||
httplib2>=0.17.0
|
httplib2>=0.17.0
|
||||||
importlib.metadata; python_version < '3.8'
|
|
||||||
passlib>=1.7.2
|
passlib>=1.7.2
|
||||||
pathvalidate
|
pathvalidate
|
||||||
python-dateutil
|
python-dateutil
|
||||||
|
|||||||
@@ -13,15 +13,15 @@ keywords = google, oauth2, gsuite, google-apps, google-admin-sdk, google-drive,
|
|||||||
classifiers =
|
classifiers =
|
||||||
Programming Language :: Python :: 3
|
Programming Language :: Python :: 3
|
||||||
Programming Language :: Python :: 3 :: Only
|
Programming Language :: Python :: 3 :: Only
|
||||||
Programming Language :: Python :: 3.7
|
|
||||||
Programming Language :: Python :: 3.8
|
Programming Language :: Python :: 3.8
|
||||||
Programming Language :: Python :: 3.9
|
Programming Language :: Python :: 3.9
|
||||||
Programming Language :: Python :: 3.10
|
Programming Language :: Python :: 3.10
|
||||||
|
Programming Language :: Python :: 3.11
|
||||||
License :: OSI Approved :: Apache License
|
License :: OSI Approved :: Apache License
|
||||||
|
|
||||||
[options]
|
[options]
|
||||||
packages = find:
|
packages = find:
|
||||||
python_requires = >= 3.7
|
python_requires = >= 3.8
|
||||||
install_requires =
|
install_requires =
|
||||||
cryptography
|
cryptography
|
||||||
distro; sys_platform == 'linux'
|
distro; sys_platform == 'linux'
|
||||||
@@ -33,9 +33,9 @@ install_requires =
|
|||||||
httplib2 >= 0.20.2
|
httplib2 >= 0.20.2
|
||||||
importlib.metadata; python_version < '3.8'
|
importlib.metadata; python_version < '3.8'
|
||||||
passlib >= 1.7.4
|
passlib >= 1.7.4
|
||||||
python-dateutil
|
|
||||||
yubikey-manager >= 4.0.0
|
|
||||||
pathvalidate
|
pathvalidate
|
||||||
|
python-dateutil
|
||||||
|
yubikey-manager >= 5.0
|
||||||
|
|
||||||
[options.package_data]
|
[options.package_data]
|
||||||
* = *.pem
|
* = *.pem
|
||||||
|
|||||||
Reference in New Issue
Block a user