From 65b39d874adf0b7db02b82071eca344513778bdae6619ca90a7837ed8ef966dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 12 Oct 2020 06:48:03 +0000 Subject: [PATCH] Accepting request 841084 from home:jayvdb:py-submit - Add missing runtime dependency on contextvars - Deactivate low value hypothesis generated tests - Remove use of pytest-cov in %check - Remove tests from runtime package OBS-URL: https://build.opensuse.org/request/show/841084 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-trio?expand=0&rev=9 --- python-pytest-trio.changes | 8 ++++++++ python-pytest-trio.spec | 13 ++++++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/python-pytest-trio.changes b/python-pytest-trio.changes index 474c4b9..2a54cb3 100644 --- a/python-pytest-trio.changes +++ b/python-pytest-trio.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Sun Oct 11 16:51:05 UTC 2020 - John Vandenberg + +- Add missing runtime dependency on contextvars +- Deactivate low value hypothesis generated tests +- Remove use of pytest-cov in %check +- Remove tests from runtime package + ------------------------------------------------------------------- Tue Aug 25 11:18:03 UTC 2020 - Marketa Calabkova diff --git a/python-pytest-trio.spec b/python-pytest-trio.spec index 79cf156..36bb3b9 100644 --- a/python-pytest-trio.spec +++ b/python-pytest-trio.spec @@ -30,6 +30,7 @@ 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 @@ -39,7 +40,6 @@ 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 pytest-cov} # 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} @@ -47,18 +47,25 @@ BuildRequires: %{python_module trio >= 0.15.0} %python_subpackages %description -This is a pytest plugin to help you test projects that use Trio, a friendly library for concurrency and async I/O in Python. +This is a pytest plugin to help you test projects that use Trio, +a friendly library for concurrency and async I/O in Python. %prep %setup -q -n pytest-trio-%{version} %patch0 -p1 +rm pytest.ini +rm pytest_trio/_tests/test_hypothesis_interaction.py +mv pytest_trio/_tests/ tests + %build %python_build %install %python_install -%python_expand %fdupes %{buildroot}%{$python_sitelib} +%{python_expand rm -r %{buildroot}%{$python_sitelib}/tests/ +%fdupes %{buildroot}%{$python_sitelib} +} %check %pytest