[arch-commits] Commit in python-typeguard/repos/community-any (PKGBUILD PKGBUILD)

Felix Yan felixonmars at archlinux.org
Thu May 13 08:55:12 UTC 2021


    Date: Thursday, May 13, 2021 @ 08:55:11
  Author: felixonmars
Revision: 932978

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-13 08:54:17 UTC (rev 932977)
+++ PKGBUILD	2021-05-13 08:55:11 UTC (rev 932978)
@@ -1,33 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-typeguard
-pkgver=2.10.0
-pkgrel=3
-pkgdesc="Run-time type checker for Python"
-url="https://github.com/agronholm/typeguard"
-license=('MIT')
-arch=('any')
-depends=('python')
-makedepends=('python-setuptools-scm')
-checkdepends=('python-pytest-cov' 'python-typing_extensions')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/agronholm/typeguard/archive/$pkgver.tar.gz")
-sha512sums=('1fb1b27369f279a467a0d524618c79f1369afa10579256826ab589158069f59676d496284079a15f1217272f76934ea162e5baaaac5474ff5dbd1de7764535f0')
-
-export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
-build() {
-  cd typeguard-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd typeguard-$pkgver
-  python -m pytest
-}
-
-package() {
-  cd typeguard-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-
-  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
-}

Copied: python-typeguard/repos/community-any/PKGBUILD (from rev 932977, python-typeguard/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-05-13 08:55:11 UTC (rev 932978)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-typeguard
+pkgver=2.11.0
+pkgrel=1
+pkgdesc="Run-time type checker for Python"
+url="https://github.com/agronholm/typeguard"
+license=('MIT')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools-scm')
+checkdepends=('mypy' 'python-pytest-cov' 'python-typing_extensions')
+source=("https://github.com/agronholm/typeguard/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('c0fdda9f080945187b3e4ec10cf9ceafae349411625cfd70511c9648abda59831c5ab4111226f6196ec5c7b500abaf7c495815330a574bb70d345bb32f90eceb')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+  cd typeguard-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd typeguard-$pkgver
+  # https://github.com/agronholm/typeguard/issues/176
+  PYTHONPATH="$PWD/build/lib" MYPYPATH="$PWD/build/lib" pytest --deselect tests/mypy/test_type_annotations.py::test_positive
+}
+
+package() {
+  cd typeguard-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list