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

Felix Yan felixonmars at archlinux.org
Fri Mar 13 22:18:22 UTC 2020


    Date: Friday, March 13, 2020 @ 22:18:21
  Author: felixonmars
Revision: 596318

archrelease: copy trunk to community-any

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

---------------+
 PKGBUILD      |   80 ++++++++++++++++++++++++++++----------------------------
 pytest5.patch |   36 ++++++++++++-------------
 2 files changed, 58 insertions(+), 58 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-13 22:18:12 UTC (rev 596317)
+++ PKGBUILD	2020-03-13 22:18:21 UTC (rev 596318)
@@ -1,40 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-google-auth
-pkgver=1.11.2
-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')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/GoogleCloudPlatform/google-auth-library-python/archive/v$pkgver.tar.gz")
-sha512sums=('adab20319fee153105385ea41983398d497aa765a7bb45e5b57ccdfbadf24501d52eeb68c316289106b879c0ab38433be35e436c57302cfb0f76073d820058b4')
-
-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:|' \
-         google-auth-library-python-$pkgver/google/auth/transport/urllib3.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
-}

Copied: python-google-auth/repos/community-any/PKGBUILD (from rev 596317, python-google-auth/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-03-13 22:18:21 UTC (rev 596318)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-google-auth
+pkgver=1.11.3
+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')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/GoogleCloudPlatform/google-auth-library-python/archive/v$pkgver.tar.gz")
+sha512sums=('fa5959d93314d431778bca83a1ae33e189e0e74237600e69ce1df5bc0374aba3f1b6751bb4ad4ec1f75fbbe25e4aa76cad552131ec8222df72adff31c55bf300')
+
+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:|' \
+         google-auth-library-python-$pkgver/google/auth/transport/urllib3.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	2020-03-13 22:18:12 UTC (rev 596317)
+++ pytest5.patch	2020-03-13 22:18:21 UTC (rev 596318)
@@ -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 596317, python-google-auth/trunk/pytest5.patch)
===================================================================
--- pytest5.patch	                        (rev 0)
+++ pytest5.patch	2020-03-13 22:18:21 UTC (rev 596318)
@@ -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