[arch-commits] Commit in python-google-auth/trunk (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Wed Jan 15 14:12:16 UTC 2020


    Date: Wednesday, January 15, 2020 @ 14:12:16
  Author: arojas
Revision: 552631

Drop python2

Modified:
  python-google-auth/trunk/PKGBUILD

----------+
 PKGBUILD |   37 ++++++++-----------------------------
 1 file changed, 8 insertions(+), 29 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-01-15 14:11:01 UTC (rev 552630)
+++ PKGBUILD	2020-01-15 14:12:16 UTC (rev 552631)
@@ -1,22 +1,17 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-google-auth
-pkgname=(python-google-auth python2-google-auth)
+pkgname=python-google-auth
 pkgver=1.10.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Google Authentication Library"
 url="https://github.com/GoogleCloudPlatform/google-auth-library-python"
 license=('Apache')
 arch=('any')
-makedepends=('ca-certificates' 'python-setuptools' 'python2-setuptools' 'python-pyasn1-modules'
-             'python2-pyasn1-modules' 'python-rsa' 'python2-rsa' 'python-six' 'python2-six'
-             'python-cachetools' 'python2-cachetools')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-mock' 'python2-mock'
-              'python-requests' 'python2-requests' 'python-flask' 'python2-flask'
-              'python-oauth2client' 'python2-oauth2client' 'python-pytest-localserver'
-              'python2-pytest-localserver' 'python-cryptography' 'python2-cryptography'
-              'python-freezegun' 'python2-freezegun')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/GoogleCloudPlatform/google-auth-library-python/archive/v$pkgver.tar.gz")
+depends=('ca-certificates' 'python-pyasn1-modules' 'python-rsa' 'python-six' 'python-cachetools')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-mock' 'python-requests' 'python-flask'
+              'python-oauth2client' 'python-pytest-localserver' 'python-cryptography' 'python-freezegun')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/GoogleCloudPlatform/google-auth-library-python/archive/v$pkgver.tar.gz")
 sha512sums=('5167e127481bf193ba93e0d4165a3f16898b9ad341832046a5acab01dc5d750aa4e553cc9f86853104878dd5c90ad502610f451d77aab8f643e71bf9e790d278')
 
 prepare() {
@@ -24,15 +19,11 @@
   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
-  cp -a google-auth-library-python-$pkgver{,-py2}
 }
 
 build() {
   cd "$srcdir"/google-auth-library-python-$pkgver
   python setup.py build
-
-  cd "$srcdir"/google-auth-library-python-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
@@ -40,21 +31,9 @@
 
   cd "$srcdir"/google-auth-library-python-$pkgver
   python setup.py pytest --addopts "tests -k 'not test__make_default_http_without_certifi'"
-
-  cd "$srcdir"/google-auth-library-python-$pkgver-py2
-  python2 setup.py pytest --addopts "tests -k 'not test__make_default_http_without_certifi'"
 }
 
-package_python-google-auth() {
-  depends=('ca-certificates' 'python-pyasn1-modules' 'python-rsa' 'python-six' 'python-cachetools')
-
+package() {
   cd google-auth-library-python-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
 }
-
-package_python2-google-auth() {
-  depends=('ca-certificates' 'python2-pyasn1-modules' 'python2-rsa' 'python2-six' 'python2-cachetools')
-
-  cd google-auth-library-python-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-}



More information about the arch-commits mailing list