Date: Monday, January 9, 2023 @ 19:17:34
  Author: dvzrv
Revision: 1382159

upgpkg: python-aiofiles 22.1.0-3: Rebuild to simplify check().

Remove unnecessary check dependencies and simplify by installing the package to 
temporary location.

Modified:
  python-aiofiles/trunk/PKGBUILD

----------+
 PKGBUILD |   12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-09 18:57:55 UTC (rev 1382158)
+++ PKGBUILD    2023-01-09 19:17:34 UTC (rev 1382159)
@@ -3,7 +3,7 @@
 
 pkgname=python-aiofiles
 pkgver=22.1.0
-pkgrel=2
+pkgrel=3
 pkgdesc='File support for asyncio'
 arch=(any)
 license=(APACHE)
@@ -16,13 +16,8 @@
   python-poetry-core
 )
 checkdepends=(
-  python-coverage
-  python-poetry
   python-pytest-asyncio
   python-pytest
-  python-pytest-cov
-  python-setuptools
-  python-tox
 )
 _tag=9d697f5857b5e49bad485212d9d81917ce65b607
 source=(git+https://github.com/Tinche/aiofiles.git#tag=${_tag})
@@ -39,8 +34,11 @@
 }
 
 check() {
+  local site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
   cd aiofiles
-  SETUPTOOLS_USE_DISTUTILS=stdlib tox -e py310
+  python -m installer --destdir=test_dir dist/*.whl
+  export PYTHONPATH="test_dir/$site_packages:$PYTHONPATH"
+  pytest -vv
 }
 
 package() {

Reply via email to