1
0

Accepting request 637683 from devel:languages:python

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/637683
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=28
This commit is contained in:
Dominique Leuenberger 2018-10-01 07:06:53 +00:00 committed by Git OBS Bridge
commit f11541762c
5 changed files with 45 additions and 13 deletions

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7a8dd8d0c81c432ade0d0e8267c31a9877a01ff9bb81763d26e6678342dd5591
size 524705

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a208ee16c426811282c8d3093672a4995ea799c741ffa94992c0a0c76d869b8b
size 543336

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Sun Sep 9 22:39:31 CEST 2018 - Matěj Cepl <mcepl@suse.com>
- Add multibuild to allow running tests.
-------------------------------------------------------------------
Sat Sep 8 19:08:09 UTC 2018 - Arun Persaud <arun@gmx.de>
- specfile:
* updated pytest version, specified pytz version (from setup.py)
- update to version 3.71.0:
* many changes, see https://hypothesis.readthedocs.io/en/latest/changes.html
-------------------------------------------------------------------
Wed Sep 5 10:02:37 UTC 2018 - Matěj Cepl <mcepl@suse.com>

View File

@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@ -23,11 +23,20 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
%bcond_without python2
# Unfortunately we cannot test by default, because of the circular
# dependency on pytest
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define test 1
%bcond_without test
%else
%bcond_with test
%endif
%if %{with test}
Name: python-hypothesis-%{flavor}
%else
Name: python-hypothesis
Version: 3.66.6
%endif
Version: 3.71.0
Release: 0
Summary: A library for property based testing
License: MPL-2.0
@ -43,8 +52,8 @@ Recommends: python-Django >= 1.11
Recommends: python-Faker >= 0.7.0
Recommends: python-numpy >= 1.9.0
Recommends: python-pandas
Recommends: python-pytest >= 2.8.0
Recommends: python-pytz
Recommends: python-pytest >= 3.0.0
Recommends: python-pytz >= 2014.1
BuildArch: noarch
%if %{with test}
# SECTION test requirements
@ -52,7 +61,8 @@ BuildRequires: %{python_module attrs >= 16.0.0}
BuildRequires: %{python_module coverage}
BuildRequires: %{python_module flaky}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest >= 2.8.0}
BuildRequires: %{python_module pytest >= 3.0.0}
BuildRequires: python3-Django
%endif
# /SECTION
%if %{with python2}
@ -82,23 +92,28 @@ work on Jython or on Python 3.0 through 3.2.
%python_build
%install
%if !%{with test}
%python_install
%{python_expand \
$python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/hypothesis/
$python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/hypothesis/
%fdupes %{buildroot}%{$python_sitelib}
}
%endif
%if %{with test}
%check
%if %{with test} && ! %{with python2}
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
py.test-%{$python_bin_suffix} test
py.test-%{$python_bin_suffix} tests
}
rm -rf %{buildroot}%{_datarootdir}/python*
%endif
%files %{python_files}
%doc ../CITATION README.rst
%license ../LICENSE.txt
%if !%{with test}
%doc ../CITATION README.rst
%{python_sitelib}/hypothesis*
%endif
%changelog