Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-trio for openSUSE:Factory 
checked in at 2021-12-16 21:18:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-trio (Old)
 and      /work/SRC/openSUSE:Factory/.python-trio.new.2520 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-trio"

Thu Dec 16 21:18:53 2021 rev:9 rq:940542 version:0.19.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-trio/python-trio.changes  2021-01-15 
19:43:30.517768420 +0100
+++ /work/SRC/openSUSE:Factory/.python-trio.new.2520/python-trio.changes        
2021-12-16 21:19:20.034521732 +0100
@@ -1,0 +2,45 @@
+Sun Dec 12 18:53:24 UTC 2021 - Ben Greiner <c...@bnavigator.de>
+
+- Update to version 0.19.0
+  * Trio now supports Python 3.10. (#1921)
+  * Use slots for `~.lowlevel.Task` which should make them slightly
+    smaller and faster. (#1927)
+  * Make `~.Event` more lightweight by using less objects (about 2
+    rather than 5, including a nested ParkingLot and attribute
+    dicts) and simpler structures (set rather than OrderedDict).
+    This may benefit applications that create a large number of
+    event instances, such as with the "replace event object on
+    every set()" idiom. (#1948)
+  * The event loop now holds on to references of coroutine frames
+    for only the minimum necessary period of time. (#1864)
+  * The `~.lowlevel.TrioToken` class can now be used as a target of
+    a weak reference. (#1924)
+- Release 0.18.0
+  * Add synchronous .close() methods and context manager (with x)
+    support for .MemorySendChannel and .MemoryReceiveChannel.
+    (#1797)
+  * Previously, on Windows, Trio programs using thousands of
+    sockets at the same time could trigger extreme slowdowns in the
+    Windows kernel. Now, Trio works around this issue, so you
+    should be able to use as many sockets as you want. (#1280)
+  * `trio.from_thread.run` no longer crashes the Trio run if it is
+    executed after the system nursery has been closed but before
+    the run has finished. Calls made at this time will now raise
+    trio.RunFinishedError. This fixes a regression introduced in
+    Trio 0.17.0. The window in question is only one scheduler tick
+    long in most cases, but may be longer if async generators need
+    to be cleaned up. (#1738)
+  * Fix a crash in pypy-3.7 (#1765)
+  * Trio now avoids creating cyclic garbage as often. This should
+    have a minimal impact on most programs, but can slightly reduce
+    how often the cycle collector GC runs on CPython, which can
+    reduce latency spikes. (#1770)
+  * Remove deprecated max_refill_bytes from `SSLStream`. (#959)
+  * Remove the deprecated tiebreaker argument to
+    trio.testing.wait_all_tasks_blocked. (#1558)
+  * Remove the deprecated trio.hazmat module. (#1722)
+  * Stop allowing subclassing public classes. This behavior was
+    deprecated in 0.15.0. (#1726)
+- Add trio-pr2043-py310ssl-deprecationwarnings.patch
+
+-------------------------------------------------------------------

Old:
----
  trio-0.17.0.tar.gz

New:
----
  trio-0.19.0.tar.gz
  trio-pr2043-py310ssl-deprecationwarnings.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-trio.spec ++++++
--- /var/tmp/diff_new_pack.1joLZ1/_old  2021-12-16 21:19:23.190522934 +0100
+++ /var/tmp/diff_new_pack.1joLZ1/_new  2021-12-16 21:19:23.194522936 +0100
@@ -16,15 +16,17 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%{?!python_module:%define python_module() python3-%{**}}
 %define skip_python2 1
 Name:           python-trio
-Version:        0.17.0
+Version:        0.19.0
 Release:        0
 Summary:        Python async/await-native I/O library
-License:        MIT OR Apache-2.0
+License:        Apache-2.0 OR MIT
 URL:            https://github.com/python-trio/trio
 Source:         
https://github.com/python-trio/trio/archive/v%{version}.tar.gz#/trio-%{version}.tar.gz
+#PATCH-FIX-UPSTREAM trio-pr2043-py310ssl-deprecationwarnings.patch -- 
gh#python-trio/trio#2043
+Patch0:         
https://github.com/python-trio/trio/pull/2043.patch#/trio-pr2043-py310ssl-deprecationwarnings.patch
 BuildRequires:  %{python_module astor >= 0.8}
 BuildRequires:  %{python_module async_generator >= 1.9}
 BuildRequires:  %{python_module attrs >= 19.2.0}
@@ -36,6 +38,7 @@
 BuildRequires:  %{python_module setuptools}
 # for protocol specifications
 BuildRequires:  %{python_module sniffio}
+BuildRequires:  %{python_module contextvars >= 2.1 if %python-base < 3.7}
 BuildRequires:  %{python_module sortedcontainers}
 BuildRequires:  %{python_module trustme}
 BuildRequires:  %{python_module yapf >= 0.27.0}
@@ -48,13 +51,10 @@
 Requires:       python-outcome
 Requires:       python-sniffio
 Requires:       python-sortedcontainers
-BuildArch:      noarch
-%if "%{python_flavor}" < "3.7"
-BuildRequires:  %{python_module contextvars >= 2.1}
-%endif
-%if "%{python_flavor}" < "3.7"
-Recommends:     python-contextvars >= 2.1
+%if 0%{?python_version_nodots} < 37
+Requires:       python-contextvars >= 2.1
 %endif
+BuildArch:      noarch
 %python_subpackages
 
 %description
@@ -68,7 +68,7 @@
 has an obsessive focus on usability and correctness.
 
 %prep
-%setup -q -n trio-%{version}
+%autosetup -p1 -n trio-%{version}
 sed -i '1{/^#!/d}' trio/_tools/gen_exports.py
 
 %build
@@ -85,12 +85,12 @@
 #   pointless for us.
 # test_SSLStream_generic deadlocks in OBS
 # test_close_at_bad_time_for_send_all fails on PPC 
https://github.com/python-trio/trio/issues/1753
-# test_fallback_when_no_hook_claims_it is incompatible with pytest 6.2 
https://github.com/python-trio/trio/issues/1843
-%pytest -k 'not (test_static_tool_sees_all_symbols or test_SSLStream_generic 
or test_close_at_bad_time_for_send_all or test_fallback_when_no_hook_claims_it)'
+%pytest -k 'not (test_static_tool_sees_all_symbols or test_SSLStream_generic 
or test_close_at_bad_time_for_send_all)'
 
 %files %{python_files}
 %doc README.rst
 %license LICENSE LICENSE.APACHE2 LICENSE.MIT
-%{python_sitelib}/*
+%{python_sitelib}/trio
+%{python_sitelib}/trio-%{version}*-info
 
 %changelog

++++++ trio-0.17.0.tar.gz -> trio-0.19.0.tar.gz ++++++
++++ 3835 lines of diff (skipped)

++++++ trio-pr2043-py310ssl-deprecationwarnings.patch ++++++
>From 0639f87e58bae400070c5642f6fb339c7bb6e704 Mon Sep 17 00:00:00 2001
From: Kyle Altendorf <s...@fstab.net>
Date: Tue, 22 Jun 2021 11:33:12 -0400
Subject: [PATCH] update tests for SSL related deprecations in 3.10

---
 trio/tests/test_ssl.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/trio/tests/test_ssl.py b/trio/tests/test_ssl.py
index 75f99df13..933e0be47 100644
--- a/trio/tests/test_ssl.py
+++ b/trio/tests/test_ssl.py
@@ -80,7 +80,10 @@ def client_ctx(request):
     if request.param in ["default", "tls13"]:
         return ctx
     elif request.param == "tls12":
-        ctx.options |= ssl.OP_NO_TLSv1_3
+        if sys.version_info >= (3, 7):
+            ctx.maximum_version = ssl.TLSVersion.TLSv1_2
+        else:
+            ctx.options |= ssl.OP_NO_TLSv1_3
         return ctx
     else:  # pragma: no cover
         assert False
@@ -1200,7 +1203,8 @@ async def 
test_selected_npn_protocol_before_handshake(client_ctx):
 
 
 @pytest.mark.filterwarnings(
-    r"ignore: ssl module. NPN is deprecated, use ALPN instead:UserWarning"
+    r"ignore: ssl module. NPN is deprecated, use ALPN instead:UserWarning",
+    r"ignore:ssl NPN is deprecated, use ALPN instead:DeprecationWarning",
 )
 async def test_selected_npn_protocol_when_not_set(client_ctx):
     # NPN protocol still returns None when it's not set,

Reply via email to