python3-trio: update to 0.30.0.

This commit is contained in:
Gonzalo Tornaría 2025-03-05 22:13:00 -03:00 committed by Andrew J. Hesford
parent 1d439b5e08
commit 78c9dc5467
2 changed files with 3 additions and 35 deletions

View file

@ -1,24 +0,0 @@
Cherry picked from: https://github.com/python-trio/trio/pull/3058
From 0152c3efcffe7d9b77b2a765e6992c6685b63499 Mon Sep 17 00:00:00 2001
From: A5rocks <git@helvetica.moe>
Date: Mon, 5 Aug 2024 21:29:33 +0900
Subject: [PATCH 2/5] Fix deprecation warning from attrs
---
src/trio/_threads.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/trio/_threads.py b/src/trio/_threads.py
index a04b73729..0f0e58500 100644
--- a/src/trio/_threads.py
+++ b/src/trio/_threads.py
@@ -139,7 +139,7 @@ def current_default_thread_limiter() -> CapacityLimiter:
# system; see https://github.com/python-trio/trio/issues/182
# But for now we just need an object to stand in for the thread, so we can
# keep track of who's holding the CapacityLimiter's token.
-@attrs.frozen(eq=False, hash=False, slots=False)
+@attrs.frozen(eq=False, slots=False)
class ThreadPlaceholder:
name: str

View file

@ -1,7 +1,7 @@
# Template file for 'python3-trio' # Template file for 'python3-trio'
pkgname=python3-trio pkgname=python3-trio
version=0.26.1 version=0.30.0
revision=2 revision=1
build_style=python3-pep517 build_style=python3-pep517
# Needs astor (https://pypi.org/project/astor/) # Needs astor (https://pypi.org/project/astor/)
make_check_args="--ignore src/trio/_tests/tools/test_gen_exports.py" make_check_args="--ignore src/trio/_tests/tools/test_gen_exports.py"
@ -16,15 +16,7 @@ license="Apache-2.0, MIT"
homepage="https://github.com/python-trio/trio" homepage="https://github.com/python-trio/trio"
changelog="https://raw.githubusercontent.com/python-trio/trio/master/docs/source/history.rst" changelog="https://raw.githubusercontent.com/python-trio/trio/master/docs/source/history.rst"
distfiles="${PYPI_SITE}/t/trio/trio-${version}.tar.gz" distfiles="${PYPI_SITE}/t/trio/trio-${version}.tar.gz"
checksum=6d2fe7ee656146d598ec75128ff4a2386576801b42b691f4a91cc2c18508544a checksum=0781c857c0c81f8f51e0089929a26b5bb63d57f927728a5586f7e36171f064df
make_check_pre="env PY_IGNORE_IMPORTMISMATCH=1"
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
# pthread_getname_np(3) n/a in musl 1.1
make_check_args+="
--deselect src/trio/_tests/test_threads.py::test_named_thread_os
"
fi
post_install() { post_install() {
vlicense LICENSE vlicense LICENSE