git: a356c161de52 - main - www/py-google-api-python-client: Update to 2.137.0

From: Nicola Vitale <nivit_at_FreeBSD.org>
Date: Sun, 14 Jul 2024 16:18:57 UTC
The branch main has been updated by nivit:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a356c161de5247378c7aeb48f2707a94d1b20d10

commit a356c161de5247378c7aeb48f2707a94d1b20d10
Author:     Nicola Vitale <nivit@FreeBSD.org>
AuthorDate: 2024-07-14 16:13:52 +0000
Commit:     Nicola Vitale <nivit@FreeBSD.org>
CommitDate: 2024-07-14 16:18:51 +0000

    www/py-google-api-python-client: Update to 2.137.0
    
    - Define DISTNAME because the upstream renamed the distribution file
      (it is conform to PEP 625 now)
    - Use pytest for testing the library
    - Ignore a couple of test, because they require Application Default
      Credentials to pass
    
    Release changes:        https://github.com/googleapis/google-api-python-client/releases/tag/v2.137.0
    Reported by:    release-please[bot] <notifications@github.com>
---
 www/py-google-api-python-client/Makefile | 10 +++++++---
 www/py-google-api-python-client/distinfo |  6 +++---
 2 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/www/py-google-api-python-client/Makefile b/www/py-google-api-python-client/Makefile
index 26a6e3796c97..f57a3a2e1910 100644
--- a/www/py-google-api-python-client/Makefile
+++ b/www/py-google-api-python-client/Makefile
@@ -1,9 +1,9 @@
 PORTNAME=	google-api-python-client
-DISTVERSION=	2.136.0
-PORTREVISION=	0
+DISTVERSION=	2.137.0
 CATEGORIES=	www python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	${PORTNAME:S/-/_/g}-${DISTVERSIONFULL}
 
 MAINTAINER=	nivit@FreeBSD.org
 COMMENT=	Google API Client Library for Python
@@ -26,8 +26,12 @@ TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}google-api-core>=1.31.5:www/py-google-api-c
 		${PYTHON_PKGNAMEPREFIX}parameterized>=0.8.1:devel/py-parameterized@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}uritemplate>=3.0.1:net/py-uritemplate@${PY_FLAVOR}
 
-USES=		python
+# 317 passed, 1 skipped, 2 deselected
+USES=		pytest python
 USE_PYTHON=	autoplist distutils unittest
+# Require Application Default Credentials, see https://cloud.google.com/docs/authentication/external/set-up-adc
+PYTEST_IGNORED_TESTS=	test_universe_env_var_configured_with_mtls \
+			test_client_options_universe_configured_with_mtls
 
 NO_ARCH=	yes
 
diff --git a/www/py-google-api-python-client/distinfo b/www/py-google-api-python-client/distinfo
index d5cac8984f19..f511e1e60b72 100644
--- a/www/py-google-api-python-client/distinfo
+++ b/www/py-google-api-python-client/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1720025526
-SHA256 (google-api-python-client-2.136.0.tar.gz) = 161c722c8864e7ed39393e2b7eea76ef4e1c933a6a59f9d7c70409b6635f225d
-SIZE (google-api-python-client-2.136.0.tar.gz) = 11443821
+TIMESTAMP = 1720971915
+SHA256 (google_api_python_client-2.137.0.tar.gz) = e739cb74aac8258b1886cb853b0722d47c81fe07ad649d7f2206f06530513c04
+SIZE (google_api_python_client-2.137.0.tar.gz) = 11477114