Date: Wednesday, February 20, 2019 @ 06:45:48 Author: felixonmars Revision: 434664
archrelease: copy trunk to community-any Added: python-google-auth/repos/community-any/PKGBUILD (from rev 434663, python-google-auth/trunk/PKGBUILD) Deleted: python-google-auth/repos/community-any/PKGBUILD ----------+ PKGBUILD | 118 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 59 insertions(+), 59 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2019-02-20 06:45:28 UTC (rev 434663) +++ PKGBUILD 2019-02-20 06:45:48 UTC (rev 434664) @@ -1,59 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgbase=python-google-auth -pkgname=(python-google-auth python2-google-auth) -pkgver=1.6.2 -pkgrel=1 -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') -source=("$pkgbase-$pkgver.tar.gz::https://github.com/GoogleCloudPlatform/google-auth-library-python/archive/v$pkgver.tar.gz") -sha512sums=('765615e1926c3ce9ca465848d0045afd591be1a8a6586f0f217a31b0c77b46f471a3cebd5f6fd99d71d4795ce139a40afef8bb0af65d93e6d7033dd1360c064f') - -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 - 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() { - # Skip the without_certifi tests because we always have the system ca bundle - - 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') - - 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 -} Copied: python-google-auth/repos/community-any/PKGBUILD (from rev 434663, python-google-auth/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2019-02-20 06:45:48 UTC (rev 434664) @@ -0,0 +1,59 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-google-auth +pkgname=(python-google-auth python2-google-auth) +pkgver=1.6.3 +pkgrel=1 +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') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/GoogleCloudPlatform/google-auth-library-python/archive/v$pkgver.tar.gz") +sha512sums=('3becc5301d982532d59bf6c3d0c2ebe6ea8f53b6ebdbf71d2dfc622f7933c3472102af62e43c9292c7361d458e812e8af71c7d426efbfff282f3db96de1d3374') + +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 + 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() { + # Skip the without_certifi tests because we always have the system ca bundle + + 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') + + 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 +}