forked from pool/python-pytest-trio
Accepting request 812803 from devel:languages:python:pytest
- 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/request/show/812803
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-trio?expand=0&rev=3
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e04167268c725f36e3d6f81e357aec42e5a6995932db6200fda470b0ed8a9444
|
||||
size 36341
|
||||
@@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 9 07:31:17 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- 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 <jayvdb@gmail.com>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
3
v0.6.0.tar.gz
Normal file
3
v0.6.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:062b808f8f02597054aab1125c94431540b8955183f8ea75494f438f9f263b3d
|
||||
size 37384
|
||||
Reference in New Issue
Block a user