diff options
-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 } |