Date: Sunday, May 14, 2023 @ 13:32:27
  Author: felixonmars
Revision: 1461624

addpkg: python-pytest-ruff 0.0.6-1

Added:
  python-pytest-ruff/
  python-pytest-ruff/repos/
  python-pytest-ruff/trunk/
  python-pytest-ruff/trunk/PKGBUILD

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

Added: python-pytest-ruff/trunk/PKGBUILD
===================================================================
--- python-pytest-ruff/trunk/PKGBUILD                           (rev 0)
+++ python-pytest-ruff/trunk/PKGBUILD   2023-05-14 13:32:27 UTC (rev 1461624)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-pytest-ruff
+pkgver=0.0.6
+_commit=e9f7cdac19c938d98bf045fa21ad9ddf82896426
+pkgrel=1
+pkgdesc="Pytest plugin to check ruff requirements"
+url="https://github.com/buserbrasil/pytest-ruff";
+license=('MIT')
+arch=('any')
+depends=('python' 'python-pytest' 'python-ruff')
+makedepends=('git' 'python-build' 'python-installer' 'python-poetry-core'
+             'python-poetry-dynamic-versioning')
+checkdepends=('python-pytest-mock')
+source=("git+https://github.com/buserbrasil/pytest-ruff.git#commit=$_commit";)
+sha512sums=('SKIP')
+
+build() {
+  cd pytest-ruff
+  python -m build -nw
+}
+
+check() {
+  cd pytest-ruff
+  python -m pytest
+}
+
+package() {
+  cd pytest-ruff
+  python -m installer -d "$pkgdir" dist/*.whl
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}

Reply via email to