Skip to content
Snippets Groups Projects
Unverified Commit bee6a70f authored by Chih-Hsuan Yen's avatar Chih-Hsuan Yen
Browse files

Update to anyio 4.0.0

Pushed to [extra-staging] as anyio 4.x breaks python-fastapi. fastapi
pins older starlette, while the latest starlette is required for anyio
4.x support.

See: https://github.com/tiangolo/fastapi/pull/9636
parent 81bf7f2f
No related branches found
Tags 4.3.0-1
No related merge requests found
...@@ -2,9 +2,7 @@ ...@@ -2,9 +2,7 @@
pkgname=python-anyio pkgname=python-anyio
# https://github.com/agronholm/anyio/blob/master/docs/versionhistory.rst # https://github.com/agronholm/anyio/blob/master/docs/versionhistory.rst
# UPDATE_BLOCKED: anyio 4.x breaks at least python-fastapi pkgver=4.0.0
# fastapi pins older starlette, while the latst starlette is required for anyio 4.x support https://github.com/tiangolo/fastapi/pull/9636
pkgver=3.7.1
pkgrel=1 pkgrel=1
pkgdesc='High level compatibility layer for multiple asynchronous event loop implementations' pkgdesc='High level compatibility layer for multiple asynchronous event loop implementations'
arch=(any) arch=(any)
...@@ -21,7 +19,7 @@ optdepends=( ...@@ -21,7 +19,7 @@ optdepends=(
'python-pytest: pytest plugin' 'python-pytest: pytest plugin'
) )
source=(https://github.com/agronholm/anyio/archive/$pkgver/anyio-$pkgver.tar.gz) source=(https://github.com/agronholm/anyio/archive/$pkgver/anyio-$pkgver.tar.gz)
sha256sums=('aa8ed0d799e61b61f7888e13668d36b467e3368129e8efa92bbf62a9cf063f84') sha256sums=('518a6f319b174b5b7de126ae983035d2205df4ef0f39eb23ac4139cbb1bf3c49')
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
...@@ -29,9 +27,6 @@ prepare() { ...@@ -29,9 +27,6 @@ prepare() {
cd anyio-$pkgver cd anyio-$pkgver
# Remove "error" from pytest filterwarnings # Remove "error" from pytest filterwarnings
sed -i '/"error"/d' pyproject.toml sed -i '/"error"/d' pyproject.toml
# XXX: Temporarily remove testing trio as a backend. anyio 3.x is known to be incompatible with trio >= 0.22
# https://github.com/agronholm/anyio/commit/787cb0c2e53c2a3307873d202fbd49dc5eac4e96
sed -i '/"trio"/d' tests/conftest.py
} }
build() { build() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment