Date: Sunday, January 22, 2023 @ 08:20:55 Author: grawlinson Revision: 1387666
addpkg: python-pyproject-parser 0.7.0-1 Added: python-pyproject-parser/ python-pyproject-parser/repos/ python-pyproject-parser/trunk/ python-pyproject-parser/trunk/PKGBUILD ----------+ PKGBUILD | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) Added: python-pyproject-parser/trunk/PKGBUILD =================================================================== --- python-pyproject-parser/trunk/PKGBUILD (rev 0) +++ python-pyproject-parser/trunk/PKGBUILD 2023-01-22 08:20:55 UTC (rev 1387666) @@ -0,0 +1,58 @@ +# Maintainer: George Rawlinson <[email protected]> + +pkgname=python-pyproject-parser +pkgver=0.7.0 +pkgrel=1 +pkgdesc='Parser for pyproject.toml' +arch=('any') +url='https://github.com/repo-helper/pyproject-parser' +license=('MIT') +depends=( + 'python' + 'python-apeye-core' + 'python-attrs' + 'python-dom-toml' + 'python-domdf-python-tools' + 'python-natsort' + 'python-packaging' + 'python-shippinglabel' + 'python-toml' + 'python-typing-extensions' +) +makedepends=( + 'git' + 'python-build' + 'python-installer' + 'python-wheel' + 'python-setuptools' +) +#checkdepends=('') +# cli optdepends: click, consolekit & sdjson +optdepends=( + 'python-readme-renderer: render markdown' + 'python-cmarkgfm: render markdown' +) +_commit='f9fc5a1cda7fff980abdb7b6f0215cf5887507ec' +source=("$pkgname::git+$url#commit=$_commit") +b2sums=('SKIP') + +pkgver() { + cd "$pkgname" + + git describe --tags | sed 's/^v//' +} + +build() { + cd "$pkgname" + + python -m build --wheel --no-isolation +} + +package() { + cd "$pkgname" + + python -m installer --destdir="$pkgdir" dist/*.whl + + # license + install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE +}
