diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/hypothesis-python-3.66.6.tar.gz b/hypothesis-python-3.66.6.tar.gz deleted file mode 100644 index 47e53a5..0000000 --- a/hypothesis-python-3.66.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7a8dd8d0c81c432ade0d0e8267c31a9877a01ff9bb81763d26e6678342dd5591 -size 524705 diff --git a/hypothesis-python-3.71.0.tar.gz b/hypothesis-python-3.71.0.tar.gz new file mode 100644 index 0000000..8c3355c --- /dev/null +++ b/hypothesis-python-3.71.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a208ee16c426811282c8d3093672a4995ea799c741ffa94992c0a0c76d869b8b +size 543336 diff --git a/python-hypothesis.changes b/python-hypothesis.changes index 7aceef2..d9d181a 100644 --- a/python-hypothesis.changes +++ b/python-hypothesis.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Sun Sep 9 22:39:31 CEST 2018 - Matěj Cepl + +- Add multibuild to allow running tests. + +------------------------------------------------------------------- +Sat Sep 8 19:08:09 UTC 2018 - Arun Persaud + +- 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 diff --git a/python-hypothesis.spec b/python-hypothesis.spec index 7758470..2305f69 100644 --- a/python-hypothesis.spec +++ b/python-hypothesis.spec @@ -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