Date: Tuesday, January 24, 2023 @ 07:24:09
Author: grawlinson
Revision: 1388023
archrelease: copy trunk to community-any
Added:
python-cython-lint/repos/community-any/
python-cython-lint/repos/community-any/PKGBUILD
(from rev 1388022, python-cython-lint/trunk/PKGBUILD)
----------+
PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
Copied: python-cython-lint/repos/community-any/PKGBUILD (from rev 1388022,
python-cython-lint/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2023-01-24 07:24:09 UTC (rev 1388023)
@@ -0,0 +1,53 @@
+# Maintainer: George Rawlinson <[email protected]>
+
+pkgname=python-cython-lint
+pkgver=0.10.1
+pkgrel=1
+pkgdesc='A tool to lint Cython files'
+arch=('any')
+url='https://github.com/MarcoGorelli/cython-lint'
+license=('MIT')
+depends=(
+ 'python'
+ 'cython'
+ 'python-tokenize-rt'
+ 'python-pycodestyle'
+)
+makedepends=(
+ 'git'
+ 'python-build'
+ 'python-installer'
+ 'python-wheel'
+ 'python-setuptools'
+)
+checkdepends=('python-pytest')
+_commit='dcf59c564855962d1f15a3d578da2292a25f2f59'
+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
+}
+
+check() {
+ cd "$pkgname"
+
+ PYTHONPATH="$(pwd)" pytest -v
+}
+
+package() {
+ cd "$pkgname"
+
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ # license
+ install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}