Daniel M. Capella pushed to branch main at Arch Linux / Packaging / Packages / python-fxa
Commits: ab5a4732 by Rafael Fontenelle at 2024-02-28T20:35:28-03:00 Remove pytest-runner, use SPDX, and more use python-build and python-installer, remove tests directories - - - - - 2e54fa06 by Daniel M. Capella at 2024-02-28T19:25:59-05:00 Add SRCINFO - - - - - 2 changed files: - + .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -0,0 +1,27 @@ +pkgbase = python-fxa + pkgdesc = Python library for interacting with the Firefox Accounts ecosystem + pkgver = 0.7.7 + pkgrel = 7 + url = https://github.com/mozilla/PyFxA + arch = any + license = MPL-2.0 + checkdepends = python-grequests + checkdepends = python-pyotp + checkdepends = python-pytest-cov + checkdepends = python-pytest-flake8 + checkdepends = python-pytest + checkdepends = python-responses + makedepends = python-setuptools + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + depends = python-browserid + depends = python-cryptography + depends = python-hawkauthlib + depends = python-pyjwt + depends = python-requests + depends = python-six + source = https://github.com/mozilla/PyFxA/archive/v0.7.7/python-fxa-0.7.7.tar.gz + sha256sums = d5b5afdafb6b42344d49e4e4df0582758df54e00b8d0fa3cbc29433410aa9a6f + +pkgname = python-fxa ===================================== PKGBUILD ===================================== @@ -8,16 +8,16 @@ pkgrel=7 pkgdesc='Python library for interacting with the Firefox Accounts ecosystem' arch=('any') url='https://github.com/mozilla/PyFxA' -license=('MPL2') +license=('MPL-2.0') depends=('python-browserid' 'python-cryptography' 'python-hawkauthlib' 'python-pyjwt' 'python-requests' 'python-six') -makedepends=('python-setuptools') -checkdepends=('python-grequests' 'python-pyotp' 'python-pytest-cov' 'python-pytest-flake8' 'python-pytest-runner' 'python-responses') +makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel') +checkdepends=('python-grequests' 'python-pyotp' 'python-pytest-cov' 'python-pytest-flake8' 'python-pytest' 'python-responses') source=("https://github.com/mozilla/$_pkgname/archive/v$pkgver/$pkgname-$pkgver.tar.gz") sha256sums=('d5b5afdafb6b42344d49e4e4df0582758df54e00b8d0fa3cbc29433410aa9a6f') build() { cd $_pkgname-$pkgver - python setup.py build + python -m build --wheel --no-isolation } check() { @@ -27,5 +27,9 @@ check() { package() { cd $_pkgname-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 --skip-build + python -m installer --destdir="$pkgdir" dist/*.whl + + # Do not install tests directory + local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") + rm -rf "$pkgdir/$site_packages"/fxa/tests/ } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-fxa/-/compare/d8340aeb8c3676ef08a2e6a45522408163355504...2e54fa06deb758d32b0026ad299e4f883ae879b8 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-fxa/-/compare/d8340aeb8c3676ef08a2e6a45522408163355504...2e54fa06deb758d32b0026ad299e4f883ae879b8 You're receiving this email because of your account on gitlab.archlinux.org.