diff options
author | Caleb Maclennan | 2023-05-03 23:17:45 +0300 |
---|---|---|
committer | Caleb Maclennan | 2023-05-03 23:17:45 +0300 |
commit | 36f6f891ea2589fd7c67947771133e60de286551 (patch) | |
tree | 24d8bf85e7c8869ad32eb72d24ebd4eed938342b | |
parent | 8937e94ff97e9d044563de7f718b61a0b8e7da9d (diff) | |
download | aur-36f6f891ea2589fd7c67947771133e60de286551.tar.gz |
upgpkg: python-pygtrie 2.5.0-2
Rebuild for Python 3.11, normalize PEP517 build tooling
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 11 |
2 files changed, 10 insertions, 6 deletions
@@ -1,10 +1,13 @@ pkgbase = python-pygtrie pkgdesc = Python library implementing a trie data structure pkgver = 2.5.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/google/pygtrie arch = any license = Apache + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel makedepends = python-setuptools depends = python source = https://files.pythonhosted.org/packages/source/p/pygtrie/pygtrie-2.5.0.tar.gz @@ -4,28 +4,29 @@ _pyname=pygtrie pkgname=python-$_pyname pkgver=2.5.0 -pkgrel=1 +pkgrel=2 pkgdesc='Python library implementing a trie data structure' arch=(any) url="https://github.com/google/$_pyname" license=(Apache) depends=(python) -makedepends=(python-setuptools) +makedepends=(python-{build,installer,wheel} + python-setuptools) _archive="$_pyname-$pkgver" source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_archive.tar.gz") sha256sums=('203514ad826eb403dab1d2e2ddd034e0d1534bbe4dbe0213bb0593f66beba4e2') build() { cd "$_archive" - python setup.py build + python -m build -wn } check() { cd "$_archive" - python test.py + python -m unittest discover } package() { cd "$_archive" - python setup.py install --root="$pkgdir" --optimize=1 --skip-build + python -m installer -d "$pkgdir" dist/*.whl } |