forked from pool/python-hypothesis
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:
parent
fd384a458d
commit
92dd3f33b7
@ -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>
|
Wed Nov 11 12:15:41 UTC 2020 - Dirk Mueller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -61,6 +61,7 @@ Recommends: python-pandas >= 0.19
|
|||||||
Recommends: python-pytest >= 4.3
|
Recommends: python-pytest >= 4.3
|
||||||
Recommends: python-python-dateutil >= 1.4
|
Recommends: python-python-dateutil >= 1.4
|
||||||
Recommends: python-pytz >= 2014.1
|
Recommends: python-pytz >= 2014.1
|
||||||
|
Recommends: python-redis >= 3.0.0
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
@ -68,6 +69,7 @@ BuildRequires: %{python_module Django >= 2.2}
|
|||||||
BuildRequires: %{python_module attrs >= 19.2.0}
|
BuildRequires: %{python_module attrs >= 19.2.0}
|
||||||
BuildRequires: %{python_module black}
|
BuildRequires: %{python_module black}
|
||||||
BuildRequires: %{python_module dpcontracts >= 0.6.0}
|
BuildRequires: %{python_module dpcontracts >= 0.6.0}
|
||||||
|
BuildRequires: %{python_module fakeredis}
|
||||||
BuildRequires: %{python_module flaky}
|
BuildRequires: %{python_module flaky}
|
||||||
BuildRequires: %{python_module hypothesis = %{version}}
|
BuildRequires: %{python_module hypothesis = %{version}}
|
||||||
BuildRequires: %{python_module lark-parser >= 0.6.5}
|
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}
|
%if !%{with test}
|
||||||
%python_install
|
%python_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
%endif
|
|
||||||
|
|
||||||
%python_clone -a %{buildroot}%{_bindir}/hypothesis
|
%python_clone -a %{buildroot}%{_bindir}/hypothesis
|
||||||
|
%endif
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative hypothesis
|
%python_install_alternative hypothesis
|
||||||
|
Loading…
Reference in New Issue
Block a user