From 6ad8b50af88fbfe185cea31fe9fea414d9ecd5a9 Mon Sep 17 00:00:00 2001 From: Liu Yiding Date: Tue, 13 Jan 2026 14:29:37 +0800 Subject: python3-google-auth: upgrade 2.45.0 -> 2.47.0 1. Changelog https://github.com/googleapis/google-auth-library-python/blob/main/CHANGELOG.md 2. Drop 0001-make-the-TLS-tests-skip-when-pyopenssl-isn-t-availab.patch as it was merged upstream. Signed-off-by: Liu Yiding Signed-off-by: Khem Raj --- ...S-tests-skip-when-pyopenssl-isn-t-availab.patch | 34 ---------------- .../python/python3-google-auth_2.45.0.bb | 47 ---------------------- .../python/python3-google-auth_2.47.0.bb | 46 +++++++++++++++++++++ 3 files changed, 46 insertions(+), 81 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-google-auth/0001-make-the-TLS-tests-skip-when-pyopenssl-isn-t-availab.patch delete mode 100644 meta-python/recipes-devtools/python/python3-google-auth_2.45.0.bb create mode 100644 meta-python/recipes-devtools/python/python3-google-auth_2.47.0.bb (limited to 'meta-python/recipes-devtools/python') diff --git a/meta-python/recipes-devtools/python/python3-google-auth/0001-make-the-TLS-tests-skip-when-pyopenssl-isn-t-availab.patch b/meta-python/recipes-devtools/python/python3-google-auth/0001-make-the-TLS-tests-skip-when-pyopenssl-isn-t-availab.patch deleted file mode 100644 index 5ee13f3d63..0000000000 --- a/meta-python/recipes-devtools/python/python3-google-auth/0001-make-the-TLS-tests-skip-when-pyopenssl-isn-t-availab.patch +++ /dev/null @@ -1,34 +0,0 @@ -From 35eea881e1aeb27fc12cfb301e497e72e59e720f Mon Sep 17 00:00:00 2001 -From: Khem Raj -Date: Tue, 18 Nov 2025 17:23:09 -0800 -Subject: [PATCH] make the TLS tests skip when pyopenssl isn't available - -In some distributions e.g. yocto -pyOpenSSL is a packageconfig and disabled by default, -and it means pyopenssl.py module is not installed as a result. - -This test fails plainly when it can not find urllib3.contrib.pyopenssl -instead skip the test if it does not find the module. - -Upstream-Status: Submitted [https://github.com/googleapis/google-auth-library-python/pull/1873] -Signed-off-by: Khem Raj ---- - tests/transport/test__custom_tls_signer.py | 5 ++++- - 1 file changed, 4 insertions(+), 1 deletion(-) - -diff --git a/tests/transport/test__custom_tls_signer.py b/tests/transport/test__custom_tls_signer.py -index 3a33c2c..6f88ddf 100644 ---- a/tests/transport/test__custom_tls_signer.py -+++ b/tests/transport/test__custom_tls_signer.py -@@ -18,7 +18,10 @@ import os - import mock - import pytest # type: ignore - from requests.packages.urllib3.util.ssl_ import create_urllib3_context # type: ignore --import urllib3.contrib.pyopenssl # type: ignore -+urllib3_pyopenssl = pytest.importorskip( -+ "urllib3.contrib.pyopenssl", -+ reason="urllib3.contrib.pyopenssl not available in this environment", -+) - - from google.auth import exceptions - from google.auth.transport import _custom_tls_signer diff --git a/meta-python/recipes-devtools/python/python3-google-auth_2.45.0.bb b/meta-python/recipes-devtools/python/python3-google-auth_2.45.0.bb deleted file mode 100644 index 17a9d7051e..0000000000 --- a/meta-python/recipes-devtools/python/python3-google-auth_2.45.0.bb +++ /dev/null @@ -1,47 +0,0 @@ -DESCRIPTION = "Google Authentication Library" -HOMEPAGE = "https://github.com/googleapis/google-auth-library-python" -LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" - -inherit pypi setuptools3 ptest - -SRC_URI += " \ - file://0001-make-the-TLS-tests-skip-when-pyopenssl-isn-t-availab.patch \ - file://0001-python3-google-auth-Skip-mTLS-tests-in-ptest-environ.patch \ - file://run-ptest \ -" -SRC_URI[sha256sum] = "90d3f41b6b72ea72dd9811e765699ee491ab24139f34ebf1ca2b9cc0c38708f3" - -PYPI_PACKAGE = "google_auth" -UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}" - -RDEPENDS:${PN}-ptest += " \ - python3-aioresponses \ - python3-cryptography \ - python3-flask \ - python3-freezegun \ - python3-grpcio \ - python3-mock \ - python3-pyjwt \ - python3-pyopenssl \ - python3-pytest \ - python3-pytest-asyncio \ - python3-pytest-localserver \ - python3-pyu2f \ - python3-requests \ - python3-responses \ - python3-unittest-automake-output \ - python3-unixadmin \ -" - -do_install_ptest() { - install -d ${D}${PTEST_PATH}/tests - cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ -} - -RDEPENDS:${PN} += "\ - python3-cachetools \ - python3-json \ - python3-pyasn1-modules \ - python3-rsa \ -" diff --git a/meta-python/recipes-devtools/python/python3-google-auth_2.47.0.bb b/meta-python/recipes-devtools/python/python3-google-auth_2.47.0.bb new file mode 100644 index 0000000000..3b141006a5 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-google-auth_2.47.0.bb @@ -0,0 +1,46 @@ +DESCRIPTION = "Google Authentication Library" +HOMEPAGE = "https://github.com/googleapis/google-auth-library-python" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" + +inherit pypi setuptools3 ptest + +SRC_URI += " \ + file://0001-python3-google-auth-Skip-mTLS-tests-in-ptest-environ.patch \ + file://run-ptest \ +" +SRC_URI[sha256sum] = "833229070a9dfee1a353ae9877dcd2dec069a8281a4e72e72f77d4a70ff945da" + +PYPI_PACKAGE = "google_auth" +UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}" + +RDEPENDS:${PN}-ptest += " \ + python3-aioresponses \ + python3-cryptography \ + python3-flask \ + python3-freezegun \ + python3-grpcio \ + python3-mock \ + python3-pyjwt \ + python3-pyopenssl \ + python3-pytest \ + python3-pytest-asyncio \ + python3-pytest-localserver \ + python3-pyu2f \ + python3-requests \ + python3-responses \ + python3-unittest-automake-output \ + python3-unixadmin \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +} + +RDEPENDS:${PN} += "\ + python3-cachetools \ + python3-json \ + python3-pyasn1-modules \ + python3-rsa \ +" -- cgit v1.2.3-54-g00ecf