Felix Yan pushed to branch main at Arch Linux / Packaging / Packages / python-visitor
Commits: 7be57977 by loqs at 2024-04-04T11:58:59+00:00 Call pytest directly - - - - - 1e2bc7d3 by loqs at 2024-04-04T11:59:04+00:00 Change to a PEP 517 based workflow - - - - - 1 changed file: - PKGBUILD Changes: ===================================== PKGBUILD ===================================== @@ -8,23 +8,23 @@ url="https://github.com/mbr/visitor" license=('MIT') arch=('any') depends=('python') -makedepends=('python-setuptools') +makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel') checkdepends=('python-pytest') source=("$pkgname-$pkgver.tar.gz::https://github.com/mbr/visitor/archive/$pkgver.tar.gz") sha512sums=('414c77df8efcc22df5ee8073e02b8c5c28563954ef9b9a869c4ea3f7f1268a97929c1fe29142ba41e3a5acafea52599f6bf073aacd654643d7d8380cd4f41fbc') build() { cd visitor-$pkgver - python setup.py build + python -m build --wheel --no-isolation } check() { cd visitor-$pkgver - PYTHONPATH=. pytest tests + python -m pytest -v } package() { cd visitor-$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 } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-visitor/-/compare/b9d10395a97c38bd8f51a984fa01a25f141d4554...1e2bc7d36aecf6db36901b708fc53c95a3c90b60 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-visitor/-/compare/b9d10395a97c38bd8f51a984fa01a25f141d4554...1e2bc7d36aecf6db36901b708fc53c95a3c90b60 You're receiving this email because of your account on gitlab.archlinux.org.