Date: Thursday, April 13, 2023 @ 05:45:26
  Author: yan12125
Revision: 1445482

upgpkg: python-anyio 3.6.2-3; disable tests broken with CPython 3.11.3 [1]

Also switches to PEP 517, which will be needed for the next version [2]

[1] https://github.com/agronholm/anyio/issues/550
[2] 
https://github.com/agronholm/anyio/commit/4c125207a3432a255c5d95b62f9a63d6aca93eaa

Modified:
  python-anyio/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-04-13 05:42:54 UTC (rev 1445481)
+++ PKGBUILD    2023-04-13 05:45:26 UTC (rev 1445482)
@@ -3,13 +3,13 @@
 pkgname=python-anyio
 # https://github.com/agronholm/anyio/blob/master/docs/versionhistory.rst
 pkgver=3.6.2
-pkgrel=2
+pkgrel=3
 pkgdesc='High level compatibility layer for multiple asynchronous event loop 
implementations'
 arch=(any)
 url='https://github.com/agronholm/anyio'
 license=(MIT)
 depends=(python python-idna python-sniffio)
-makedepends=(python-setuptools python-setuptools-scm
+makedepends=(python-build python-installer python-setuptools 
python-setuptools-scm python-wheel
              python-uvloop python-trio)
 checkdepends=(python-pytest python-trustme python-hypothesis 
python-pytest-mock)
 optdepends=(
@@ -34,7 +34,7 @@
 
 build() {
   cd anyio-$pkgver
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
@@ -42,12 +42,13 @@
   # Install to a temporary root as the test suite requires the entry point for
   # its pytest plugin
   pyver=$(python -c "import sys; print('{}.{}'.format(*sys.version_info[:2]))")
-  python setup.py install --root="$PWD/tmp_install" --skip-build
-  PYTHONPATH="$PWD/tmp_install/usr/lib/python$pyver/site-packages" pytest
+  python -m installer --destdir="$PWD/tmp_install" dist/*.whl
+  # Several TLS tests failed with Python 3.11.3 
https://github.com/agronholm/anyio/issues/550
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python$pyver/site-packages" pytest -k 
'not TestTLSStream and not TestTLSListener'
 }
 
 package() {
   cd anyio-$pkgver
-  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
 }

Reply via email to