diff options
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 10 insertions, 6 deletions
@@ -1,11 +1,14 @@ pkgbase = python-pantable pkgdesc = CSV Tables in Markdown: Pandoc Filter for CSV Tables pkgver = 0.14.2 - pkgrel = 1 + pkgrel = 2 url = https://github.com/ickc/pantable arch = any license = GPL3 - makedepends = python-setuptools + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + makedepends = python-poetry-core depends = pandoc depends = python depends = python-panflute @@ -3,7 +3,7 @@ _name=pantable pkgname=python-$_name pkgver=0.14.2 -pkgrel=1 +pkgrel=2 pkgdesc='CSV Tables in Markdown: Pandoc Filter for CSV Tables' arch=(any) url="https://github.com/ickc/$_name" @@ -13,17 +13,18 @@ _pydeps=(panflute depends=(pandoc python "${_pydeps[@]/#/python-}") -makedepends=(python-setuptools) +makedepends=(python-{build,installer,wheel} + python-poetry-core) _archive="$_name-$pkgver" source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_archive.tar.gz") sha256sums=('7e0c9b935a08f1eca78d1a4f7bee457dbcc809a0825c0c5ed0113007b7d00810') build() { cd "$_archive" - python setup.py build + python -m build -wn } package() { cd "$_archive" - python setup.py install --root="$pkgdir" --optimize=1 --skip-build + python -m installer -d "$pkgdir" dist/*.whl } |