Accepting request 849146 from home:wicked:qubes-build

Fix failing tests

OBS-URL: https://build.opensuse.org/request/show/849146
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=138
This commit is contained in:
Markéta Machová 2020-11-19 11:58:51 +00:00 committed by Git OBS Bridge
parent fd384a458d
commit 92dd3f33b7
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Nov 17 18:22:29 UTC 2020 - Teemu Mannermaa <wicked@iki.fi>
- Fix failing tests:
* Also skip %python_clone during build of tests flavor.
* Recommend python-redis and BR python-fakeredis that are needed
for new redis based ExampleDatabase implemention.
-------------------------------------------------------------------
Wed Nov 11 12:15:41 UTC 2020 - Dirk Mueller <dmueller@suse.com>

View File

@ -61,6 +61,7 @@ Recommends: python-pandas >= 0.19
Recommends: python-pytest >= 4.3
Recommends: python-python-dateutil >= 1.4
Recommends: python-pytz >= 2014.1
Recommends: python-redis >= 3.0.0
BuildArch: noarch
%if %{with test}
# SECTION test requirements
@ -68,6 +69,7 @@ BuildRequires: %{python_module Django >= 2.2}
BuildRequires: %{python_module attrs >= 19.2.0}
BuildRequires: %{python_module black}
BuildRequires: %{python_module dpcontracts >= 0.6.0}
BuildRequires: %{python_module fakeredis}
BuildRequires: %{python_module flaky}
BuildRequires: %{python_module hypothesis = %{version}}
BuildRequires: %{python_module lark-parser >= 0.6.5}
@ -108,9 +110,9 @@ sed -i 's/assert (arr == 0.0)/assert np.asarray(arr == 0.0)/' tests/numpy/test_g
%if !%{with test}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%python_clone -a %{buildroot}%{_bindir}/hypothesis
%endif
%post
%python_install_alternative hypothesis