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
This commit is contained in:
Tomáš Chvátal
2020-10-12 06:48:03 +00:00
committed by Git OBS Bridge
parent 026d3c9ca6
commit 65b39d874a
2 changed files with 18 additions and 3 deletions

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Sun Oct 11 16:51:05 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
- 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 <mcalabkova@suse.com>

View File

@@ -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