Accepting request 1042688 from home:mcalabkova:branches:devel:languages:python:pytest

- 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
This commit is contained in:
2022-12-13 14:19:16 +00:00
committed by Git OBS Bridge
parent 6b7064daab
commit ccb4ed2ac9
4 changed files with 25 additions and 14 deletions

View File

@@ -1,3 +1,16 @@
-------------------------------------------------------------------
Tue Dec 13 13:17:32 UTC 2022 - Markéta Machová <mmachova@suse.com>
- 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 <mmachova@suse.com> Thu Nov 5 14:05:47 UTC 2020 - Marketa Machova <mmachova@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pytest-trio # 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 # 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
@@ -19,29 +19,27 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1 %define skip_python2 1
Name: python-pytest-trio Name: python-pytest-trio
Version: 0.7.0 Version: 0.8.0
Release: 0 Release: 0
Summary: Pytest plugin for trio 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 URL: https://github.com/python-trio/pytest-trio
Source: https://github.com/python-trio/pytest-trio/archive/v%{version}.tar.gz Source: https://github.com/python-trio/pytest-trio/archive/v%{version}.tar.gz
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-async_generator >= 1.9
Requires: python-contextvars >= 2.1 Requires: python-contextvars >= 2.1
Requires: python-outcome Requires: python-outcome >= 1.1.0
Requires: python-pytest >= 3.6 Requires: python-pytest >= 7.2.0
Requires: python-trio >= 0.15.0 Requires: python-trio >= 0.22.0
BuildArch: noarch BuildArch: noarch
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module async_generator >= 1.9}
BuildRequires: %{python_module contextvars >= 2.1} BuildRequires: %{python_module contextvars >= 2.1}
BuildRequires: %{python_module hypothesis >= 3.64} 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 # we really need newer pytest in tests than is required by the package
BuildRequires: %{python_module pytest >= 6.0.0} BuildRequires: %{python_module pytest >= 7.2.0}
BuildRequires: %{python_module trio >= 0.15.0} BuildRequires: %{python_module trio >= 0.22.0}
# /SECTION # /SECTION
%python_subpackages %python_subpackages

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3a4b44f84722ed943d2a02764745920c121b318674695d1240d1ebf9058853aa
size 51884

BIN
v0.8.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.