[arch-commits] Commit in python-typeguard/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Thu May 13 08:54:18 UTC 2021


    Date: Thursday, May 13, 2021 @ 08:54:17
  Author: felixonmars
Revision: 932977

upgpkg: python-typeguard 2.11.0-1

Modified:
  python-typeguard/trunk/PKGBUILD

----------+
 PKGBUILD |   13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-13 08:48:32 UTC (rev 932976)
+++ PKGBUILD	2021-05-13 08:54:17 UTC (rev 932977)
@@ -1,8 +1,8 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
 pkgname=python-typeguard
-pkgver=2.10.0
-pkgrel=3
+pkgver=2.11.0
+pkgrel=1
 pkgdesc="Run-time type checker for Python"
 url="https://github.com/agronholm/typeguard"
 license=('MIT')
@@ -9,9 +9,9 @@
 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')
+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
 
@@ -22,7 +22,8 @@
 
 check() {
   cd typeguard-$pkgver
-  python -m pytest
+  # 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() {



More information about the arch-commits mailing list