From 6944fb43e579b65741356a1472a10e3affcdf12673b23768a13cdbef43051273 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 9 Jun 2020 07:42:49 +0000 Subject: [PATCH] - Update to 0.6.0: * Incompatible change: if you use yield inside a Trio fixture, and the yield gets cancelled (for example, due to a background task crashing), then the yield will now raise :exc:`trio.Cancelled`. * Updated for compatibility with Trio v0.15.0. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-trio?expand=0&rev=5 --- pytest-trio-0.5.2.tar.gz | 3 --- python-pytest-trio.changes | 9 +++++++++ python-pytest-trio.spec | 22 ++++++++++------------ v0.6.0.tar.gz | 3 +++ 4 files changed, 22 insertions(+), 15 deletions(-) delete mode 100644 pytest-trio-0.5.2.tar.gz create mode 100644 v0.6.0.tar.gz diff --git a/pytest-trio-0.5.2.tar.gz b/pytest-trio-0.5.2.tar.gz deleted file mode 100644 index 4362ccc..0000000 --- a/pytest-trio-0.5.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e04167268c725f36e3d6f81e357aec42e5a6995932db6200fda470b0ed8a9444 -size 36341 diff --git a/python-pytest-trio.changes b/python-pytest-trio.changes index 7ddb97e..646d220 100644 --- a/python-pytest-trio.changes +++ b/python-pytest-trio.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Tue Jun 9 07:31:17 UTC 2020 - Tomáš Chvátal + +- Update to 0.6.0: + * Incompatible change: if you use yield inside a Trio fixture, + and the yield gets cancelled (for example, due to a background + task crashing), then the yield will now raise :exc:`trio.Cancelled`. + * Updated for compatibility with Trio v0.15.0. + ------------------------------------------------------------------- Sat Sep 14 11:52:57 UTC 2019 - John Vandenberg diff --git a/python-pytest-trio.spec b/python-pytest-trio.spec index 5d6897d..8a6a996 100644 --- a/python-pytest-trio.spec +++ b/python-pytest-trio.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytest-trio # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,26 +19,28 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-pytest-trio -Version: 0.5.2 +Version: 0.6.0 Release: 0 Summary: Pytest plugin for trio License: MIT OR Apache-2.0 -Group: Development/Languages/Python URL: https://github.com/python-trio/pytest-trio -Source: file:///home/herman/OBS/home:Simmphonie:python/python-pytest-trio/pytest-trio-%{version}.tar.gz#/pytest-trio-%{version}.tar.gz +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-outcome Requires: python-pytest >= 3.6 -Requires: python-trio >= 0.11 +Requires: python-trio >= 0.15.0 BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module async_generator >= 1.9} BuildRequires: %{python_module contextvars >= 2.1} -BuildRequires: %{python_module hypothesis} +BuildRequires: %{python_module hypothesis >= 3.64} +BuildRequires: %{python_module outcome} BuildRequires: %{python_module pytest >= 3.6} -BuildRequires: %{python_module trio >= 0.11} +BuildRequires: %{python_module pytest-cov} +BuildRequires: %{python_module trio >= 0.15.0} # /SECTION %python_subpackages @@ -48,10 +50,6 @@ This is a pytest plugin to help you test projects that use Trio, a friendly libr %prep %setup -q -n pytest-trio-%{version} -# Temporary hack on a temporary hack -# https://github.com/pytest-dev/pytest/issues/4039 -sed -i /RemovedInPytest4Warning/d pytest_trio/_tests/conftest.py - %build %python_build @@ -60,7 +58,7 @@ sed -i /RemovedInPytest4Warning/d pytest_trio/_tests/conftest.py %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test +%pytest %files %{python_files} %doc README.rst diff --git a/v0.6.0.tar.gz b/v0.6.0.tar.gz new file mode 100644 index 0000000..c08cfd6 --- /dev/null +++ b/v0.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:062b808f8f02597054aab1125c94431540b8955183f8ea75494f438f9f263b3d +size 37384