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

temporarily disable trio tests; add transitive deps & move optional deps to makedepends

parent d41939de
No related branches found
No related tags found
No related merge requests found
......@@ -2,25 +2,36 @@
pkgname=python-anyio
# https://github.com/agronholm/anyio/blob/master/docs/versionhistory.rst
pkgver=3.6.1
pkgver=3.6.2
pkgrel=1
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)
checkdepends=(python-pytest python-trustme python-hypothesis python-uvloop
python-trio python-pytest-mock)
makedepends=(python-setuptools python-setuptools-scm
python-uvloop python-trio)
checkdepends=(python-pytest python-trustme python-hypothesis python-pytest-mock)
optdepends=(
'python-trio: trio backend'
'python-outcome: trio backend'
'python-uvloop: use uvloop for asyncio backend'
'python-pytest: pytest plugin'
)
source=(https://github.com/agronholm/anyio/archive/$pkgver/anyio-$pkgver.tar.gz)
sha256sums=('8e09cf634e7877741fa760b93fb46c352f888d7d3b5a8c9f2d60ca1031f03e42')
sha256sums=('befe8a0e100f6a92ad1b15a6e4adc86bb5f1e055f09b125090300ade5b33534d')
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
prepare() {
cd anyio-$pkgver
# Remove "error" from pytest filterwarnings
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() {
cd anyio-$pkgver
python setup.py 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