From ccb4ed2ac9309bc9aa152945c5c2a8c00c3b69bf51bf1e6185eed50c8880bbe8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 13 Dec 2022 14:19:16 +0000 Subject: [PATCH] Accepting request 1042688 from home:mcalabkova:branches:devel:languages:python:pytest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update to 0.8.0 * If a test raises an ExceptionGroup (or nested ExceptionGroups) with only a single ‘leaf’ exception from pytest.xfail() or pytest.skip(), we now unwrap it to have the desired effect on Pytest. * Trio 0.22.0 deprecated MultiError in favor of the standard-library (or backported) ExceptionGroup type; pytest-trio now uses ExceptionGroup exclusively and therefore requires Trio 0.22.0 or later. (#128) * Dropped support for end-of-life Python 3.6, and the async_generator library necessary to support it, and started testing on Python 3.10 and 3.11. (#129) OBS-URL: https://build.opensuse.org/request/show/1042688 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-trio?expand=0&rev=13 --- python-pytest-trio.changes | 13 +++++++++++++ python-pytest-trio.spec | 20 +++++++++----------- v0.7.0.tar.gz | 3 --- v0.8.0.tar.gz | 3 +++ 4 files changed, 25 insertions(+), 14 deletions(-) delete mode 100644 v0.7.0.tar.gz create mode 100644 v0.8.0.tar.gz diff --git a/python-pytest-trio.changes b/python-pytest-trio.changes index b1694cf..4a839de 100644 --- a/python-pytest-trio.changes +++ b/python-pytest-trio.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Tue Dec 13 13:17:32 UTC 2022 - Markéta Machová + +- Update to 0.8.0 + * If a test raises an ExceptionGroup (or nested ExceptionGroups) + with only a single ‘leaf’ exception from pytest.xfail() or + pytest.skip(), we now unwrap it to have the desired effect on Pytest. + * Trio 0.22.0 deprecated MultiError in favor of the standard-library + (or backported) ExceptionGroup type; pytest-trio now uses ExceptionGroup + exclusively and therefore requires Trio 0.22.0 or later. (#128) + * Dropped support for end-of-life Python 3.6, and the async_generator library + necessary to support it, and started testing on Python 3.10 and 3.11. (#129) + ------------------------------------------------------------------- Thu Nov 5 14:05:47 UTC 2020 - Marketa Machova diff --git a/python-pytest-trio.spec b/python-pytest-trio.spec index c15bce3..f6564ef 100644 --- a/python-pytest-trio.spec +++ b/python-pytest-trio.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytest-trio # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,29 +19,27 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-pytest-trio -Version: 0.7.0 +Version: 0.8.0 Release: 0 Summary: Pytest plugin for trio -License: MIT OR Apache-2.0 +License: Apache-2.0 OR MIT URL: https://github.com/python-trio/pytest-trio Source: https://github.com/python-trio/pytest-trio/archive/v%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-async_generator >= 1.9 Requires: python-contextvars >= 2.1 -Requires: python-outcome -Requires: python-pytest >= 3.6 -Requires: python-trio >= 0.15.0 +Requires: python-outcome >= 1.1.0 +Requires: python-pytest >= 7.2.0 +Requires: python-trio >= 0.22.0 BuildArch: noarch # SECTION test requirements -BuildRequires: %{python_module async_generator >= 1.9} BuildRequires: %{python_module contextvars >= 2.1} BuildRequires: %{python_module hypothesis >= 3.64} -BuildRequires: %{python_module outcome} +BuildRequires: %{python_module outcome >= 1.1.0} # we really need newer pytest in tests than is required by the package -BuildRequires: %{python_module pytest >= 6.0.0} -BuildRequires: %{python_module trio >= 0.15.0} +BuildRequires: %{python_module pytest >= 7.2.0} +BuildRequires: %{python_module trio >= 0.22.0} # /SECTION %python_subpackages diff --git a/v0.7.0.tar.gz b/v0.7.0.tar.gz deleted file mode 100644 index cba9560..0000000 --- a/v0.7.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3a4b44f84722ed943d2a02764745920c121b318674695d1240d1ebf9058853aa -size 51884 diff --git a/v0.8.0.tar.gz b/v0.8.0.tar.gz new file mode 100644 index 0000000..aa4cc3c --- /dev/null +++ b/v0.8.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6b253f5f8d0c800a6212de7e0515a6f3988e89ed7f577e9bf64407a3593f7d7d +size 51372