From e3bb9a4555002914feb84d3d3d05a8976da7d496383172fd4c3cf2d721c1bfc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sat, 8 Sep 2018 19:49:29 +0000 Subject: [PATCH 1/3] Accepting request 634494 from home:apersaud:branches:devel:languages:python update to latest version OBS-URL: https://build.opensuse.org/request/show/634494 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=81 --- hypothesis-python-3.66.6.tar.gz | 3 --- hypothesis-python-3.71.0.tar.gz | 3 +++ python-hypothesis.changes | 9 +++++++++ python-hypothesis.spec | 8 ++++---- 4 files changed, 16 insertions(+), 7 deletions(-) delete mode 100644 hypothesis-python-3.66.6.tar.gz create mode 100644 hypothesis-python-3.71.0.tar.gz 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..d49fbab 100644 --- a/python-hypothesis.changes +++ b/python-hypothesis.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +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..da6efff 100644 --- a/python-hypothesis.spec +++ b/python-hypothesis.spec @@ -27,7 +27,7 @@ # dependency on pytest %bcond_with test Name: python-hypothesis -Version: 3.66.6 +Version: 3.71.0 Release: 0 Summary: A library for property based testing License: MPL-2.0 @@ -43,8 +43,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 +52,7 @@ 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} %endif # /SECTION %if %{with python2} From 2c4ee619545926151b4bd86cfb28501997c42c5ff110f37c977f329a89283d0a Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 13 Sep 2018 14:27:57 +0000 Subject: [PATCH 2/3] Accepting request 635548 from home:mcepl:work Add multibuild to allow running tests. OBS-URL: https://build.opensuse.org/request/show/635548 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=82 --- _multibuild | 3 +++ python-hypothesis.changes | 5 +++++ python-hypothesis.spec | 23 ++++++++++++++++++----- 3 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 _multibuild 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/python-hypothesis.changes b/python-hypothesis.changes index d49fbab..d9d181a 100644 --- a/python-hypothesis.changes +++ b/python-hypothesis.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +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 diff --git a/python-hypothesis.spec b/python-hypothesis.spec index da6efff..1c122cc 100644 --- a/python-hypothesis.spec +++ b/python-hypothesis.spec @@ -23,10 +23,19 @@ %{?!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 +%endif Version: 3.71.0 Release: 0 Summary: A library for property based testing @@ -53,6 +62,7 @@ BuildRequires: %{python_module coverage} BuildRequires: %{python_module flaky} BuildRequires: %{python_module mock} BuildRequires: %{python_module pytest >= 3.0.0} +BuildRequires: python3-Django %endif # /SECTION %if %{with python2} @@ -89,16 +99,19 @@ $python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/hy %fdupes %{buildroot}%{$python_sitelib} } -%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 From 746fb60f0c080ad04094b37303ae0cc30000d6ac6a6f9306f75784a386287404 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 17 Sep 2018 13:03:22 +0000 Subject: [PATCH 3/3] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=83 --- python-hypothesis.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python-hypothesis.spec b/python-hypothesis.spec index 1c122cc..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/ # @@ -92,12 +92,14 @@ 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 %check %if %{with test} && ! %{with python2}