[arch-commits] Commit in python-google-auth/repos/community-any (4 files)

Felix Yan felixonmars at gemini.archlinux.org
Tue Aug 30 11:12:31 UTC 2022


    Date: Tuesday, August 30, 2022 @ 11:12:31
  Author: felixonmars
Revision: 1288613

archrelease: copy trunk to community-any

Added:
  python-google-auth/repos/community-any/PKGBUILD
    (from rev 1288612, python-google-auth/trunk/PKGBUILD)
  python-google-auth/repos/community-any/pytest5.patch
    (from rev 1288612, python-google-auth/trunk/pytest5.patch)
Deleted:
  python-google-auth/repos/community-any/PKGBUILD
  python-google-auth/repos/community-any/pytest5.patch

---------------+
 PKGBUILD      |   89 ++++++++++++++++++++++++++++----------------------------
 pytest5.patch |   36 +++++++++++-----------
 2 files changed, 63 insertions(+), 62 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-30 11:12:16 UTC (rev 1288612)
+++ PKGBUILD	2022-08-30 11:12:31 UTC (rev 1288613)
@@ -1,44 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-google-auth
-pkgver=1.34.0
-pkgrel=4
-pkgdesc="Google Authentication Library"
-url="https://github.com/GoogleCloudPlatform/google-auth-library-python"
-license=('Apache')
-arch=('any')
-depends=('ca-certificates' 'python-pyasn1-modules' 'python-rsa' 'python-setuptools'
-         'python-cachetools')
-checkdepends=('python-pytest' 'python-mock' 'python-requests' 'python-flask'
-              'python-oauth2client' 'python-pytest-localserver' 'python-cryptography'
-              'python-freezegun' 'python-responses' 'python-pyopenssl' 'python-pyu2f')
-source=("https://github.com/GoogleCloudPlatform/google-auth-library-python/archive/v$pkgver/$pkgname-$pkgver.tar.gz"
-        $pkgname-cachetools-5.patch::https://github.com/googleapis/google-auth-library-python/commit/1eae37db7f6fceb32d6ef0041962ce1755d2116c.patch)
-sha512sums=('658643389ffc891d4bfab50a2c95acbe48165b87d6b096fc8e7ea5d6bf39d340adaa6d0d4e1ebcc96056d215e64950c0a76cc6f9e3f050f774f6d84c22e57cb0'
-            'f51c25c7168ebc89eef985ab3f8898844c7c51128075d7d35a6cb8fecaedd1142316921a9473531cfe2b02d3a3845e2d96812367b6eb51c166d709a7f2bfe6ae')
-
-prepare() {
-  # Use system cert
-  sed -i -e 's|certifi.where()|"/etc/ssl/certs/ca-certificates.crt"|' \
-         -e 's|if certifi is not None:|if True:|' \
-         -e 's|import certifi|pass|' \
-         google-auth-library-python-$pkgver/google/auth/transport/{urllib3,requests}.py
-  patch -d google-auth-library-python-$pkgver -p1 < $pkgname-cachetools-5.patch
-}
-
-build() {
-  cd google-auth-library-python-$pkgver
-  python setup.py build
-}
-
-check() {
-  # Skip the without_certifi tests because we always have the system ca bundle
-
-  cd google-auth-library-python-$pkgver
-  python -m pytest tests --deselect tests/transport/test_urllib3.py::test__make_default_http_without_certifi
-}
-
-package() {
-  cd google-auth-library-python-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-}

Copied: python-google-auth/repos/community-any/PKGBUILD (from rev 1288612, python-google-auth/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-08-30 11:12:31 UTC (rev 1288613)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-google-auth
+pkgver=1.35.0
+pkgrel=1
+pkgdesc="Google Authentication Library"
+url="https://github.com/GoogleCloudPlatform/google-auth-library-python"
+license=('Apache')
+arch=('any')
+depends=('ca-certificates' 'python-pyasn1-modules' 'python-rsa' 'python-setuptools'
+         'python-cachetools')
+checkdepends=('python-pytest' 'python-mock' 'python-requests' 'python-flask'
+              'python-oauth2client' 'python-pytest-localserver' 'python-cryptography'
+              'python-freezegun' 'python-responses' 'python-pyopenssl' 'python-pyu2f')
+source=("https://github.com/GoogleCloudPlatform/google-auth-library-python/archive/v$pkgver/$pkgname-$pkgver.tar.gz"
+        $pkgname-cachetools-5.patch::https://github.com/googleapis/google-auth-library-python/commit/1eae37db7f6fceb32d6ef0041962ce1755d2116c.patch)
+sha512sums=('6f849f390187411ab108e60c25e1ba33dd02520e9fbe6327e31eb78f1bc3c2ab262cb0ae6558ce07c21a6e0b11f695afc3e7bb9161df526f6c6f237c447e921e'
+            'f51c25c7168ebc89eef985ab3f8898844c7c51128075d7d35a6cb8fecaedd1142316921a9473531cfe2b02d3a3845e2d96812367b6eb51c166d709a7f2bfe6ae')
+
+prepare() {
+  # Use system cert
+  sed -i -e 's|certifi.where()|"/etc/ssl/certs/ca-certificates.crt"|' \
+         -e 's|if certifi is not None:|if True:|' \
+         -e 's|import certifi|pass|' \
+         google-auth-library-python-$pkgver/google/auth/transport/{urllib3,requests}.py
+  patch -d google-auth-library-python-$pkgver -p1 < $pkgname-cachetools-5.patch
+  sed -i 's|utils.int_from_bytes|int.from_bytes|' google-auth-library-python-$pkgver/google/auth/crypt/es256.py
+}
+
+build() {
+  cd google-auth-library-python-$pkgver
+  python setup.py build
+}
+
+check() {
+  # Skip the without_certifi tests because we always have the system ca bundle
+
+  cd google-auth-library-python-$pkgver
+  python -m pytest tests --deselect tests/transport/test_urllib3.py::test__make_default_http_without_certifi
+}
+
+package() {
+  cd google-auth-library-python-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}

Deleted: pytest5.patch
===================================================================
--- pytest5.patch	2022-08-30 11:12:16 UTC (rev 1288612)
+++ pytest5.patch	2022-08-30 11:12:31 UTC (rev 1288613)
@@ -1,18 +0,0 @@
-From 938e5d933aee963a6b28d6cf9e34e0634c8c4a29 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= <tomas.chvatal at gmail.com>
-Date: Fri, 26 Jul 2019 01:20:41 +0200
-Subject: [PATCH] Use new pytest api to keep building with pytest 5 (#353)
-
-diff --git a/tests/test__default.py b/tests/test__default.py
-index 3fb0fa1..d143479 100644
---- a/tests/test__default.py
-+++ b/tests/test__default.py
-@@ -92,7 +92,7 @@ def test__load_credentials_from_file_authorized_user_bad_format(tmpdir):
- 
- 
- def test__load_credentials_from_file_authorized_user_cloud_sdk():
--    with pytest.warns(UserWarning, matches='Cloud SDK'):
-+    with pytest.warns(UserWarning, match='Cloud SDK'):
-         credentials, project_id = _default._load_credentials_from_file(
-             AUTHORIZED_USER_CLOUD_SDK_FILE)
-     assert isinstance(credentials, google.oauth2.credentials.Credentials)

Copied: python-google-auth/repos/community-any/pytest5.patch (from rev 1288612, python-google-auth/trunk/pytest5.patch)
===================================================================
--- pytest5.patch	                        (rev 0)
+++ pytest5.patch	2022-08-30 11:12:31 UTC (rev 1288613)
@@ -0,0 +1,18 @@
+From 938e5d933aee963a6b28d6cf9e34e0634c8c4a29 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= <tomas.chvatal at gmail.com>
+Date: Fri, 26 Jul 2019 01:20:41 +0200
+Subject: [PATCH] Use new pytest api to keep building with pytest 5 (#353)
+
+diff --git a/tests/test__default.py b/tests/test__default.py
+index 3fb0fa1..d143479 100644
+--- a/tests/test__default.py
++++ b/tests/test__default.py
+@@ -92,7 +92,7 @@ def test__load_credentials_from_file_authorized_user_bad_format(tmpdir):
+ 
+ 
+ def test__load_credentials_from_file_authorized_user_cloud_sdk():
+-    with pytest.warns(UserWarning, matches='Cloud SDK'):
++    with pytest.warns(UserWarning, match='Cloud SDK'):
+         credentials, project_id = _default._load_credentials_from_file(
+             AUTHORIZED_USER_CLOUD_SDK_FILE)
+     assert isinstance(credentials, google.oauth2.credentials.Credentials)



More information about the arch-commits mailing list