forked from pool/python-google-auth
Accepting request 1112803 from home:mimi_vx:branches:devel:languages:python
- refresh python-google-auth-no-mock.patch - update to 2.23.0 * Expose universe domain in credentials * Make external_account resistant to string type 'expires_in' responses from non-compliant services * Missing ssj for impersonate cred () * Skip checking projectid on cred if env var is set * Add get_bq_config_path() to _cloud_sdk.py OBS-URL: https://build.opensuse.org/request/show/1112803 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-auth?expand=0&rev=71
This commit is contained in:
parent
ff1f53c804
commit
a9aa213e58
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:164cba9af4e6e4e40c3a4f90a1a6c12ee56f14c0b4868d1ca91b32826ab334ce
|
|
||||||
size 231433
|
|
3
google-auth-2.23.0.tar.gz
Normal file
3
google-auth-2.23.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:753a26312e6f1eaeec20bc6f2644a10926697da93446e1f8e24d6d32d45a922a
|
||||||
|
size 231512
|
@ -1,6 +1,7 @@
|
|||||||
diff -Nru google-auth-2.20.0.orig/tests/compute_engine/test_credentials.py google-auth-2.20.0/tests/compute_engine/test_credentials.py
|
Index: google-auth-2.23.0/tests/compute_engine/test_credentials.py
|
||||||
--- google-auth-2.20.0.orig/tests/compute_engine/test_credentials.py 2023-06-13 19:48:05.000000000 +0200
|
===================================================================
|
||||||
+++ google-auth-2.20.0/tests/compute_engine/test_credentials.py 2023-06-20 15:13:30.097674211 +0200
|
--- google-auth-2.23.0.orig/tests/compute_engine/test_credentials.py
|
||||||
|
+++ google-auth-2.23.0/tests/compute_engine/test_credentials.py
|
||||||
@@ -14,7 +14,7 @@
|
@@ -14,7 +14,7 @@
|
||||||
import base64
|
import base64
|
||||||
import datetime
|
import datetime
|
||||||
@ -10,21 +11,23 @@ diff -Nru google-auth-2.20.0.orig/tests/compute_engine/test_credentials.py googl
|
|||||||
import pytest # type: ignore
|
import pytest # type: ignore
|
||||||
import responses # type: ignore
|
import responses # type: ignore
|
||||||
|
|
||||||
diff -Nru google-auth-2.20.0.orig/tests/compute_engine/test__metadata.py google-auth-2.20.0/tests/compute_engine/test__metadata.py
|
Index: google-auth-2.23.0/tests/compute_engine/test__metadata.py
|
||||||
--- google-auth-2.20.0.orig/tests/compute_engine/test__metadata.py 2023-06-13 19:48:05.000000000 +0200
|
===================================================================
|
||||||
+++ google-auth-2.20.0/tests/compute_engine/test__metadata.py 2023-06-20 15:13:30.097674211 +0200
|
--- google-auth-2.23.0.orig/tests/compute_engine/test__metadata.py
|
||||||
@@ -16,7 +16,7 @@
|
+++ google-auth-2.23.0/tests/compute_engine/test__metadata.py
|
||||||
|
@@ -18,7 +18,7 @@ import importlib
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
|
||||||
-import mock
|
-import mock
|
||||||
+from unittest import mock
|
+from unittest import mock
|
||||||
import pytest # type: ignore
|
import pytest # type: ignore
|
||||||
from six.moves import http_client
|
|
||||||
from six.moves import reload_module
|
from google.auth import _helpers
|
||||||
diff -Nru google-auth-2.20.0.orig/tests/conftest.py google-auth-2.20.0/tests/conftest.py
|
Index: google-auth-2.23.0/tests/conftest.py
|
||||||
--- google-auth-2.20.0.orig/tests/conftest.py 2023-06-13 19:48:05.000000000 +0200
|
===================================================================
|
||||||
+++ google-auth-2.20.0/tests/conftest.py 2023-06-20 15:13:30.021673293 +0200
|
--- google-auth-2.23.0.orig/tests/conftest.py
|
||||||
|
+++ google-auth-2.23.0/tests/conftest.py
|
||||||
@@ -15,7 +15,7 @@
|
@@ -15,7 +15,7 @@
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
@ -34,10 +37,11 @@ diff -Nru google-auth-2.20.0.orig/tests/conftest.py google-auth-2.20.0/tests/con
|
|||||||
import pytest # type: ignore
|
import pytest # type: ignore
|
||||||
|
|
||||||
|
|
||||||
diff -Nru google-auth-2.20.0.orig/tests/crypt/test__python_rsa.py google-auth-2.20.0/tests/crypt/test__python_rsa.py
|
Index: google-auth-2.23.0/tests/crypt/test__python_rsa.py
|
||||||
--- google-auth-2.20.0.orig/tests/crypt/test__python_rsa.py 2023-06-13 19:48:05.000000000 +0200
|
===================================================================
|
||||||
+++ google-auth-2.20.0/tests/crypt/test__python_rsa.py 2023-06-20 15:13:30.109674356 +0200
|
--- google-auth-2.23.0.orig/tests/crypt/test__python_rsa.py
|
||||||
@@ -15,7 +15,7 @@
|
+++ google-auth-2.23.0/tests/crypt/test__python_rsa.py
|
||||||
|
@@ -16,7 +16,7 @@ import io
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
|
||||||
@ -46,9 +50,10 @@ diff -Nru google-auth-2.20.0.orig/tests/crypt/test__python_rsa.py google-auth-2.
|
|||||||
from pyasn1_modules import pem # type: ignore
|
from pyasn1_modules import pem # type: ignore
|
||||||
import pytest # type: ignore
|
import pytest # type: ignore
|
||||||
import rsa # type: ignore
|
import rsa # type: ignore
|
||||||
diff -Nru google-auth-2.20.0.orig/tests/oauth2/test_challenges.py google-auth-2.20.0/tests/oauth2/test_challenges.py
|
Index: google-auth-2.23.0/tests/oauth2/test_challenges.py
|
||||||
--- google-auth-2.20.0.orig/tests/oauth2/test_challenges.py 2023-06-13 19:48:05.000000000 +0200
|
===================================================================
|
||||||
+++ google-auth-2.20.0/tests/oauth2/test_challenges.py 2023-06-20 15:13:30.077673970 +0200
|
--- google-auth-2.23.0.orig/tests/oauth2/test_challenges.py
|
||||||
|
+++ google-auth-2.23.0/tests/oauth2/test_challenges.py
|
||||||
@@ -17,7 +17,7 @@
|
@@ -17,7 +17,7 @@
|
||||||
import base64
|
import base64
|
||||||
import sys
|
import sys
|
||||||
@ -58,22 +63,24 @@ diff -Nru google-auth-2.20.0.orig/tests/oauth2/test_challenges.py google-auth-2.
|
|||||||
import pytest # type: ignore
|
import pytest # type: ignore
|
||||||
import pyu2f # type: ignore
|
import pyu2f # type: ignore
|
||||||
|
|
||||||
diff -Nru google-auth-2.20.0.orig/tests/oauth2/test__client.py google-auth-2.20.0/tests/oauth2/test__client.py
|
Index: google-auth-2.23.0/tests/oauth2/test__client.py
|
||||||
--- google-auth-2.20.0.orig/tests/oauth2/test__client.py 2023-06-13 19:48:05.000000000 +0200
|
===================================================================
|
||||||
+++ google-auth-2.20.0/tests/oauth2/test__client.py 2023-06-20 15:13:30.065673825 +0200
|
--- google-auth-2.23.0.orig/tests/oauth2/test__client.py
|
||||||
@@ -16,7 +16,7 @@
|
+++ google-auth-2.23.0/tests/oauth2/test__client.py
|
||||||
import json
|
@@ -18,7 +18,7 @@ import json
|
||||||
import os
|
import os
|
||||||
|
import urllib
|
||||||
|
|
||||||
-import mock
|
-import mock
|
||||||
+from unittest import mock
|
+from unittest import mock
|
||||||
import pytest # type: ignore
|
import pytest # type: ignore
|
||||||
import six
|
|
||||||
from six.moves import http_client
|
from google.auth import _helpers
|
||||||
diff -Nru google-auth-2.20.0.orig/tests/oauth2/test_credentials.py google-auth-2.20.0/tests/oauth2/test_credentials.py
|
Index: google-auth-2.23.0/tests/oauth2/test_credentials.py
|
||||||
--- google-auth-2.20.0.orig/tests/oauth2/test_credentials.py 2023-06-13 19:48:05.000000000 +0200
|
===================================================================
|
||||||
+++ google-auth-2.20.0/tests/oauth2/test_credentials.py 2023-06-20 15:13:30.069673873 +0200
|
--- google-auth-2.23.0.orig/tests/oauth2/test_credentials.py
|
||||||
@@ -18,7 +18,7 @@
|
+++ google-auth-2.23.0/tests/oauth2/test_credentials.py
|
||||||
|
@@ -18,7 +18,7 @@ import os
|
||||||
import pickle
|
import pickle
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
@ -82,10 +89,11 @@ diff -Nru google-auth-2.20.0.orig/tests/oauth2/test_credentials.py google-auth-2
|
|||||||
import pytest # type: ignore
|
import pytest # type: ignore
|
||||||
|
|
||||||
from google.auth import _helpers
|
from google.auth import _helpers
|
||||||
diff -Nru google-auth-2.20.0.orig/tests/oauth2/test_gdch_credentials.py google-auth-2.20.0/tests/oauth2/test_gdch_credentials.py
|
Index: google-auth-2.23.0/tests/oauth2/test_gdch_credentials.py
|
||||||
--- google-auth-2.20.0.orig/tests/oauth2/test_gdch_credentials.py 2023-06-13 19:48:05.000000000 +0200
|
===================================================================
|
||||||
+++ google-auth-2.20.0/tests/oauth2/test_gdch_credentials.py 2023-06-20 15:13:30.057673728 +0200
|
--- google-auth-2.23.0.orig/tests/oauth2/test_gdch_credentials.py
|
||||||
@@ -17,7 +17,7 @@
|
+++ google-auth-2.23.0/tests/oauth2/test_gdch_credentials.py
|
||||||
|
@@ -17,7 +17,7 @@ import datetime
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
|
||||||
@ -93,10 +101,11 @@ diff -Nru google-auth-2.20.0.orig/tests/oauth2/test_gdch_credentials.py google-a
|
|||||||
+from unittest import mock
|
+from unittest import mock
|
||||||
import pytest # type: ignore
|
import pytest # type: ignore
|
||||||
import requests
|
import requests
|
||||||
import six
|
|
||||||
diff -Nru google-auth-2.20.0.orig/tests/oauth2/test_id_token.py google-auth-2.20.0/tests/oauth2/test_id_token.py
|
Index: google-auth-2.23.0/tests/oauth2/test_id_token.py
|
||||||
--- google-auth-2.20.0.orig/tests/oauth2/test_id_token.py 2023-06-13 19:48:05.000000000 +0200
|
===================================================================
|
||||||
+++ google-auth-2.20.0/tests/oauth2/test_id_token.py 2023-06-20 15:13:30.061673776 +0200
|
--- google-auth-2.23.0.orig/tests/oauth2/test_id_token.py
|
||||||
|
+++ google-auth-2.23.0/tests/oauth2/test_id_token.py
|
||||||
@@ -15,7 +15,7 @@
|
@@ -15,7 +15,7 @@
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
@ -106,9 +115,10 @@ diff -Nru google-auth-2.20.0.orig/tests/oauth2/test_id_token.py google-auth-2.20
|
|||||||
import pytest # type: ignore
|
import pytest # type: ignore
|
||||||
|
|
||||||
from google.auth import environment_vars
|
from google.auth import environment_vars
|
||||||
diff -Nru google-auth-2.20.0.orig/tests/oauth2/test_reauth.py google-auth-2.20.0/tests/oauth2/test_reauth.py
|
Index: google-auth-2.23.0/tests/oauth2/test_reauth.py
|
||||||
--- google-auth-2.20.0.orig/tests/oauth2/test_reauth.py 2023-06-13 19:48:05.000000000 +0200
|
===================================================================
|
||||||
+++ google-auth-2.20.0/tests/oauth2/test_reauth.py 2023-06-20 15:13:30.073673921 +0200
|
--- google-auth-2.23.0.orig/tests/oauth2/test_reauth.py
|
||||||
|
+++ google-auth-2.23.0/tests/oauth2/test_reauth.py
|
||||||
@@ -14,7 +14,7 @@
|
@@ -14,7 +14,7 @@
|
||||||
|
|
||||||
import copy
|
import copy
|
||||||
@ -118,33 +128,36 @@ diff -Nru google-auth-2.20.0.orig/tests/oauth2/test_reauth.py google-auth-2.20.0
|
|||||||
import pytest # type: ignore
|
import pytest # type: ignore
|
||||||
|
|
||||||
from google.auth import exceptions
|
from google.auth import exceptions
|
||||||
diff -Nru google-auth-2.20.0.orig/tests/oauth2/test_service_account.py google-auth-2.20.0/tests/oauth2/test_service_account.py
|
Index: google-auth-2.23.0/tests/oauth2/test_service_account.py
|
||||||
--- google-auth-2.20.0.orig/tests/oauth2/test_service_account.py 2023-06-13 19:48:05.000000000 +0200
|
===================================================================
|
||||||
+++ google-auth-2.20.0/tests/oauth2/test_service_account.py 2023-06-20 15:13:30.065673825 +0200
|
--- google-auth-2.23.0.orig/tests/oauth2/test_service_account.py
|
||||||
@@ -16,7 +16,7 @@
|
+++ google-auth-2.23.0/tests/oauth2/test_service_account.py
|
||||||
|
@@ -16,7 +16,7 @@ import datetime
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
|
||||||
-import mock
|
-import mock
|
||||||
+from unittest import mock
|
+from unittest import mock
|
||||||
import pytest # type: ignore
|
import pytest # type: ignore
|
||||||
import six
|
|
||||||
|
|
||||||
diff -Nru google-auth-2.20.0.orig/tests/oauth2/test_sts.py google-auth-2.20.0/tests/oauth2/test_sts.py
|
|
||||||
--- google-auth-2.20.0.orig/tests/oauth2/test_sts.py 2023-06-13 19:48:05.000000000 +0200
|
|
||||||
+++ google-auth-2.20.0/tests/oauth2/test_sts.py 2023-06-20 15:13:30.081674018 +0200
|
|
||||||
@@ -14,7 +14,7 @@
|
|
||||||
|
|
||||||
|
from google.auth import _helpers
|
||||||
|
Index: google-auth-2.23.0/tests/oauth2/test_sts.py
|
||||||
|
===================================================================
|
||||||
|
--- google-auth-2.23.0.orig/tests/oauth2/test_sts.py
|
||||||
|
+++ google-auth-2.23.0/tests/oauth2/test_sts.py
|
||||||
|
@@ -16,7 +16,7 @@ import http.client as http_client
|
||||||
import json
|
import json
|
||||||
|
import urllib
|
||||||
|
|
||||||
-import mock
|
-import mock
|
||||||
+from unittest import mock
|
+from unittest import mock
|
||||||
import pytest # type: ignore
|
import pytest # type: ignore
|
||||||
from six.moves import http_client
|
|
||||||
from six.moves import urllib
|
from google.auth import exceptions
|
||||||
diff -Nru google-auth-2.20.0.orig/tests/test_app_engine.py google-auth-2.20.0/tests/test_app_engine.py
|
Index: google-auth-2.23.0/tests/test_app_engine.py
|
||||||
--- google-auth-2.20.0.orig/tests/test_app_engine.py 2023-06-13 19:48:05.000000000 +0200
|
===================================================================
|
||||||
+++ google-auth-2.20.0/tests/test_app_engine.py 2023-06-20 15:13:30.045673583 +0200
|
--- google-auth-2.23.0.orig/tests/test_app_engine.py
|
||||||
|
+++ google-auth-2.23.0/tests/test_app_engine.py
|
||||||
@@ -14,7 +14,7 @@
|
@@ -14,7 +14,7 @@
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
@ -154,22 +167,24 @@ diff -Nru google-auth-2.20.0.orig/tests/test_app_engine.py google-auth-2.20.0/te
|
|||||||
import pytest # type: ignore
|
import pytest # type: ignore
|
||||||
|
|
||||||
from google.auth import app_engine
|
from google.auth import app_engine
|
||||||
diff -Nru google-auth-2.20.0.orig/tests/test_aws.py google-auth-2.20.0/tests/test_aws.py
|
Index: google-auth-2.23.0/tests/test_aws.py
|
||||||
--- google-auth-2.20.0.orig/tests/test_aws.py 2023-06-13 19:48:05.000000000 +0200
|
===================================================================
|
||||||
+++ google-auth-2.20.0/tests/test_aws.py 2023-06-20 15:13:30.125674549 +0200
|
--- google-auth-2.23.0.orig/tests/test_aws.py
|
||||||
@@ -16,7 +16,7 @@
|
+++ google-auth-2.23.0/tests/test_aws.py
|
||||||
import json
|
@@ -18,7 +18,7 @@ import json
|
||||||
import os
|
import os
|
||||||
|
import urllib.parse
|
||||||
|
|
||||||
-import mock
|
-import mock
|
||||||
+from unittest import mock
|
+from unittest import mock
|
||||||
import pytest # type: ignore
|
import pytest # type: ignore
|
||||||
from six.moves import http_client
|
|
||||||
from six.moves import urllib
|
from google.auth import _helpers
|
||||||
diff -Nru google-auth-2.20.0.orig/tests/test__cloud_sdk.py google-auth-2.20.0/tests/test__cloud_sdk.py
|
Index: google-auth-2.23.0/tests/test__cloud_sdk.py
|
||||||
--- google-auth-2.20.0.orig/tests/test__cloud_sdk.py 2023-06-13 19:48:05.000000000 +0200
|
===================================================================
|
||||||
+++ google-auth-2.20.0/tests/test__cloud_sdk.py 2023-06-20 15:13:30.053673680 +0200
|
--- google-auth-2.23.0.orig/tests/test__cloud_sdk.py
|
||||||
@@ -18,7 +18,7 @@
|
+++ google-auth-2.23.0/tests/test__cloud_sdk.py
|
||||||
|
@@ -18,7 +18,7 @@ import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
@ -178,9 +193,10 @@ diff -Nru google-auth-2.20.0.orig/tests/test__cloud_sdk.py google-auth-2.20.0/te
|
|||||||
import pytest # type: ignore
|
import pytest # type: ignore
|
||||||
|
|
||||||
from google.auth import _cloud_sdk
|
from google.auth import _cloud_sdk
|
||||||
diff -Nru google-auth-2.20.0.orig/tests/test__default.py google-auth-2.20.0/tests/test__default.py
|
Index: google-auth-2.23.0/tests/test__default.py
|
||||||
--- google-auth-2.20.0.orig/tests/test__default.py 2023-06-13 19:48:05.000000000 +0200
|
===================================================================
|
||||||
+++ google-auth-2.20.0/tests/test__default.py 2023-06-20 15:13:30.089674115 +0200
|
--- google-auth-2.23.0.orig/tests/test__default.py
|
||||||
|
+++ google-auth-2.23.0/tests/test__default.py
|
||||||
@@ -15,7 +15,7 @@
|
@@ -15,7 +15,7 @@
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
@ -190,21 +206,23 @@ diff -Nru google-auth-2.20.0.orig/tests/test__default.py google-auth-2.20.0/test
|
|||||||
import pytest # type: ignore
|
import pytest # type: ignore
|
||||||
|
|
||||||
from google.auth import _default
|
from google.auth import _default
|
||||||
diff -Nru google-auth-2.20.0.orig/tests/test_downscoped.py google-auth-2.20.0/tests/test_downscoped.py
|
Index: google-auth-2.23.0/tests/test_downscoped.py
|
||||||
--- google-auth-2.20.0.orig/tests/test_downscoped.py 2023-06-13 19:48:05.000000000 +0200
|
===================================================================
|
||||||
+++ google-auth-2.20.0/tests/test_downscoped.py 2023-06-20 15:13:30.093674163 +0200
|
--- google-auth-2.23.0.orig/tests/test_downscoped.py
|
||||||
@@ -15,7 +15,7 @@
|
+++ google-auth-2.23.0/tests/test_downscoped.py
|
||||||
import datetime
|
@@ -17,7 +17,7 @@ import http.client as http_client
|
||||||
import json
|
import json
|
||||||
|
import urllib
|
||||||
|
|
||||||
-import mock
|
-import mock
|
||||||
+from unittest import mock
|
+from unittest import mock
|
||||||
import pytest # type: ignore
|
import pytest # type: ignore
|
||||||
from six.moves import http_client
|
|
||||||
from six.moves import urllib
|
from google.auth import _helpers
|
||||||
diff -Nru google-auth-2.20.0.orig/tests/test__exponential_backoff.py google-auth-2.20.0/tests/test__exponential_backoff.py
|
Index: google-auth-2.23.0/tests/test__exponential_backoff.py
|
||||||
--- google-auth-2.20.0.orig/tests/test__exponential_backoff.py 2023-06-13 19:48:05.000000000 +0200
|
===================================================================
|
||||||
+++ google-auth-2.20.0/tests/test__exponential_backoff.py 2023-06-20 15:13:30.017673245 +0200
|
--- google-auth-2.23.0.orig/tests/test__exponential_backoff.py
|
||||||
|
+++ google-auth-2.23.0/tests/test__exponential_backoff.py
|
||||||
@@ -12,7 +12,7 @@
|
@@ -12,7 +12,7 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
@ -214,70 +232,63 @@ diff -Nru google-auth-2.20.0.orig/tests/test__exponential_backoff.py google-auth
|
|||||||
|
|
||||||
from google.auth import _exponential_backoff
|
from google.auth import _exponential_backoff
|
||||||
|
|
||||||
diff -Nru google-auth-2.20.0.orig/tests/test_external_account_authorized_user.py google-auth-2.20.0/tests/test_external_account_authorized_user.py
|
Index: google-auth-2.23.0/tests/test_external_account_authorized_user.py
|
||||||
--- google-auth-2.20.0.orig/tests/test_external_account_authorized_user.py 2023-06-13 19:48:05.000000000 +0200
|
===================================================================
|
||||||
+++ google-auth-2.20.0/tests/test_external_account_authorized_user.py 2023-06-20 15:13:30.089674115 +0200
|
--- google-auth-2.23.0.orig/tests/test_external_account_authorized_user.py
|
||||||
@@ -15,7 +15,7 @@
|
+++ google-auth-2.23.0/tests/test_external_account_authorized_user.py
|
||||||
import datetime
|
@@ -16,7 +16,7 @@ import datetime
|
||||||
|
import http.client as http_client
|
||||||
import json
|
import json
|
||||||
|
|
||||||
-import mock
|
-import mock
|
||||||
+from unittest import mock
|
+from unittest import mock
|
||||||
import pytest # type: ignore
|
import pytest # type: ignore
|
||||||
from six.moves import http_client
|
|
||||||
|
|
||||||
diff -Nru google-auth-2.20.0.orig/tests/test_external_account.py google-auth-2.20.0/tests/test_external_account.py
|
from google.auth import exceptions
|
||||||
--- google-auth-2.20.0.orig/tests/test_external_account.py 2023-06-13 19:48:05.000000000 +0200
|
Index: google-auth-2.23.0/tests/test_external_account.py
|
||||||
+++ google-auth-2.20.0/tests/test_external_account.py 2023-06-20 15:13:30.021673293 +0200
|
===================================================================
|
||||||
@@ -15,7 +15,7 @@
|
--- google-auth-2.23.0.orig/tests/test_external_account.py
|
||||||
import datetime
|
+++ google-auth-2.23.0/tests/test_external_account.py
|
||||||
|
@@ -17,7 +17,7 @@ import http.client as http_client
|
||||||
|
import json
|
||||||
|
import urllib
|
||||||
|
|
||||||
|
-import mock
|
||||||
|
+from unittest import mock
|
||||||
|
import pytest # type: ignore
|
||||||
|
|
||||||
|
from google.auth import _helpers
|
||||||
|
Index: google-auth-2.23.0/tests/test_iam.py
|
||||||
|
===================================================================
|
||||||
|
--- google-auth-2.23.0.orig/tests/test_iam.py
|
||||||
|
+++ google-auth-2.23.0/tests/test_iam.py
|
||||||
|
@@ -17,7 +17,7 @@ import datetime
|
||||||
|
import http.client as http_client
|
||||||
import json
|
import json
|
||||||
|
|
||||||
-import mock
|
-import mock
|
||||||
+from unittest import mock
|
+from unittest import mock
|
||||||
import pytest # type: ignore
|
import pytest # type: ignore
|
||||||
from six.moves import http_client
|
|
||||||
from six.moves import urllib
|
|
||||||
diff -Nru google-auth-2.20.0.orig/tests/test_iam.py google-auth-2.20.0/tests/test_iam.py
|
|
||||||
--- google-auth-2.20.0.orig/tests/test_iam.py 2023-06-13 19:48:05.000000000 +0200
|
|
||||||
+++ google-auth-2.20.0/tests/test_iam.py 2023-06-20 15:13:30.101674260 +0200
|
|
||||||
@@ -16,7 +16,7 @@
|
|
||||||
import datetime
|
|
||||||
import json
|
|
||||||
|
|
||||||
-import mock
|
from google.auth import _helpers
|
||||||
+from unittest import mock
|
Index: google-auth-2.23.0/tests/test_identity_pool.py
|
||||||
import pytest # type: ignore
|
===================================================================
|
||||||
from six.moves import http_client
|
--- google-auth-2.23.0.orig/tests/test_identity_pool.py
|
||||||
|
+++ google-auth-2.23.0/tests/test_identity_pool.py
|
||||||
diff -Nru google-auth-2.20.0.orig/tests/test_identity_pool.py google-auth-2.20.0/tests/test_identity_pool.py
|
@@ -18,7 +18,7 @@ import json
|
||||||
--- google-auth-2.20.0.orig/tests/test_identity_pool.py 2023-06-13 19:48:05.000000000 +0200
|
|
||||||
+++ google-auth-2.20.0/tests/test_identity_pool.py 2023-06-20 15:13:30.101674260 +0200
|
|
||||||
@@ -16,7 +16,7 @@
|
|
||||||
import json
|
|
||||||
import os
|
import os
|
||||||
|
import urllib
|
||||||
|
|
||||||
-import mock
|
-import mock
|
||||||
+from unittest import mock
|
+from unittest import mock
|
||||||
import pytest # type: ignore
|
import pytest # type: ignore
|
||||||
from six.moves import http_client
|
|
||||||
from six.moves import urllib
|
|
||||||
diff -Nru google-auth-2.20.0.orig/tests/test_impersonated_credentials.py google-auth-2.20.0/tests/test_impersonated_credentials.py
|
|
||||||
--- google-auth-2.20.0.orig/tests/test_impersonated_credentials.py 2023-06-13 19:48:05.000000000 +0200
|
|
||||||
+++ google-auth-2.20.0/tests/test_impersonated_credentials.py 2023-06-20 15:13:30.121674501 +0200
|
|
||||||
@@ -19,7 +19,7 @@
|
|
||||||
# Because Python 2.7
|
|
||||||
# from typing import List
|
|
||||||
|
|
||||||
-import mock
|
from google.auth import _helpers
|
||||||
+from unittest import mock
|
Index: google-auth-2.23.0/tests/test_impersonated_credentials.py
|
||||||
import pytest # type: ignore
|
===================================================================
|
||||||
from six.moves import http_client
|
--- google-auth-2.23.0.orig/tests/test_impersonated_credentials.py
|
||||||
|
+++ google-auth-2.23.0/tests/test_impersonated_credentials.py
|
||||||
diff -Nru google-auth-2.20.0.orig/tests/test_jwt.py google-auth-2.20.0/tests/test_jwt.py
|
@@ -17,7 +17,7 @@ import http.client as http_client
|
||||||
--- google-auth-2.20.0.orig/tests/test_jwt.py 2023-06-13 19:48:05.000000000 +0200
|
|
||||||
+++ google-auth-2.20.0/tests/test_jwt.py 2023-06-20 15:13:30.105674308 +0200
|
|
||||||
@@ -17,7 +17,7 @@
|
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
|
||||||
@ -286,9 +297,23 @@ diff -Nru google-auth-2.20.0.orig/tests/test_jwt.py google-auth-2.20.0/tests/tes
|
|||||||
import pytest # type: ignore
|
import pytest # type: ignore
|
||||||
|
|
||||||
from google.auth import _helpers
|
from google.auth import _helpers
|
||||||
diff -Nru google-auth-2.20.0.orig/tests/test_metrics.py google-auth-2.20.0/tests/test_metrics.py
|
Index: google-auth-2.23.0/tests/test_jwt.py
|
||||||
--- google-auth-2.20.0.orig/tests/test_metrics.py 2023-06-13 19:48:05.000000000 +0200
|
===================================================================
|
||||||
+++ google-auth-2.20.0/tests/test_metrics.py 2023-06-20 15:13:30.057673728 +0200
|
--- google-auth-2.23.0.orig/tests/test_jwt.py
|
||||||
|
+++ google-auth-2.23.0/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
|
||||||
|
Index: google-auth-2.23.0/tests/test_metrics.py
|
||||||
|
===================================================================
|
||||||
|
--- google-auth-2.23.0.orig/tests/test_metrics.py
|
||||||
|
+++ google-auth-2.23.0/tests/test_metrics.py
|
||||||
@@ -14,7 +14,7 @@
|
@@ -14,7 +14,7 @@
|
||||||
|
|
||||||
import platform
|
import platform
|
||||||
@ -298,22 +323,24 @@ diff -Nru google-auth-2.20.0.orig/tests/test_metrics.py google-auth-2.20.0/tests
|
|||||||
|
|
||||||
from google.auth import metrics
|
from google.auth import metrics
|
||||||
from google.auth import version
|
from google.auth import version
|
||||||
diff -Nru google-auth-2.20.0.orig/tests/test__oauth2client.py google-auth-2.20.0/tests/test__oauth2client.py
|
Index: google-auth-2.23.0/tests/test__oauth2client.py
|
||||||
--- google-auth-2.20.0.orig/tests/test__oauth2client.py 2023-06-13 19:48:05.000000000 +0200
|
===================================================================
|
||||||
+++ google-auth-2.20.0/tests/test__oauth2client.py 2023-06-20 15:13:30.049673631 +0200
|
--- google-auth-2.23.0.orig/tests/test__oauth2client.py
|
||||||
@@ -16,7 +16,7 @@
|
+++ google-auth-2.23.0/tests/test__oauth2client.py
|
||||||
|
@@ -17,7 +17,7 @@ import importlib
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
-import mock
|
-import mock
|
||||||
+from unittest import mock
|
+from unittest import mock
|
||||||
import pytest # type: ignore
|
import pytest # type: ignore
|
||||||
from six.moves import reload_module
|
|
||||||
|
|
||||||
diff -Nru google-auth-2.20.0.orig/tests/test_pluggable.py google-auth-2.20.0/tests/test_pluggable.py
|
try:
|
||||||
--- google-auth-2.20.0.orig/tests/test_pluggable.py 2023-06-13 19:48:05.000000000 +0200
|
Index: google-auth-2.23.0/tests/test_pluggable.py
|
||||||
+++ google-auth-2.20.0/tests/test_pluggable.py 2023-06-20 15:13:30.125674549 +0200
|
===================================================================
|
||||||
@@ -17,7 +17,7 @@
|
--- google-auth-2.23.0.orig/tests/test_pluggable.py
|
||||||
|
+++ google-auth-2.23.0/tests/test_pluggable.py
|
||||||
|
@@ -16,7 +16,7 @@ import json
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
@ -321,11 +348,12 @@ diff -Nru google-auth-2.20.0.orig/tests/test_pluggable.py google-auth-2.20.0/tes
|
|||||||
+from unittest import mock
|
+from unittest import mock
|
||||||
import pytest # type: ignore
|
import pytest # type: ignore
|
||||||
|
|
||||||
# from six.moves import http_client
|
from google.auth import exceptions
|
||||||
diff -Nru google-auth-2.20.0.orig/tests/transport/test__custom_tls_signer.py google-auth-2.20.0/tests/transport/test__custom_tls_signer.py
|
Index: google-auth-2.23.0/tests/transport/test__custom_tls_signer.py
|
||||||
--- google-auth-2.20.0.orig/tests/transport/test__custom_tls_signer.py 2023-06-13 19:48:05.000000000 +0200
|
===================================================================
|
||||||
+++ google-auth-2.20.0/tests/transport/test__custom_tls_signer.py 2023-06-20 15:13:30.029673390 +0200
|
--- google-auth-2.23.0.orig/tests/transport/test__custom_tls_signer.py
|
||||||
@@ -16,7 +16,7 @@
|
+++ google-auth-2.23.0/tests/transport/test__custom_tls_signer.py
|
||||||
|
@@ -16,7 +16,7 @@ import base64
|
||||||
import ctypes
|
import ctypes
|
||||||
import os
|
import os
|
||||||
|
|
||||||
@ -334,10 +362,11 @@ diff -Nru google-auth-2.20.0.orig/tests/transport/test__custom_tls_signer.py goo
|
|||||||
import pytest # type: ignore
|
import pytest # type: ignore
|
||||||
from requests.packages.urllib3.util.ssl_ import create_urllib3_context # type: ignore
|
from requests.packages.urllib3.util.ssl_ import create_urllib3_context # type: ignore
|
||||||
import urllib3.contrib.pyopenssl # type: ignore
|
import urllib3.contrib.pyopenssl # type: ignore
|
||||||
diff -Nru google-auth-2.20.0.orig/tests/transport/test_grpc.py google-auth-2.20.0/tests/transport/test_grpc.py
|
Index: google-auth-2.23.0/tests/transport/test_grpc.py
|
||||||
--- google-auth-2.20.0.orig/tests/transport/test_grpc.py 2023-06-13 19:48:05.000000000 +0200
|
===================================================================
|
||||||
+++ google-auth-2.20.0/tests/transport/test_grpc.py 2023-06-20 15:13:30.029673390 +0200
|
--- google-auth-2.23.0.orig/tests/transport/test_grpc.py
|
||||||
@@ -16,7 +16,7 @@
|
+++ google-auth-2.23.0/tests/transport/test_grpc.py
|
||||||
|
@@ -16,7 +16,7 @@ import datetime
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
|
||||||
@ -346,9 +375,10 @@ diff -Nru google-auth-2.20.0.orig/tests/transport/test_grpc.py google-auth-2.20.
|
|||||||
import pytest # type: ignore
|
import pytest # type: ignore
|
||||||
|
|
||||||
from google.auth import _helpers
|
from google.auth import _helpers
|
||||||
diff -Nru google-auth-2.20.0.orig/tests/transport/test__mtls_helper.py google-auth-2.20.0/tests/transport/test__mtls_helper.py
|
Index: google-auth-2.23.0/tests/transport/test__mtls_helper.py
|
||||||
--- google-auth-2.20.0.orig/tests/transport/test__mtls_helper.py 2023-06-13 19:48:05.000000000 +0200
|
===================================================================
|
||||||
+++ google-auth-2.20.0/tests/transport/test__mtls_helper.py 2023-06-20 15:13:30.037673486 +0200
|
--- google-auth-2.23.0.orig/tests/transport/test__mtls_helper.py
|
||||||
|
+++ google-auth-2.23.0/tests/transport/test__mtls_helper.py
|
||||||
@@ -15,7 +15,7 @@
|
@@ -15,7 +15,7 @@
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
@ -358,9 +388,10 @@ diff -Nru google-auth-2.20.0.orig/tests/transport/test__mtls_helper.py google-au
|
|||||||
from OpenSSL import crypto
|
from OpenSSL import crypto
|
||||||
import pytest # type: ignore
|
import pytest # type: ignore
|
||||||
|
|
||||||
diff -Nru google-auth-2.20.0.orig/tests/transport/test_mtls.py google-auth-2.20.0/tests/transport/test_mtls.py
|
Index: google-auth-2.23.0/tests/transport/test_mtls.py
|
||||||
--- google-auth-2.20.0.orig/tests/transport/test_mtls.py 2023-06-13 19:48:05.000000000 +0200
|
===================================================================
|
||||||
+++ google-auth-2.20.0/tests/transport/test_mtls.py 2023-06-20 15:13:30.037673486 +0200
|
--- google-auth-2.23.0.orig/tests/transport/test_mtls.py
|
||||||
|
+++ google-auth-2.23.0/tests/transport/test_mtls.py
|
||||||
@@ -12,7 +12,7 @@
|
@@ -12,7 +12,7 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
@ -370,10 +401,11 @@ diff -Nru google-auth-2.20.0.orig/tests/transport/test_mtls.py google-auth-2.20.
|
|||||||
import pytest # type: ignore
|
import pytest # type: ignore
|
||||||
|
|
||||||
from google.auth import exceptions
|
from google.auth import exceptions
|
||||||
diff -Nru google-auth-2.20.0.orig/tests/transport/test_requests.py google-auth-2.20.0/tests/transport/test_requests.py
|
Index: google-auth-2.23.0/tests/transport/test_requests.py
|
||||||
--- google-auth-2.20.0.orig/tests/transport/test_requests.py 2023-06-13 19:48:05.000000000 +0200
|
===================================================================
|
||||||
+++ google-auth-2.20.0/tests/transport/test_requests.py 2023-06-20 15:13:30.041673535 +0200
|
--- google-auth-2.23.0.orig/tests/transport/test_requests.py
|
||||||
@@ -18,7 +18,7 @@
|
+++ google-auth-2.23.0/tests/transport/test_requests.py
|
||||||
|
@@ -19,7 +19,7 @@ import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import freezegun
|
import freezegun
|
||||||
@ -382,10 +414,11 @@ diff -Nru google-auth-2.20.0.orig/tests/transport/test_requests.py google-auth-2
|
|||||||
import OpenSSL
|
import OpenSSL
|
||||||
import pytest # type: ignore
|
import pytest # type: ignore
|
||||||
import requests
|
import requests
|
||||||
diff -Nru google-auth-2.20.0.orig/tests/transport/test_urllib3.py google-auth-2.20.0/tests/transport/test_urllib3.py
|
Index: google-auth-2.23.0/tests/transport/test_urllib3.py
|
||||||
--- google-auth-2.20.0.orig/tests/transport/test_urllib3.py 2023-06-13 19:48:05.000000000 +0200
|
===================================================================
|
||||||
+++ google-auth-2.20.0/tests/transport/test_urllib3.py 2023-06-20 15:13:30.025673341 +0200
|
--- google-auth-2.23.0.orig/tests/transport/test_urllib3.py
|
||||||
@@ -15,7 +15,7 @@
|
+++ google-auth-2.23.0/tests/transport/test_urllib3.py
|
||||||
|
@@ -16,7 +16,7 @@ import http.client as http_client
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
@ -393,4 +426,4 @@ diff -Nru google-auth-2.20.0.orig/tests/transport/test_urllib3.py google-auth-2.
|
|||||||
+from unittest import mock
|
+from unittest import mock
|
||||||
import OpenSSL
|
import OpenSSL
|
||||||
import pytest # type: ignore
|
import pytest # type: ignore
|
||||||
from six.moves import http_client
|
import urllib3 # type: ignore
|
||||||
|
@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 21 12:09:25 UTC 2023 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||||
|
|
||||||
|
- refresh python-google-auth-no-mock.patch
|
||||||
|
- update to 2.23.0
|
||||||
|
* Expose universe domain in credentials
|
||||||
|
* Make external_account resistant to string type 'expires_in' responses from non-compliant services
|
||||||
|
* Missing ssj for impersonate cred ()
|
||||||
|
* Skip checking projectid on cred if env var is set
|
||||||
|
* Add get_bq_config_path() to _cloud_sdk.py
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Aug 14 09:05:07 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
Mon Aug 14 09:05:07 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -16,10 +16,9 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define skip_python2 1
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-google-auth
|
Name: python-google-auth
|
||||||
Version: 2.22.0
|
Version: 2.23.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Google Authentication Library
|
Summary: Google Authentication Library
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
@ -28,11 +27,11 @@ Source: https://files.pythonhosted.org/packages/source/g/google-auth/goo
|
|||||||
# https://github.com/googleapis/google-auth-library-python/issues/1055
|
# https://github.com/googleapis/google-auth-library-python/issues/1055
|
||||||
Patch1: python-google-auth-no-mock.patch
|
Patch1: python-google-auth-no-mock.patch
|
||||||
BuildRequires: %{python_module Flask}
|
BuildRequires: %{python_module Flask}
|
||||||
# START TESTING SECTION
|
|
||||||
BuildRequires: %{python_module aiohttp >= 3.6.2}
|
BuildRequires: %{python_module aiohttp >= 3.6.2}
|
||||||
BuildRequires: %{python_module cachetools >= 2.0.0}
|
BuildRequires: %{python_module cachetools >= 2.0.0}
|
||||||
|
BuildRequires: %{python_module cryptography}
|
||||||
BuildRequires: %{python_module freezegun}
|
BuildRequires: %{python_module freezegun}
|
||||||
BuildRequires: %{python_module pyOpenSSL >= 20.0.0}
|
BuildRequires: %{python_module pyOpenSSL >= 22.0.0}
|
||||||
BuildRequires: %{python_module pyasn1-modules >= 0.2.1}
|
BuildRequires: %{python_module pyasn1-modules >= 0.2.1}
|
||||||
BuildRequires: %{python_module pytest-localserver}
|
BuildRequires: %{python_module pytest-localserver}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
@ -41,21 +40,18 @@ BuildRequires: %{python_module requests >= 2.20.0}
|
|||||||
BuildRequires: %{python_module responses}
|
BuildRequires: %{python_module responses}
|
||||||
BuildRequires: %{python_module rsa >= 3.1.4}
|
BuildRequires: %{python_module rsa >= 3.1.4}
|
||||||
BuildRequires: %{python_module setuptools >= 40.3.0}
|
BuildRequires: %{python_module setuptools >= 40.3.0}
|
||||||
BuildRequires: %{python_module six >= 1.9.0}
|
BuildRequires: %{python_module urllib3 < 2}
|
||||||
# END TESTING SECTION
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-cachetools >= 2.0.0
|
Requires: python-cachetools >= 2.0.0
|
||||||
Requires: python-cryptography >= 38.0.3
|
|
||||||
Requires: python-pyasn1-modules >= 0.2.1
|
Requires: python-pyasn1-modules >= 0.2.1
|
||||||
Requires: python-rsa >= 3.1.4
|
Requires: python-rsa >= 3.1.4
|
||||||
Requires: python-setuptools >= 40.3.0
|
Requires: python-urllib3 < 2
|
||||||
Requires: python-six >= 1.9.0
|
|
||||||
Recommends: python-aiohttp >= 3.6.2
|
Recommends: python-aiohttp >= 3.6.2
|
||||||
Recommends: python-pyOpenSSL >= 20.0.0
|
Recommends: python-cryptography >= 38.0.3
|
||||||
|
Recommends: python-pyOpenSSL >= 22.0.0
|
||||||
Recommends: python-pyu2f >= 0.1.5
|
Recommends: python-pyu2f >= 0.1.5
|
||||||
Recommends: python-requests >= 2.20.0
|
Recommends: python-requests >= 2.20.0
|
||||||
Recommends: python-urllib3
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user