forked from pool/python-google-auth
Accepting request 1067209 from home:dirkmueller:acdc
- Add no-python3.patch replacing call of the string literal 'python3' with sys.executable (gh#googleapis/google-auth-library-python!1233). OBS-URL: https://build.opensuse.org/request/show/1067209 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-auth?expand=0&rev=52
This commit is contained in:
parent
be9b275f44
commit
61dfd155d6
23
no-python3.patch
Normal file
23
no-python3.patch
Normal file
@ -0,0 +1,23 @@
|
||||
---
|
||||
tests/test__cloud_sdk.py | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
--- a/tests/test__cloud_sdk.py
|
||||
+++ b/tests/test__cloud_sdk.py
|
||||
@@ -16,6 +16,7 @@ import io
|
||||
import json
|
||||
import os
|
||||
import subprocess
|
||||
+import sys
|
||||
|
||||
from unittest import mock
|
||||
import pytest # type: ignore
|
||||
@@ -73,7 +74,7 @@ def test_get_project_id_call_error(check
|
||||
|
||||
def test__run_subprocess_ignore_stderr():
|
||||
command = [
|
||||
- "python3",
|
||||
+ sys.executable,
|
||||
"-c",
|
||||
"from __future__ import print_function;"
|
||||
+ "import sys;"
|
@ -1,6 +1,51 @@
|
||||
diff -Nru google-auth-2.14.0.orig/tests/compute_engine/test_credentials.py google-auth-2.14.0/tests/compute_engine/test_credentials.py
|
||||
--- google-auth-2.14.0.orig/tests/compute_engine/test_credentials.py 2022-10-31 22:49:50.000000000 +0100
|
||||
+++ google-auth-2.14.0/tests/compute_engine/test_credentials.py 2022-11-07 14:57:21.675761110 +0100
|
||||
---
|
||||
tests/compute_engine/test__metadata.py | 2 +-
|
||||
tests/compute_engine/test_credentials.py | 2 +-
|
||||
tests/conftest.py | 2 +-
|
||||
tests/crypt/test__python_rsa.py | 2 +-
|
||||
tests/oauth2/test__client.py | 2 +-
|
||||
tests/oauth2/test_challenges.py | 2 +-
|
||||
tests/oauth2/test_credentials.py | 2 +-
|
||||
tests/oauth2/test_gdch_credentials.py | 2 +-
|
||||
tests/oauth2/test_id_token.py | 2 +-
|
||||
tests/oauth2/test_reauth.py | 2 +-
|
||||
tests/oauth2/test_service_account.py | 2 +-
|
||||
tests/oauth2/test_sts.py | 2 +-
|
||||
tests/test__cloud_sdk.py | 2 +-
|
||||
tests/test__default.py | 2 +-
|
||||
tests/test__exponential_backoff.py | 2 +-
|
||||
tests/test__oauth2client.py | 2 +-
|
||||
tests/test_app_engine.py | 2 +-
|
||||
tests/test_aws.py | 2 +-
|
||||
tests/test_downscoped.py | 2 +-
|
||||
tests/test_external_account.py | 2 +-
|
||||
tests/test_external_account_authorized_user.py | 2 +-
|
||||
tests/test_iam.py | 2 +-
|
||||
tests/test_identity_pool.py | 2 +-
|
||||
tests/test_impersonated_credentials.py | 2 +-
|
||||
tests/test_jwt.py | 2 +-
|
||||
tests/test_pluggable.py | 2 +-
|
||||
tests/transport/test__custom_tls_signer.py | 2 +-
|
||||
tests/transport/test__mtls_helper.py | 2 +-
|
||||
tests/transport/test_grpc.py | 2 +-
|
||||
tests/transport/test_mtls.py | 2 +-
|
||||
tests/transport/test_requests.py | 2 +-
|
||||
tests/transport/test_urllib3.py | 2 +-
|
||||
32 files changed, 32 insertions(+), 32 deletions(-)
|
||||
|
||||
--- a/tests/compute_engine/test__metadata.py
|
||||
+++ b/tests/compute_engine/test__metadata.py
|
||||
@@ -16,7 +16,7 @@ import datetime
|
||||
import json
|
||||
import os
|
||||
|
||||
-import mock
|
||||
+from unittest import mock
|
||||
import pytest # type: ignore
|
||||
from six.moves import http_client
|
||||
from six.moves import reload_module
|
||||
--- a/tests/compute_engine/test_credentials.py
|
||||
+++ b/tests/compute_engine/test_credentials.py
|
||||
@@ -14,7 +14,7 @@
|
||||
import base64
|
||||
import datetime
|
||||
@ -10,21 +55,8 @@ diff -Nru google-auth-2.14.0.orig/tests/compute_engine/test_credentials.py googl
|
||||
import pytest # type: ignore
|
||||
import responses # type: ignore
|
||||
|
||||
diff -Nru google-auth-2.14.0.orig/tests/compute_engine/test__metadata.py google-auth-2.14.0/tests/compute_engine/test__metadata.py
|
||||
--- google-auth-2.14.0.orig/tests/compute_engine/test__metadata.py 2022-10-31 22:49:50.000000000 +0100
|
||||
+++ google-auth-2.14.0/tests/compute_engine/test__metadata.py 2022-11-07 14:57:21.679761142 +0100
|
||||
@@ -16,7 +16,7 @@
|
||||
import json
|
||||
import os
|
||||
|
||||
-import mock
|
||||
+from unittest import mock
|
||||
import pytest # type: ignore
|
||||
from six.moves import http_client
|
||||
from six.moves import reload_module
|
||||
diff -Nru google-auth-2.14.0.orig/tests/conftest.py google-auth-2.14.0/tests/conftest.py
|
||||
--- google-auth-2.14.0.orig/tests/conftest.py 2022-10-31 22:49:50.000000000 +0100
|
||||
+++ google-auth-2.14.0/tests/conftest.py 2022-11-07 14:57:21.603760535 +0100
|
||||
--- a/tests/conftest.py
|
||||
+++ b/tests/conftest.py
|
||||
@@ -15,7 +15,7 @@
|
||||
import os
|
||||
import sys
|
||||
@ -34,9 +66,8 @@ diff -Nru google-auth-2.14.0.orig/tests/conftest.py google-auth-2.14.0/tests/con
|
||||
import pytest # type: ignore
|
||||
|
||||
|
||||
diff -Nru google-auth-2.14.0.orig/tests/crypt/test__python_rsa.py google-auth-2.14.0/tests/crypt/test__python_rsa.py
|
||||
--- google-auth-2.14.0.orig/tests/crypt/test__python_rsa.py 2022-10-31 22:49:50.000000000 +0100
|
||||
+++ google-auth-2.14.0/tests/crypt/test__python_rsa.py 2022-11-07 14:57:21.703761334 +0100
|
||||
--- a/tests/crypt/test__python_rsa.py
|
||||
+++ b/tests/crypt/test__python_rsa.py
|
||||
@@ -15,7 +15,7 @@
|
||||
import json
|
||||
import os
|
||||
@ -46,9 +77,19 @@ diff -Nru google-auth-2.14.0.orig/tests/crypt/test__python_rsa.py google-auth-2.
|
||||
from pyasn1_modules import pem # type: ignore
|
||||
import pytest # type: ignore
|
||||
import rsa # type: ignore
|
||||
diff -Nru google-auth-2.14.0.orig/tests/oauth2/test_challenges.py google-auth-2.14.0/tests/oauth2/test_challenges.py
|
||||
--- google-auth-2.14.0.orig/tests/oauth2/test_challenges.py 2022-10-31 22:49:50.000000000 +0100
|
||||
+++ google-auth-2.14.0/tests/oauth2/test_challenges.py 2022-11-07 14:57:21.659760982 +0100
|
||||
--- a/tests/oauth2/test__client.py
|
||||
+++ b/tests/oauth2/test__client.py
|
||||
@@ -16,7 +16,7 @@ import datetime
|
||||
import json
|
||||
import os
|
||||
|
||||
-import mock
|
||||
+from unittest import mock
|
||||
import pytest # type: ignore
|
||||
import six
|
||||
from six.moves import http_client
|
||||
--- a/tests/oauth2/test_challenges.py
|
||||
+++ b/tests/oauth2/test_challenges.py
|
||||
@@ -17,7 +17,7 @@
|
||||
import base64
|
||||
import sys
|
||||
@ -58,22 +99,9 @@ diff -Nru google-auth-2.14.0.orig/tests/oauth2/test_challenges.py google-auth-2.
|
||||
import pytest # type: ignore
|
||||
import pyu2f # type: ignore
|
||||
|
||||
diff -Nru google-auth-2.14.0.orig/tests/oauth2/test__client.py google-auth-2.14.0/tests/oauth2/test__client.py
|
||||
--- google-auth-2.14.0.orig/tests/oauth2/test__client.py 2022-10-31 22:49:50.000000000 +0100
|
||||
+++ google-auth-2.14.0/tests/oauth2/test__client.py 2022-11-07 14:57:21.643760854 +0100
|
||||
@@ -16,7 +16,7 @@
|
||||
import json
|
||||
import os
|
||||
|
||||
-import mock
|
||||
+from unittest import mock
|
||||
import pytest # type: ignore
|
||||
import six
|
||||
from six.moves import http_client
|
||||
diff -Nru google-auth-2.14.0.orig/tests/oauth2/test_credentials.py google-auth-2.14.0/tests/oauth2/test_credentials.py
|
||||
--- google-auth-2.14.0.orig/tests/oauth2/test_credentials.py 2022-10-31 22:49:50.000000000 +0100
|
||||
+++ google-auth-2.14.0/tests/oauth2/test_credentials.py 2022-11-07 14:57:21.651760918 +0100
|
||||
@@ -18,7 +18,7 @@
|
||||
--- a/tests/oauth2/test_credentials.py
|
||||
+++ b/tests/oauth2/test_credentials.py
|
||||
@@ -18,7 +18,7 @@ import os
|
||||
import pickle
|
||||
import sys
|
||||
|
||||
@ -82,10 +110,9 @@ diff -Nru google-auth-2.14.0.orig/tests/oauth2/test_credentials.py google-auth-2
|
||||
import pytest # type: ignore
|
||||
|
||||
from google.auth import _helpers
|
||||
diff -Nru google-auth-2.14.0.orig/tests/oauth2/test_gdch_credentials.py google-auth-2.14.0/tests/oauth2/test_gdch_credentials.py
|
||||
--- google-auth-2.14.0.orig/tests/oauth2/test_gdch_credentials.py 2022-10-31 22:49:50.000000000 +0100
|
||||
+++ google-auth-2.14.0/tests/oauth2/test_gdch_credentials.py 2022-11-07 14:57:21.639760822 +0100
|
||||
@@ -17,7 +17,7 @@
|
||||
--- a/tests/oauth2/test_gdch_credentials.py
|
||||
+++ b/tests/oauth2/test_gdch_credentials.py
|
||||
@@ -17,7 +17,7 @@ import datetime
|
||||
import json
|
||||
import os
|
||||
|
||||
@ -94,9 +121,8 @@ diff -Nru google-auth-2.14.0.orig/tests/oauth2/test_gdch_credentials.py google-a
|
||||
import pytest # type: ignore
|
||||
import requests
|
||||
import six
|
||||
diff -Nru google-auth-2.14.0.orig/tests/oauth2/test_id_token.py google-auth-2.14.0/tests/oauth2/test_id_token.py
|
||||
--- google-auth-2.14.0.orig/tests/oauth2/test_id_token.py 2022-10-31 22:49:50.000000000 +0100
|
||||
+++ google-auth-2.14.0/tests/oauth2/test_id_token.py 2022-11-07 14:57:21.643760854 +0100
|
||||
--- a/tests/oauth2/test_id_token.py
|
||||
+++ b/tests/oauth2/test_id_token.py
|
||||
@@ -15,7 +15,7 @@
|
||||
import json
|
||||
import os
|
||||
@ -106,9 +132,8 @@ diff -Nru google-auth-2.14.0.orig/tests/oauth2/test_id_token.py google-auth-2.14
|
||||
import pytest # type: ignore
|
||||
|
||||
from google.auth import environment_vars
|
||||
diff -Nru google-auth-2.14.0.orig/tests/oauth2/test_reauth.py google-auth-2.14.0/tests/oauth2/test_reauth.py
|
||||
--- google-auth-2.14.0.orig/tests/oauth2/test_reauth.py 2022-10-31 22:49:50.000000000 +0100
|
||||
+++ google-auth-2.14.0/tests/oauth2/test_reauth.py 2022-11-07 14:57:21.651760918 +0100
|
||||
--- a/tests/oauth2/test_reauth.py
|
||||
+++ b/tests/oauth2/test_reauth.py
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
import copy
|
||||
@ -118,10 +143,9 @@ diff -Nru google-auth-2.14.0.orig/tests/oauth2/test_reauth.py google-auth-2.14.0
|
||||
import pytest # type: ignore
|
||||
|
||||
from google.auth import exceptions
|
||||
diff -Nru google-auth-2.14.0.orig/tests/oauth2/test_service_account.py google-auth-2.14.0/tests/oauth2/test_service_account.py
|
||||
--- google-auth-2.14.0.orig/tests/oauth2/test_service_account.py 2022-10-31 22:49:50.000000000 +0100
|
||||
+++ google-auth-2.14.0/tests/oauth2/test_service_account.py 2022-11-07 14:57:21.647760886 +0100
|
||||
@@ -16,7 +16,7 @@
|
||||
--- a/tests/oauth2/test_service_account.py
|
||||
+++ b/tests/oauth2/test_service_account.py
|
||||
@@ -16,7 +16,7 @@ import datetime
|
||||
import json
|
||||
import os
|
||||
|
||||
@ -130,9 +154,8 @@ diff -Nru google-auth-2.14.0.orig/tests/oauth2/test_service_account.py google-au
|
||||
|
||||
from google.auth import _helpers
|
||||
from google.auth import crypt
|
||||
diff -Nru google-auth-2.14.0.orig/tests/oauth2/test_sts.py google-auth-2.14.0/tests/oauth2/test_sts.py
|
||||
--- google-auth-2.14.0.orig/tests/oauth2/test_sts.py 2022-10-31 22:49:50.000000000 +0100
|
||||
+++ google-auth-2.14.0/tests/oauth2/test_sts.py 2022-11-07 14:57:21.659760982 +0100
|
||||
--- a/tests/oauth2/test_sts.py
|
||||
+++ b/tests/oauth2/test_sts.py
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
import json
|
||||
@ -142,34 +165,9 @@ diff -Nru google-auth-2.14.0.orig/tests/oauth2/test_sts.py google-auth-2.14.0/te
|
||||
import pytest # type: ignore
|
||||
from six.moves import http_client
|
||||
from six.moves import urllib
|
||||
diff -Nru google-auth-2.14.0.orig/tests/test_app_engine.py google-auth-2.14.0/tests/test_app_engine.py
|
||||
--- google-auth-2.14.0.orig/tests/test_app_engine.py 2022-10-31 22:49:50.000000000 +0100
|
||||
+++ google-auth-2.14.0/tests/test_app_engine.py 2022-11-07 14:57:21.627760726 +0100
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
import datetime
|
||||
|
||||
-import mock
|
||||
+from unittest import mock
|
||||
import pytest # type: ignore
|
||||
|
||||
from google.auth import app_engine
|
||||
diff -Nru google-auth-2.14.0.orig/tests/test_aws.py google-auth-2.14.0/tests/test_aws.py
|
||||
--- google-auth-2.14.0.orig/tests/test_aws.py 2022-10-31 22:49:50.000000000 +0100
|
||||
+++ google-auth-2.14.0/tests/test_aws.py 2022-11-07 14:57:21.715761429 +0100
|
||||
@@ -15,7 +15,7 @@
|
||||
import datetime
|
||||
import json
|
||||
|
||||
-import mock
|
||||
+from unittest import mock
|
||||
import pytest # type: ignore
|
||||
from six.moves import http_client
|
||||
from six.moves import urllib
|
||||
diff -Nru google-auth-2.14.0.orig/tests/test__cloud_sdk.py google-auth-2.14.0/tests/test__cloud_sdk.py
|
||||
--- google-auth-2.14.0.orig/tests/test__cloud_sdk.py 2022-10-31 22:49:50.000000000 +0100
|
||||
+++ google-auth-2.14.0/tests/test__cloud_sdk.py 2022-11-07 14:57:21.635760790 +0100
|
||||
@@ -17,7 +17,7 @@
|
||||
--- a/tests/test__cloud_sdk.py
|
||||
+++ b/tests/test__cloud_sdk.py
|
||||
@@ -17,7 +17,7 @@ import json
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
@ -178,9 +176,8 @@ diff -Nru google-auth-2.14.0.orig/tests/test__cloud_sdk.py google-auth-2.14.0/te
|
||||
import pytest # type: ignore
|
||||
|
||||
from google.auth import _cloud_sdk
|
||||
diff -Nru google-auth-2.14.0.orig/tests/test__default.py google-auth-2.14.0/tests/test__default.py
|
||||
--- google-auth-2.14.0.orig/tests/test__default.py 2022-10-31 22:49:50.000000000 +0100
|
||||
+++ google-auth-2.14.0/tests/test__default.py 2022-11-07 14:57:21.667761046 +0100
|
||||
--- a/tests/test__default.py
|
||||
+++ b/tests/test__default.py
|
||||
@@ -15,7 +15,7 @@
|
||||
import json
|
||||
import os
|
||||
@ -190,21 +187,8 @@ diff -Nru google-auth-2.14.0.orig/tests/test__default.py google-auth-2.14.0/test
|
||||
import pytest # type: ignore
|
||||
|
||||
from google.auth import _default
|
||||
diff -Nru google-auth-2.14.0.orig/tests/test_downscoped.py google-auth-2.14.0/tests/test_downscoped.py
|
||||
--- google-auth-2.14.0.orig/tests/test_downscoped.py 2022-10-31 22:49:50.000000000 +0100
|
||||
+++ google-auth-2.14.0/tests/test_downscoped.py 2022-11-07 14:57:21.675761110 +0100
|
||||
@@ -15,7 +15,7 @@
|
||||
import datetime
|
||||
import json
|
||||
|
||||
-import mock
|
||||
+from unittest import mock
|
||||
import pytest # type: ignore
|
||||
from six.moves import http_client
|
||||
from six.moves import urllib
|
||||
diff -Nru google-auth-2.14.0.orig/tests/test__exponential_backoff.py google-auth-2.14.0/tests/test__exponential_backoff.py
|
||||
--- google-auth-2.14.0.orig/tests/test__exponential_backoff.py 2022-10-31 22:49:50.000000000 +0100
|
||||
+++ google-auth-2.14.0/tests/test__exponential_backoff.py 2022-11-07 14:57:21.595760471 +0100
|
||||
--- a/tests/test__exponential_backoff.py
|
||||
+++ b/tests/test__exponential_backoff.py
|
||||
@@ -12,7 +12,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
@ -214,82 +198,9 @@ diff -Nru google-auth-2.14.0.orig/tests/test__exponential_backoff.py google-auth
|
||||
|
||||
from google.auth import _exponential_backoff
|
||||
|
||||
diff -Nru google-auth-2.14.0.orig/tests/test_external_account_authorized_user.py google-auth-2.14.0/tests/test_external_account_authorized_user.py
|
||||
--- google-auth-2.14.0.orig/tests/test_external_account_authorized_user.py 2022-10-31 22:49:50.000000000 +0100
|
||||
+++ google-auth-2.14.0/tests/test_external_account_authorized_user.py 2022-11-07 14:57:21.671761078 +0100
|
||||
@@ -15,7 +15,7 @@
|
||||
import datetime
|
||||
import json
|
||||
|
||||
-import mock
|
||||
+from unittest import mock
|
||||
import pytest # type: ignore
|
||||
from six.moves import http_client
|
||||
|
||||
diff -Nru google-auth-2.14.0.orig/tests/test_external_account.py google-auth-2.14.0/tests/test_external_account.py
|
||||
--- google-auth-2.14.0.orig/tests/test_external_account.py 2022-10-31 22:49:50.000000000 +0100
|
||||
+++ google-auth-2.14.0/tests/test_external_account.py 2022-11-07 14:57:21.599760503 +0100
|
||||
@@ -15,7 +15,7 @@
|
||||
import datetime
|
||||
import json
|
||||
|
||||
-import mock
|
||||
+from unittest import mock
|
||||
import pytest # type: ignore
|
||||
from six.moves import http_client
|
||||
from six.moves import urllib
|
||||
diff -Nru google-auth-2.14.0.orig/tests/test_iam.py google-auth-2.14.0/tests/test_iam.py
|
||||
--- google-auth-2.14.0.orig/tests/test_iam.py 2022-10-31 22:49:50.000000000 +0100
|
||||
+++ google-auth-2.14.0/tests/test_iam.py 2022-11-07 14:57:21.683761174 +0100
|
||||
@@ -16,7 +16,7 @@
|
||||
import datetime
|
||||
import json
|
||||
|
||||
-import mock
|
||||
+from unittest import mock
|
||||
import pytest # type: ignore
|
||||
from six.moves import http_client
|
||||
|
||||
diff -Nru google-auth-2.14.0.orig/tests/test_identity_pool.py google-auth-2.14.0/tests/test_identity_pool.py
|
||||
--- google-auth-2.14.0.orig/tests/test_identity_pool.py 2022-10-31 22:49:50.000000000 +0100
|
||||
+++ google-auth-2.14.0/tests/test_identity_pool.py 2022-11-07 14:57:21.687761206 +0100
|
||||
@@ -16,7 +16,7 @@
|
||||
import json
|
||||
import os
|
||||
|
||||
-import mock
|
||||
+from unittest import mock
|
||||
import pytest # type: ignore
|
||||
from six.moves import http_client
|
||||
from six.moves import urllib
|
||||
diff -Nru google-auth-2.14.0.orig/tests/test_impersonated_credentials.py google-auth-2.14.0/tests/test_impersonated_credentials.py
|
||||
--- google-auth-2.14.0.orig/tests/test_impersonated_credentials.py 2022-10-31 22:49:50.000000000 +0100
|
||||
+++ google-auth-2.14.0/tests/test_impersonated_credentials.py 2022-11-07 14:57:21.707761366 +0100
|
||||
@@ -19,7 +19,7 @@
|
||||
# Because Python 2.7
|
||||
# from typing import List
|
||||
|
||||
-import mock
|
||||
+from unittest import mock
|
||||
import pytest # type: ignore
|
||||
from six.moves import http_client
|
||||
|
||||
diff -Nru google-auth-2.14.0.orig/tests/test_jwt.py google-auth-2.14.0/tests/test_jwt.py
|
||||
--- google-auth-2.14.0.orig/tests/test_jwt.py 2022-10-31 22:49:50.000000000 +0100
|
||||
+++ google-auth-2.14.0/tests/test_jwt.py 2022-11-07 14:57:21.691761238 +0100
|
||||
@@ -17,7 +17,7 @@
|
||||
import json
|
||||
import os
|
||||
|
||||
-import mock
|
||||
+from unittest import mock
|
||||
import pytest # type: ignore
|
||||
|
||||
from google.auth import _helpers
|
||||
diff -Nru google-auth-2.14.0.orig/tests/test__oauth2client.py google-auth-2.14.0/tests/test__oauth2client.py
|
||||
--- google-auth-2.14.0.orig/tests/test__oauth2client.py 2022-10-31 22:49:50.000000000 +0100
|
||||
+++ google-auth-2.14.0/tests/test__oauth2client.py 2022-11-07 14:57:21.631760758 +0100
|
||||
@@ -16,7 +16,7 @@
|
||||
--- a/tests/test__oauth2client.py
|
||||
+++ b/tests/test__oauth2client.py
|
||||
@@ -16,7 +16,7 @@ import datetime
|
||||
import os
|
||||
import sys
|
||||
|
||||
@ -298,10 +209,108 @@ diff -Nru google-auth-2.14.0.orig/tests/test__oauth2client.py google-auth-2.14.0
|
||||
import pytest # type: ignore
|
||||
from six.moves import reload_module
|
||||
|
||||
diff -Nru google-auth-2.14.0.orig/tests/test_pluggable.py google-auth-2.14.0/tests/test_pluggable.py
|
||||
--- google-auth-2.14.0.orig/tests/test_pluggable.py 2022-10-31 22:49:50.000000000 +0100
|
||||
+++ google-auth-2.14.0/tests/test_pluggable.py 2022-11-07 14:57:21.711761397 +0100
|
||||
@@ -17,7 +17,7 @@
|
||||
--- a/tests/test_app_engine.py
|
||||
+++ b/tests/test_app_engine.py
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
import datetime
|
||||
|
||||
-import mock
|
||||
+from unittest import mock
|
||||
import pytest # type: ignore
|
||||
|
||||
from google.auth import app_engine
|
||||
--- a/tests/test_aws.py
|
||||
+++ b/tests/test_aws.py
|
||||
@@ -15,7 +15,7 @@
|
||||
import datetime
|
||||
import json
|
||||
|
||||
-import mock
|
||||
+from unittest import mock
|
||||
import pytest # type: ignore
|
||||
from six.moves import http_client
|
||||
from six.moves import urllib
|
||||
--- a/tests/test_downscoped.py
|
||||
+++ b/tests/test_downscoped.py
|
||||
@@ -15,7 +15,7 @@
|
||||
import datetime
|
||||
import json
|
||||
|
||||
-import mock
|
||||
+from unittest import mock
|
||||
import pytest # type: ignore
|
||||
from six.moves import http_client
|
||||
from six.moves import urllib
|
||||
--- a/tests/test_external_account.py
|
||||
+++ b/tests/test_external_account.py
|
||||
@@ -15,7 +15,7 @@
|
||||
import datetime
|
||||
import json
|
||||
|
||||
-import mock
|
||||
+from unittest import mock
|
||||
import pytest # type: ignore
|
||||
from six.moves import http_client
|
||||
from six.moves import urllib
|
||||
--- a/tests/test_external_account_authorized_user.py
|
||||
+++ b/tests/test_external_account_authorized_user.py
|
||||
@@ -15,7 +15,7 @@
|
||||
import datetime
|
||||
import json
|
||||
|
||||
-import mock
|
||||
+from unittest import mock
|
||||
import pytest # type: ignore
|
||||
from six.moves import http_client
|
||||
|
||||
--- a/tests/test_iam.py
|
||||
+++ b/tests/test_iam.py
|
||||
@@ -16,7 +16,7 @@ import base64
|
||||
import datetime
|
||||
import json
|
||||
|
||||
-import mock
|
||||
+from unittest import mock
|
||||
import pytest # type: ignore
|
||||
from six.moves import http_client
|
||||
|
||||
--- a/tests/test_identity_pool.py
|
||||
+++ b/tests/test_identity_pool.py
|
||||
@@ -16,7 +16,7 @@ import datetime
|
||||
import json
|
||||
import os
|
||||
|
||||
-import mock
|
||||
+from unittest import mock
|
||||
import pytest # type: ignore
|
||||
from six.moves import http_client
|
||||
from six.moves import urllib
|
||||
--- a/tests/test_impersonated_credentials.py
|
||||
+++ b/tests/test_impersonated_credentials.py
|
||||
@@ -19,7 +19,7 @@ import os
|
||||
# Because Python 2.7
|
||||
# from typing import List
|
||||
|
||||
-import mock
|
||||
+from unittest import mock
|
||||
import pytest # type: ignore
|
||||
from six.moves import http_client
|
||||
|
||||
--- a/tests/test_jwt.py
|
||||
+++ b/tests/test_jwt.py
|
||||
@@ -17,7 +17,7 @@ import datetime
|
||||
import json
|
||||
import os
|
||||
|
||||
-import mock
|
||||
+from unittest import mock
|
||||
import pytest # type: ignore
|
||||
|
||||
from google.auth import _helpers
|
||||
--- a/tests/test_pluggable.py
|
||||
+++ b/tests/test_pluggable.py
|
||||
@@ -17,7 +17,7 @@ import json
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
@ -310,10 +319,9 @@ diff -Nru google-auth-2.14.0.orig/tests/test_pluggable.py google-auth-2.14.0/tes
|
||||
import pytest # type: ignore
|
||||
|
||||
# from six.moves import http_client
|
||||
diff -Nru google-auth-2.14.0.orig/tests/transport/test__custom_tls_signer.py google-auth-2.14.0/tests/transport/test__custom_tls_signer.py
|
||||
--- google-auth-2.14.0.orig/tests/transport/test__custom_tls_signer.py 2022-10-31 22:49:50.000000000 +0100
|
||||
+++ google-auth-2.14.0/tests/transport/test__custom_tls_signer.py 2022-11-07 14:57:21.607760567 +0100
|
||||
@@ -16,7 +16,7 @@
|
||||
--- a/tests/transport/test__custom_tls_signer.py
|
||||
+++ b/tests/transport/test__custom_tls_signer.py
|
||||
@@ -16,7 +16,7 @@ import base64
|
||||
import ctypes
|
||||
import os
|
||||
|
||||
@ -322,21 +330,8 @@ diff -Nru google-auth-2.14.0.orig/tests/transport/test__custom_tls_signer.py goo
|
||||
import pytest # type: ignore
|
||||
from requests.packages.urllib3.util.ssl_ import create_urllib3_context # type: ignore
|
||||
import urllib3.contrib.pyopenssl # type: ignore
|
||||
diff -Nru google-auth-2.14.0.orig/tests/transport/test_grpc.py google-auth-2.14.0/tests/transport/test_grpc.py
|
||||
--- google-auth-2.14.0.orig/tests/transport/test_grpc.py 2022-10-31 22:49:50.000000000 +0100
|
||||
+++ google-auth-2.14.0/tests/transport/test_grpc.py 2022-11-07 14:57:21.611760599 +0100
|
||||
@@ -16,7 +16,7 @@
|
||||
import os
|
||||
import time
|
||||
|
||||
-import mock
|
||||
+from unittest import mock
|
||||
import pytest # type: ignore
|
||||
|
||||
from google.auth import _helpers
|
||||
diff -Nru google-auth-2.14.0.orig/tests/transport/test__mtls_helper.py google-auth-2.14.0/tests/transport/test__mtls_helper.py
|
||||
--- google-auth-2.14.0.orig/tests/transport/test__mtls_helper.py 2022-10-31 22:49:50.000000000 +0100
|
||||
+++ google-auth-2.14.0/tests/transport/test__mtls_helper.py 2022-11-07 14:57:21.615760631 +0100
|
||||
--- a/tests/transport/test__mtls_helper.py
|
||||
+++ b/tests/transport/test__mtls_helper.py
|
||||
@@ -15,7 +15,7 @@
|
||||
import os
|
||||
import re
|
||||
@ -346,9 +341,19 @@ diff -Nru google-auth-2.14.0.orig/tests/transport/test__mtls_helper.py google-au
|
||||
from OpenSSL import crypto
|
||||
import pytest # type: ignore
|
||||
|
||||
diff -Nru google-auth-2.14.0.orig/tests/transport/test_mtls.py google-auth-2.14.0/tests/transport/test_mtls.py
|
||||
--- google-auth-2.14.0.orig/tests/transport/test_mtls.py 2022-10-31 22:49:50.000000000 +0100
|
||||
+++ google-auth-2.14.0/tests/transport/test_mtls.py 2022-11-07 14:57:21.619760663 +0100
|
||||
--- a/tests/transport/test_grpc.py
|
||||
+++ b/tests/transport/test_grpc.py
|
||||
@@ -16,7 +16,7 @@ import datetime
|
||||
import os
|
||||
import time
|
||||
|
||||
-import mock
|
||||
+from unittest import mock
|
||||
import pytest # type: ignore
|
||||
|
||||
from google.auth import _helpers
|
||||
--- a/tests/transport/test_mtls.py
|
||||
+++ b/tests/transport/test_mtls.py
|
||||
@@ -12,7 +12,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
@ -358,10 +363,9 @@ diff -Nru google-auth-2.14.0.orig/tests/transport/test_mtls.py google-auth-2.14.
|
||||
import pytest # type: ignore
|
||||
|
||||
from google.auth import exceptions
|
||||
diff -Nru google-auth-2.14.0.orig/tests/transport/test_requests.py google-auth-2.14.0/tests/transport/test_requests.py
|
||||
--- google-auth-2.14.0.orig/tests/transport/test_requests.py 2022-10-31 22:49:50.000000000 +0100
|
||||
+++ google-auth-2.14.0/tests/transport/test_requests.py 2022-11-07 14:57:21.619760663 +0100
|
||||
@@ -18,7 +18,7 @@
|
||||
--- a/tests/transport/test_requests.py
|
||||
+++ b/tests/transport/test_requests.py
|
||||
@@ -18,7 +18,7 @@ import os
|
||||
import sys
|
||||
|
||||
import freezegun
|
||||
@ -370,9 +374,8 @@ diff -Nru google-auth-2.14.0.orig/tests/transport/test_requests.py google-auth-2
|
||||
import OpenSSL
|
||||
import pytest # type: ignore
|
||||
import requests
|
||||
diff -Nru google-auth-2.14.0.orig/tests/transport/test_urllib3.py google-auth-2.14.0/tests/transport/test_urllib3.py
|
||||
--- google-auth-2.14.0.orig/tests/transport/test_urllib3.py 2022-10-31 22:49:50.000000000 +0100
|
||||
+++ google-auth-2.14.0/tests/transport/test_urllib3.py 2022-11-07 14:57:21.603760535 +0100
|
||||
--- a/tests/transport/test_urllib3.py
|
||||
+++ b/tests/transport/test_urllib3.py
|
||||
@@ -15,7 +15,7 @@
|
||||
import os
|
||||
import sys
|
||||
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 22 20:00:34 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Add no-python3.patch replacing call of the
|
||||
string literal 'python3' with sys.executable
|
||||
(gh#googleapis/google-auth-library-python!1233).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 2 10:25:44 UTC 2022 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-google-auth
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -27,6 +27,9 @@ Source: https://files.pythonhosted.org/packages/source/g/google-auth/goo
|
||||
Patch0: ga_python-executable-name.patch
|
||||
# https://github.com/googleapis/google-auth-library-python/issues/1055
|
||||
Patch1: python-google-auth-no-mock.patch
|
||||
# PATCH-FIX-UPSTREAM no-python3.patch gh#googleapis/google-auth-library-python!1233 mcepl@suse.com
|
||||
# don't use 'python3' literal when you mean sys.executable
|
||||
Patch2: no-python3.patch
|
||||
BuildRequires: %{python_module Flask}
|
||||
# START TESTING SECTION
|
||||
BuildRequires: %{python_module aiohttp >= 3.6.2}
|
||||
|
Loading…
Reference in New Issue
Block a user