Date: Saturday, October 15, 2022 @ 21:53:09
  Author: felixonmars
Revision: 1329280

archrelease: copy trunk to community-any

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

---------------+
 PKGBUILD      |   67 ++++++++++++++++++++++++++++++--------------------------
 pytest5.patch |   36 +++++++++++++++---------------
 2 files changed, 54 insertions(+), 49 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2022-10-15 21:52:58 UTC (rev 1329279)
+++ PKGBUILD    2022-10-15 21:53:09 UTC (rev 1329280)
@@ -1,31 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-
-pkgname=python-google-auth
-pkgver=2.4.0
-pkgrel=1
-pkgdesc="Google Authentication Library"
-url="https://github.com/GoogleCloudPlatform/google-auth-library-python";
-license=('Apache')
-arch=('any')
-depends=('python-cachetools' 'python-certifi' 'python-pyasn1-modules' 
'python-rsa'
-         'python-setuptools')
-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";)
-sha512sums=('8833af8b09604c8b8508299915b6c8185dfce916a3b1dc07818e487bc188345e63c942853ca4ef57eadab0926a80d70a93baa12d7d7ebaded736c49bdc1fe7a5')
-
-build() {
-  cd google-auth-library-python-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd google-auth-library-python-$pkgver
-  python -m pytest tests
-}
-
-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 1329279, 
python-google-auth/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2022-10-15 21:53:09 UTC (rev 1329280)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-google-auth
+pkgver=2.4.1
+pkgrel=1
+pkgdesc="Google Authentication Library"
+url="https://github.com/GoogleCloudPlatform/google-auth-library-python";
+license=('Apache')
+arch=('any')
+depends=('python-cachetools' 'python-certifi' 'python-pyasn1-modules' 
'python-rsa'
+         'python-setuptools')
+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";)
+sha512sums=('5c669aefed70bd6168de614660bc6a93889483467be68ddf37cdfcaedc1ba5fc2c2d12267b0f2e74943bc94292b0ed114acf98adabd83a1b23b2c8c01cb50b97')
+
+prepare() {
+  cd google-auth-library-python-$pkgver
+  sed -i 's/from requests.packages.urllib3.util.ssl_ import/from 
urllib3.util.ssl_ import/' google/auth/transport/requests.py
+}
+
+build() {
+  cd google-auth-library-python-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd google-auth-library-python-$pkgver
+  python -m pytest tests
+}
+
+package() {
+  cd google-auth-library-python-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}

Deleted: pytest5.patch
===================================================================
--- pytest5.patch       2022-10-15 21:52:58 UTC (rev 1329279)
+++ pytest5.patch       2022-10-15 21:53:09 UTC (rev 1329280)
@@ -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?= <[email protected]>
-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 1329279, 
python-google-auth/trunk/pytest5.patch)
===================================================================
--- pytest5.patch                               (rev 0)
+++ pytest5.patch       2022-10-15 21:53:09 UTC (rev 1329280)
@@ -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?= <[email protected]>
+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)

Reply via email to