Sven-Hendrik Haase pushed to branch main at Arch Linux / Packaging / Packages / python-google-auth-oauthlib
Commits: bf46f049 by loqs at 2026-02-07T21:15:05+00:00 SPDX license identifier https://github.com/googleapis/google-auth-library-python-oauthlib/blob/v1.2.4/LICENSE - - - - - 95334322 by loqs at 2026-02-07T21:16:18+00:00 Use PEP 517 for building Related https://archlinux.org/todo/use-pep-517-for-building-if-supported/. - - - - - d47b6445 by loqs at 2026-02-07T21:24:06+00:00 Enable check - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -4,10 +4,14 @@ pkgbase = python-google-auth-oauthlib pkgrel = 1 url = http://google-auth-oauthlib.readthedocs.io/en/latest/ arch = any - license = Apache + license = Apache-2.0 checkdepends = python-click + checkdepends = python-cryptography checkdepends = python-pytest + makedepends = python-build + makedepends = python-installer makedepends = python-setuptools + makedepends = python-wheel depends = python depends = python-google-auth depends = python-requests-oauthlib ===================================== PKGBUILD ===================================== @@ -6,23 +6,28 @@ pkgver=1.2.4 pkgrel=1 pkgdesc="oauthlib integration for Google auth." url="http://google-auth-oauthlib.readthedocs.io/en/latest/" -checkdepends=('python-click' 'python-pytest') -makedepends=('python-setuptools') +checkdepends=('python-click' 'python-cryptography' 'python-pytest') +makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') depends=('python' 'python-google-auth' 'python-requests-oauthlib') optdepends=('python-click') -license=('Apache') +license=('Apache-2.0') arch=('any') source=("$pkgname-$pkgver.tar.gz::https://github.com/googleapis/google-auth-library-python-oauthlib/archive/refs/tags/v${pkgver}.tar.gz") sha256sums=('69573391dbf165f324ee0aa5be2eafcb6aa63146d1c23b6b3abbb9d790a6d83b') -# check() { -# cd "google-auth-library-python-oauthlib-${pkgver}" -# pytest -# } +build() { + cd "google-auth-library-python-oauthlib-${pkgver}" + python -m build --wheel --no-isolation +} + +check() { + cd "google-auth-library-python-oauthlib-${pkgver}" + PYTHONPATH=. pytest +} package() { cd "google-auth-library-python-oauthlib-${pkgver}" - python setup.py install --root="${pkgdir}" --optimize=1 + python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE # Remove conflicting files View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-google-auth-oauthlib/-/compare/bc92b9b93250ad0d69b29e3195d201a1bca0e77f...d47b64451c79534fbc9cb01b757f3a0e751f14e9 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-google-auth-oauthlib/-/compare/bc92b9b93250ad0d69b29e3195d201a1bca0e77f...d47b64451c79534fbc9cb01b757f3a0e751f14e9 You're receiving this email because of your account on gitlab.archlinux.org.
