diff options
Diffstat (limited to 'community/py3-google-auth-httplib2/APKBUILD')
-rw-r--r-- | community/py3-google-auth-httplib2/APKBUILD | 38 |
1 files changed, 28 insertions, 10 deletions
diff --git a/community/py3-google-auth-httplib2/APKBUILD b/community/py3-google-auth-httplib2/APKBUILD index 771f72f3691..059ea688ad9 100644 --- a/community/py3-google-auth-httplib2/APKBUILD +++ b/community/py3-google-auth-httplib2/APKBUILD @@ -2,29 +2,47 @@ # Maintainer: Keith Maxwell <keith.maxwell@gmail.com> pkgname=py3-google-auth-httplib2 _pyname=google-auth-httplib2 -pkgver=0.0.4 +pkgver=0.2.0 pkgrel=1 pkgdesc="Google Authentication Library: httplib2 transport" -url="https://github.com/GoogleCloudPlatform/google-auth-library-python-httplib2" +url="https://github.com/googleapis/google-auth-library-python-httplib2" arch="noarch" license="Apache-2.0" -depends="python3 py3-google-auth py3-httplib2 py3-six" -checkdepends="py3-flask py3-mock py3-pytest py3-pytest-localserver" +depends=" + py3-google-auth + py3-httplib2 + " +makedepends=" + py3-gpep517 + py3-setuptools + py3-wheel + " +checkdepends=" + py3-flask + py3-pytest + py3-pytest-localserver + " +subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/g/google-auth-httplib2/google-auth-httplib2-$pkgver.tar.gz" - builddir="$srcdir/$_pyname-$pkgver" - build() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } check() { - python3 setup.py test + python3 -m venv --clear --without-pip --system-site-packages .testenv + .testenv/bin/python3 -m installer .dist/*.whl + .testenv/bin/python3 -m pytest } package() { - python3 setup.py install --prefix=/usr --root="$pkgdir" + python3 -m installer -d "$pkgdir" \ + .dist/*.whl } -sha512sums="7206e7ee78988af7101417d073fdac78851d8534575b0c895e8017d02e6083cfed722b4792592b02c7e523aaf652f173fb7dee2967983e55cd1022bcbbc938da google-auth-httplib2-0.0.4.tar.gz" +sha512sums=" +82ffe87172056cd6d15e3d5f12c155ff9e09fdea9d8e6385fd3ddc2db374df41a74dcfb3aff3df1d046d2b537f0a98ee9b5c7dd7818d2274af9462df48e7bdf8 google-auth-httplib2-0.2.0.tar.gz +" |