Date: Friday, May 12, 2023 @ 07:54:42
  Author: polyzen
Revision: 1460076

archrelease: copy trunk to community-testing-any

Added:
  python-typeguard/repos/community-testing-any/
  python-typeguard/repos/community-testing-any/PKGBUILD
    (from rev 1460075, python-typeguard/trunk/PKGBUILD)

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

Copied: python-typeguard/repos/community-testing-any/PKGBUILD (from rev 
1460075, python-typeguard/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD                              (rev 0)
+++ community-testing-any/PKGBUILD      2023-05-12 07:54:42 UTC (rev 1460076)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <[email protected]>
+# Maintainer: Daniel M. Capella <[email protected]>
+
+pkgname=python-typeguard
+pkgver=4.0.0
+_commit=887e27e033ad1adbba009ab7d991a0af985a7290
+pkgrel=1
+pkgdesc="Run-time type checker for Python"
+url="https://github.com/agronholm/typeguard";
+license=('MIT')
+arch=('any')
+depends=('python-typing_extensions')
+makedepends=('git' 'python-build' 'python-installer' 'python-setuptools-scm' 
'python-wheel')
+checkdepends=('mypy' 'python-pytest')
+source=("git+https://github.com/agronholm/typeguard.git#commit=$_commit";)
+sha512sums=('SKIP')
+
+build() {
+  cd typeguard
+  python -m build -nw
+}
+
+check() {
+  cd typeguard
+  # https://github.com/agronholm/typeguard/issues/176
+  PYTHONPATH="$PWD/build/lib" MYPYPATH="$PWD/build/lib" pytest
+}
+
+package() {
+  cd typeguard
+  python -m installer -d "$pkgdir" dist/*.whl
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}

Reply via email to