Compare commits
13 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| ef300d3dbb | |||
| b3fd9b3b12 | |||
| 2203e8f2e4 | |||
| e6264d96b3 | |||
| d1028a64f4 | |||
| 8011fe7a5d | |||
| 3d93438767 | |||
| 0eaa0feab0 | |||
| a47b3fe173 | |||
| ad8bf48c8c | |||
| 0f88afc1d9 | |||
| 2157a66e46 | |||
| 0d09a4629e |
32
pyopenssl-25-1-compatibility.patch
Normal file
32
pyopenssl-25-1-compatibility.patch
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
From c6e15249dc0cfe29bdbe6829ae4a3891aa147aa3 Mon Sep 17 00:00:00 2001
|
||||||
|
From: A5rocks <git@helvetica.moe>
|
||||||
|
Date: Fri, 20 Jun 2025 10:13:37 -0400
|
||||||
|
Subject: [PATCH] Move away from RaisesContext
|
||||||
|
|
||||||
|
---
|
||||||
|
src/trio/_tests/test_testing_raisesgroup.py | 5 +----
|
||||||
|
1 file changed, 1 insertion(+), 4 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/trio/_tests/test_testing_raisesgroup.py b/src/trio/_tests/test_testing_raisesgroup.py
|
||||||
|
index b3fe2ae755..a42566d3ec 100644
|
||||||
|
--- a/src/trio/_tests/test_testing_raisesgroup.py
|
||||||
|
+++ b/src/trio/_tests/test_testing_raisesgroup.py
|
||||||
|
@@ -14,9 +14,6 @@
|
||||||
|
if sys.version_info < (3, 11):
|
||||||
|
from exceptiongroup import BaseExceptionGroup, ExceptionGroup
|
||||||
|
|
||||||
|
-if TYPE_CHECKING:
|
||||||
|
- from _pytest.python_api import RaisesContext
|
||||||
|
-
|
||||||
|
|
||||||
|
def wrap_escape(s: str) -> str:
|
||||||
|
return "^" + re.escape(s) + "$"
|
||||||
|
@@ -24,7 +21,7 @@ def wrap_escape(s: str) -> str:
|
||||||
|
|
||||||
|
def fails_raises_group(
|
||||||
|
msg: str, add_prefix: bool = True
|
||||||
|
-) -> RaisesContext[AssertionError]:
|
||||||
|
+) -> pytest.RaisesExc[AssertionError]:
|
||||||
|
assert (
|
||||||
|
msg[-1] != "\n"
|
||||||
|
), "developer error, expected string should not end with newline"
|
||||||
@@ -1,42 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Fri Nov 28 10:38:27 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
|
||||||
|
|
||||||
- Update to 0.32.0
|
|
||||||
* Allow trio.CapacityLimiter to have zero total_tokens. (#3321)
|
|
||||||
* Fixed a bug where iterating over an @as_safe_channel-derived
|
|
||||||
ReceiveChannel would raise BrokenResourceError if the channel
|
|
||||||
was closed by another task. It now shuts down cleanly. (#3331)
|
|
||||||
* trio.lowlevel.Task.iter_await_frames now works on completed tasks,
|
|
||||||
by returning an empty list of frames if the underlying coroutine
|
|
||||||
has been closed. Previously, it raised an internal error. (#3337)
|
|
||||||
- Update BuildRequires from pyproject.toml
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Tue Sep 23 11:04:19 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
|
||||||
|
|
||||||
- Update to 0.31.0
|
|
||||||
* Cancelled strings can now display the source and reason for a cancellation.
|
|
||||||
Trio-internal sources of cancellation will set this string, and CancelScope.cancel
|
|
||||||
now has a reason string parameter that can be used to attach info to any Cancelled
|
|
||||||
to help in debugging. (#3232)
|
|
||||||
* Make ctrl+c work in more situations in the Trio REPL (python -m trio). (#3007)
|
|
||||||
* Allow pickling trio.Cancelled, as they can show up when you want to pickle something
|
|
||||||
else. This does not rule out pickling other NoPublicConstructor objects -- create an
|
|
||||||
issue if necessary. (#3248)
|
|
||||||
* Decrease import time on Windows by around 10%. (#3263)
|
|
||||||
* Handle unwrapping SystemExit/KeyboardInterrupt exception gracefully in utility function
|
|
||||||
raise_single_exception_from_group that reraises last exception from group. (#3275)
|
|
||||||
* Ensure that the DTLS server does not mutate SSL context. (#3277)
|
|
||||||
* Avoid having trio.as_safe_channel raise if closing the generator wrapped GeneratorExit
|
|
||||||
in a BaseExceptionGroup. (#3324)
|
|
||||||
* Implement bool(trio.Event) and have it raise a DeprecationWarning and tell users to use
|
|
||||||
trio.Event.is_set instead. This is an alternative to mypy --enable-error-code=truthy-bool
|
|
||||||
for users who don't use type checking. (#3322)
|
|
||||||
* When misnesting nurseries you now get a helpful RuntimeError instead of a catastrophic
|
|
||||||
TrioInternalError. (#3307)
|
|
||||||
- Drop pyopenssl-25-1-compatibility.patch, merged upstream
|
|
||||||
- Remove shebang from trio/_tools/sync_requirements.py
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jul 17 20:26:22 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
Thu Jul 17 20:26:22 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-trio
|
# spec file for package python-trio
|
||||||
#
|
#
|
||||||
# Copyright (c) 2025 SUSE LLC and contributors
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -26,13 +26,14 @@
|
|||||||
%endif
|
%endif
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-trio%{psuffix}
|
Name: python-trio%{psuffix}
|
||||||
Version: 0.32.0
|
Version: 0.30.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python async/await-native I/O library
|
Summary: Python async/await-native I/O library
|
||||||
License: Apache-2.0 OR MIT
|
License: Apache-2.0 OR MIT
|
||||||
URL: https://github.com/python-trio/trio
|
URL: https://github.com/python-trio/trio
|
||||||
Source: https://files.pythonhosted.org/packages/source/t/trio/trio-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/t/trio/trio-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module base >= 3.10}
|
Patch1: https://github.com/python-trio/trio/pull/3292/commits/c6e15249dc0cfe29bdbe6829ae4a3891aa147aa3.patch#/pyopenssl-25-1-compatibility.patch
|
||||||
|
BuildRequires: %{python_module base >= 3.8}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools > 77}
|
BuildRequires: %{python_module setuptools > 77}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
@@ -71,7 +72,7 @@ has an obsessive focus on usability and correctness.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n trio-%{version}
|
%autosetup -p1 -n trio-%{version}
|
||||||
sed -i '/\/usr\/bin\/env\ python3/d' src/trio/_tests/check_type_completeness.py src/trio/_tools/gen_exports.py src/trio/_tools/sync_requirements.py
|
sed -i '/\/usr\/bin\/env\ python3/d' src/trio/_tests/check_type_completeness.py src/trio/_tools/gen_exports.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
|||||||
3
trio-0.30.0.tar.gz
Normal file
3
trio-0.30.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:0781c857c0c81f8f51e0089929a26b5bb63d57f927728a5586f7e36171f064df
|
||||||
|
size 593776
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:150f29ec923bcd51231e1d4c71c7006e65247d68759dd1c19af4ea815a25806b
|
|
||||||
size 605323
|
|
||||||
Reference in New Issue
Block a user