From 87b4f920e676d703283386bf5d8d9605fc9e8bf150ad872d71c1d25618c31112 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 11 Mar 2024 06:15:59 +0000 Subject: [PATCH 1/2] - Update to 4.3.0: * Added support for the Python 3.12 ``walk_up`` keyword argument in ``anyio.Path.relative_to()`` * Fixed passing ``total_tokens`` to ``anyio.CapacityLimiter()`` as a keyword argument not working on the ``trio`` backend * Fixed ``Process.aclose()`` not performing the minimum level of necessary cleanup when cancelled * Fixed ``Process.stdin.aclose()``, ``Process.stdout.aclose()``, and ``Process.stderr.aclose()`` - Add exceptiongroup to {Build,}Requires. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-anyio?expand=0&rev=39 --- anyio-4.2.0.tar.gz | 3 --- anyio-4.3.0.tar.gz | 3 +++ python-anyio.changes | 14 ++++++++++++++ python-anyio.spec | 15 +++++++-------- 4 files changed, 24 insertions(+), 11 deletions(-) delete mode 100644 anyio-4.2.0.tar.gz create mode 100644 anyio-4.3.0.tar.gz diff --git a/anyio-4.2.0.tar.gz b/anyio-4.2.0.tar.gz deleted file mode 100644 index b4dd3f1..0000000 --- a/anyio-4.2.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e1875bb4b4e2de1669f4bc7869b6d3f54231cdced71605e6e64c9be77e3be50f -size 158770 diff --git a/anyio-4.3.0.tar.gz b/anyio-4.3.0.tar.gz new file mode 100644 index 0000000..6ccec62 --- /dev/null +++ b/anyio-4.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f75253795a87df48568485fd18cdd2a3fa5c4f7c5be8e5e36637733fce06fed6 +size 159642 diff --git a/python-anyio.changes b/python-anyio.changes index ccc8df0..2e81266 100644 --- a/python-anyio.changes +++ b/python-anyio.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Mon Mar 11 06:15:06 UTC 2024 - Steve Kowalik + +- Update to 4.3.0: + * Added support for the Python 3.12 ``walk_up`` keyword argument in + ``anyio.Path.relative_to()`` + * Fixed passing ``total_tokens`` to ``anyio.CapacityLimiter()`` as a + keyword argument not working on the ``trio`` backend + * Fixed ``Process.aclose()`` not performing the minimum level of + necessary cleanup when cancelled + * Fixed ``Process.stdin.aclose()``, ``Process.stdout.aclose()``, and + ``Process.stderr.aclose()`` +- Add exceptiongroup to {Build,}Requires. + ------------------------------------------------------------------- Tue Jan 2 20:50:56 UTC 2024 - Dirk Müller diff --git a/python-anyio.spec b/python-anyio.spec index 2c802b1..434cc64 100644 --- a/python-anyio.spec +++ b/python-anyio.spec @@ -18,14 +18,14 @@ %{?sle15_python_module_pythons} Name: python-anyio -Version: 4.2.0 +Version: 4.3.0 Release: 0 Summary: High level compatibility layer for asynchronous event loop implementations License: MIT URL: https://github.com/agronholm/anyio Source: https://files.pythonhosted.org/packages/source/a/anyio/anyio-%{version}.tar.gz -BuildRequires: %{python_module contextlib2 if %python-base < 3.7} -BuildRequires: %{python_module dataclasses if %python-base < 3.7} +BuildRequires: %{python_module base >= 3.8} +BuildRequires: %{python_module exceptiongroup if %python-base < 3.11} BuildRequires: %{python_module idna >= 2.8} BuildRequires: %{python_module pip} BuildRequires: %{python_module psutil >= 5.9} @@ -46,10 +46,9 @@ BuildRequires: %{python_module trustme} BuildRequires: fdupes Requires: python-idna >= 2.8 Requires: python-sniffio >= 1.1 -Requires: (python-typing_extensions if python-base < 3.11) -%if 0%{?python_version_nodots} < 37 -Requires: python-contextvars -Requires: python-dataclasses +%if 0%{?python_version_nodots} < 311 +Requires: python-exceptiongroup +Requires: python-typing_extensions %endif Suggests: python-trio >= 0.23 BuildArch: noarch @@ -95,6 +94,6 @@ donttest+=" or (test_properties and asyncio)" %doc README.rst %license LICENSE %{python_sitelib}/anyio -%{python_sitelib}/anyio-%{version}*-info +%{python_sitelib}/anyio-%{version}.dist-info %changelog From ee39414b64b2bae79f0661bf2c4ba5864505859d85f5676dd10eab8131287944 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 11 Mar 2024 23:38:02 +0000 Subject: [PATCH 2/2] Correct BuildRequires for exceptiongroup, it is always required. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-anyio?expand=0&rev=40 --- python-anyio.changes | 2 +- python-anyio.spec | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/python-anyio.changes b/python-anyio.changes index 2e81266..472113a 100644 --- a/python-anyio.changes +++ b/python-anyio.changes @@ -1,5 +1,5 @@ ------------------------------------------------------------------- -Mon Mar 11 06:15:06 UTC 2024 - Steve Kowalik +Mon Mar 11 23:36:15 UTC 2024 - Steve Kowalik - Update to 4.3.0: * Added support for the Python 3.12 ``walk_up`` keyword argument in diff --git a/python-anyio.spec b/python-anyio.spec index 434cc64..083d866 100644 --- a/python-anyio.spec +++ b/python-anyio.spec @@ -25,7 +25,7 @@ License: MIT URL: https://github.com/agronholm/anyio Source: https://files.pythonhosted.org/packages/source/a/anyio/anyio-%{version}.tar.gz BuildRequires: %{python_module base >= 3.8} -BuildRequires: %{python_module exceptiongroup if %python-base < 3.11} +BuildRequires: %{python_module exceptiongroup} BuildRequires: %{python_module idna >= 2.8} BuildRequires: %{python_module pip} BuildRequires: %{python_module psutil >= 5.9} @@ -37,7 +37,6 @@ BuildRequires: %{python_module wheel} BuildRequires: python-rpm-macros >= 20210127.3a18043 # SECTION test requirements BuildRequires: %{python_module hypothesis >= 4.0} -BuildRequires: %{python_module mock >= 4.0 if %python-base < 3.8} BuildRequires: %{python_module pytest >= 7.0} BuildRequires: %{python_module pytest-mock >= 3.6.1} BuildRequires: %{python_module trio >= 0.23}