1
0

Accepting request 849393 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/849393
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=51
This commit is contained in:
Dominique Leuenberger 2020-11-21 11:41:17 +00:00 committed by Git OBS Bridge
commit 1d7ce7e0cc
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