Date: Tuesday, January 24, 2023 @ 07:23:01
  Author: grawlinson
Revision: 1388022

addpkg: python-cython-lint 0.10.1-1

Added:
  python-cython-lint/
  python-cython-lint/repos/
  python-cython-lint/trunk/
  python-cython-lint/trunk/PKGBUILD

----------+
 PKGBUILD |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)

Added: python-cython-lint/trunk/PKGBUILD
===================================================================
--- python-cython-lint/trunk/PKGBUILD                           (rev 0)
+++ python-cython-lint/trunk/PKGBUILD   2023-01-24 07:23:01 UTC (rev 1388022)
@@ -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
+}

Reply via email to