Date: Friday, April 7, 2023 @ 05:27:00
  Author: felixonmars
Revision: 1440623

archrelease: copy trunk to community-staging-any

Added:
  python-cython-lint/repos/community-staging-any/
  python-cython-lint/repos/community-staging-any/PKGBUILD
    (from rev 1440620, python-cython-lint/trunk/PKGBUILD)

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

Copied: python-cython-lint/repos/community-staging-any/PKGBUILD (from rev 
1440620, python-cython-lint/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-07 05:27:00 UTC (rev 1440623)
@@ -0,0 +1,53 @@
+# Maintainer: George Rawlinson <[email protected]>
+
+pkgname=python-cython-lint
+pkgver=0.12.4
+pkgrel=2
+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='70376e0bdd6660977155881105e8492a14adbf20'
+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