Date: Saturday, April 8, 2023 @ 15:22:37
Author: felixonmars
Revision: 1442734
archrelease: copy trunk to community-staging-any
Added:
python-pyproject-parser/repos/community-staging-any/
python-pyproject-parser/repos/community-staging-any/PKGBUILD
(from rev 1442733, python-pyproject-parser/trunk/PKGBUILD)
----------+
PKGBUILD | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
Copied: python-pyproject-parser/repos/community-staging-any/PKGBUILD (from rev
1442733, python-pyproject-parser/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-08 15:22:37 UTC (rev 1442734)
@@ -0,0 +1,58 @@
+# Maintainer: George Rawlinson <[email protected]>
+
+pkgname=python-pyproject-parser
+pkgver=0.7.0
+pkgrel=2
+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
+}