Chih-Hsuan Yen pushed to branch main at Arch Linux / Packaging / Packages /
python-anyio
Commits:
76ca4495 by Chih-Hsuan Yen at 2025-04-27T15:07:04+08:00
upgpkg: 4.9.0-1; switch to git source for easy backporting
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,6 +1,6 @@
pkgbase = python-anyio
pkgdesc = High level compatibility layer for multiple asynchronous
event loop implementations
- pkgver = 4.8.0
+ pkgver = 4.9.0
pkgrel = 1
url = https://github.com/agronholm/anyio
arch = any
@@ -12,6 +12,7 @@ pkgbase = python-anyio
checkdepends = python-psutil
checkdepends = python-truststore
checkdepends = python-exceptiongroup
+ makedepends = git
makedepends = python-build
makedepends = python-installer
makedepends = python-setuptools
@@ -26,7 +27,7 @@ pkgbase = python-anyio
optdepends = python-outcome: trio backend
optdepends = python-uvloop: use uvloop for asyncio backend
optdepends = python-pytest: pytest plugin
- source =
https://github.com/agronholm/anyio/archive/4.8.0/anyio-4.8.0.tar.gz
- sha256sums =
cd08cb8d7a0413ae8d7b641261f34a566db2299be425c81fe05100eea97d4c77
+ source = git+https://github.com/agronholm/anyio.git#tag=4.9.0
+ sha256sums =
9a5a9a12ad2a3e1487a2031f390f184d8c8e71a8d1dd7dbb0ceef4bfade4bcd9
pkgname = python-anyio
=====================================
PKGBUILD
=====================================
@@ -2,14 +2,14 @@
pkgname=python-anyio
# https://github.com/agronholm/anyio/blob/master/docs/versionhistory.rst
-pkgver=4.8.0
+pkgver=4.9.0
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-build python-installer python-setuptools
python-setuptools-scm python-wheel
+makedepends=(git 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 python-psutil
python-truststore python-exceptiongroup)
@@ -19,24 +19,26 @@ optdepends=(
'python-uvloop: use uvloop for asyncio backend'
'python-pytest: pytest plugin'
)
-source=(https://github.com/agronholm/anyio/archive/$pkgver/anyio-$pkgver.tar.gz)
-sha256sums=('cd08cb8d7a0413ae8d7b641261f34a566db2299be425c81fe05100eea97d4c77')
+source=("git+https://github.com/agronholm/anyio.git#tag=$pkgver")
+sha256sums=('9a5a9a12ad2a3e1487a2031f390f184d8c8e71a8d1dd7dbb0ceef4bfade4bcd9')
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
prepare() {
- cd anyio-$pkgver
+ cd anyio
+ # cherry-pick a commit that makes blockbuster optional
+ git cherry-pick -n 71081fbeb0576c9cbcbc69bab0a66e6a3d06e5ac
# Remove "error" from pytest filterwarnings
sed -i '/"error"/d' pyproject.toml
}
build() {
- cd anyio-$pkgver
+ cd anyio
python -m build --wheel --no-isolation
}
check() {
- cd anyio-$pkgver
+ cd anyio
# 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]))")
@@ -45,7 +47,7 @@ check() {
}
package() {
- cd anyio-$pkgver
+ cd anyio
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-anyio/-/commit/76ca4495d4f9e22ecddd49cfb5567f2247e7308a
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-anyio/-/commit/76ca4495d4f9e22ecddd49cfb5567f2247e7308a
You're receiving this email because of your account on gitlab.archlinux.org.