Date: Saturday, September 4, 2021 @ 02:50:11 Author: yan12125 Revision: 1010765
python-anyio: add a workaround for https://bugs.python.org/issue45097 Added: python-anyio/trunk/bpo-45097.diff Modified: python-anyio/trunk/PKGBUILD ----------------+ PKGBUILD | 9 +++++++-- bpo-45097.diff | 14 ++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2021-09-04 02:22:23 UTC (rev 1010764) +++ PKGBUILD 2021-09-04 02:50:11 UTC (rev 1010765) @@ -16,9 +16,11 @@ 'python-trio: trio backend' ) source=(https://github.com/agronholm/anyio/archive/$pkgver/anyio-$pkgver.tar.gz - https://github.com/agronholm/anyio/commit/5ed3270c8d12cffc4cd3349d9ff32bc32451ae65.patch) + https://github.com/agronholm/anyio/commit/5ed3270c8d12cffc4cd3349d9ff32bc32451ae65.patch + bpo-45097.diff) sha256sums=('5872afba5b2a03461e8eb64538d8050d1f64fe54192ad67d8f34f6287ea7c729' - '30e94b5a37c124d3620c77abd835384b224eee3349bea0ddd19f3a268e71c9ca') + '30e94b5a37c124d3620c77abd835384b224eee3349bea0ddd19f3a268e71c9ca' + 'ed0ad72f604697d247a2d74f5b4740fcda0fe478040fa6ff75120cd97d5985c8') export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver @@ -32,6 +34,9 @@ # https://github.com/agronholm/anyio/issues/347 patch -Np1 -i ../5ed3270c8d12cffc4cd3349d9ff32bc32451ae65.patch + + # Work around https://bugs.python.org/issue45097 + patch -Np1 -i ../bpo-45097.diff } build() { Added: bpo-45097.diff =================================================================== --- bpo-45097.diff (rev 0) +++ bpo-45097.diff 2021-09-04 02:50:11 UTC (rev 1010765) @@ -0,0 +1,14 @@ +diff --git a/pyproject.toml b/pyproject.toml +index d6c4fa1..541290d 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -38,7 +38,8 @@ testpaths = ["tests"] + filterwarnings = [ + "error", + "ignore:unclosed <socket.socket.*:ResourceWarning", +- "ignore:unclosed transport <_ProactorSocketTransport.*:ResourceWarning" ++ "ignore:unclosed transport <_ProactorSocketTransport.*:ResourceWarning", ++ "ignore:The loop argument is deprecated.*:DeprecationWarning", + ] + markers = [ + "network: marks tests as requiring Internet access",
