From f13aef4af8b018ced2aed478a822f1860bfc46866c7809c44d96704af8e87971 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 30 Apr 2019 13:27:39 +0000 Subject: [PATCH 1/4] - Update to 4.18.2: * This patch makes Hypothesis compatible with the Python 3.8 alpha * This release adds the functions() strategy * This release refactors stateful rule selection * This patch allows Hypothesis to try a few more examples after finding the first bug * This release adds the strategy broadcastable_shapes() - Make sure the tests are executed (and fail at the moment, needs bit more love) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=99 --- hypothesis-python-4.16.0.tar.gz | 3 --- hypothesis-python-4.18.2.tar.gz | 3 +++ python-hypothesis.changes | 12 +++++++++++ python-hypothesis.spec | 37 ++++++++++++++++----------------- 4 files changed, 33 insertions(+), 22 deletions(-) delete mode 100644 hypothesis-python-4.16.0.tar.gz create mode 100644 hypothesis-python-4.18.2.tar.gz diff --git a/hypothesis-python-4.16.0.tar.gz b/hypothesis-python-4.16.0.tar.gz deleted file mode 100644 index 34991fb..0000000 --- a/hypothesis-python-4.16.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fae5b4271292e351f87fa74443b6e9c220f431372af8cbc42fa365206df3626c -size 1176205 diff --git a/hypothesis-python-4.18.2.tar.gz b/hypothesis-python-4.18.2.tar.gz new file mode 100644 index 0000000..08fb046 --- /dev/null +++ b/hypothesis-python-4.18.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:223a1aa4a272a3cd48f6be2bef6c47792829339292ca76e1c968e8c41fbaf300 +size 1183174 diff --git a/python-hypothesis.changes b/python-hypothesis.changes index 47bcbd0..0b7ea4d 100644 --- a/python-hypothesis.changes +++ b/python-hypothesis.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Tue Apr 30 13:01:05 UTC 2019 - Tomáš Chvátal + +- Update to 4.18.2: + * This patch makes Hypothesis compatible with the Python 3.8 alpha + * This release adds the functions() strategy + * This release refactors stateful rule selection + * This patch allows Hypothesis to try a few more examples after finding the first bug + * This release adds the strategy broadcastable_shapes() +- Make sure the tests are executed (and fail at the moment, needs + bit more love) + ------------------------------------------------------------------- Sat Apr 13 03:07:02 UTC 2019 - Arun Persaud diff --git a/python-hypothesis.spec b/python-hypothesis.spec index 51477a5..bda1dca 100644 --- a/python-hypothesis.spec +++ b/python-hypothesis.spec @@ -16,21 +16,19 @@ # -# Note: tests require some very specific tooling, context-specific environment -# variables (such as checking for travis), and very specific versions of all -# dependencies. It does not appear feasible to get it to work in a consistent -# manner. %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oldpython python %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" -%define test 1 +%define psuffix -test %bcond_without test %else +%define psuffix %{nil} %bcond_with test %endif %bcond_without python2 -Version: 4.16.0 +Name: python-hypothesis%{psuffix} +Version: 4.18.2 Release: 0 Summary: A library for property based testing License: MPL-2.0 @@ -42,27 +40,30 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-attrs >= 16.0.0 Recommends: python-Django >= 1.11 -Recommends: python-dateutil -Recommends: python-dpcontracts Recommends: python-lark-parser >= 0.6.5 Recommends: python-numpy >= 1.9.0 Recommends: python-pandas Recommends: python-pytest >= 3.0.0 +Recommends: python-python-dateutil Recommends: python-pytz >= 2014.1 BuildArch: noarch -%if %{with test} -Name: python-hypothesis-%{flavor} -%else -Name: python-hypothesis +%ifpython3 +Recommends: python-dpcontracts %endif %if %{with test} # SECTION test requirements +BuildRequires: %{python_module Django >= 1.11} BuildRequires: %{python_module attrs >= 16.0.0} BuildRequires: %{python_module flaky} +BuildRequires: %{python_module hypothesis >= %{version}} +BuildRequires: %{python_module lark-parser >= 0.6.5} BuildRequires: %{python_module lark-parser} BuildRequires: %{python_module mock} +BuildRequires: %{python_module numpy >= 1.9.0} +BuildRequires: %{python_module pandas} BuildRequires: %{python_module pytest >= 3.0.0} -BuildRequires: python3-Django +BuildRequires: %{python_module python-dateutil} +BuildRequires: %{python_module pytz >= 2014.1} BuildRequires: python3-dpcontracts %endif # /SECTION @@ -102,16 +103,14 @@ $python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/hy %endif %check -%if %{with test} && ! %{with python2} -%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} -py.test-%{$python_bin_suffix} tests -} -rm -rf %{buildroot}%{_datarootdir}/python* +%if %{with test} +export DJANGO_SETTINGS_MODULE=tests.django.toys.settings +%python_expand PYTHONPATH=%{$python_sitelib} py.test-%{$python_bin_suffix} -v tests %endif +%if !%{with test} %files %{python_files} %license ../LICENSE.txt -%if !%{with test} %doc ../CITATION README.rst docs/changes.rst %{python_sitelib}/hypothesis* %endif From d0682e8a4a842c9f98301c7cfea627d011876f6fa7d7a59be4e4de6f043597ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 6 May 2019 09:40:58 +0000 Subject: [PATCH 2/4] - More love for the tests to make sure we execute and run them + skip/remove the obvious failures that are irelevant OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=100 --- python-hypothesis.changes | 6 ++++++ python-hypothesis.spec | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/python-hypothesis.changes b/python-hypothesis.changes index 0b7ea4d..f945695 100644 --- a/python-hypothesis.changes +++ b/python-hypothesis.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon May 6 09:40:28 UTC 2019 - Tomáš Chvátal + +- More love for the tests to make sure we execute and run them + + skip/remove the obvious failures that are irelevant + ------------------------------------------------------------------- Tue Apr 30 13:01:05 UTC 2019 - Tomáš Chvátal diff --git a/python-hypothesis.spec b/python-hypothesis.spec index bda1dca..a78b360 100644 --- a/python-hypothesis.spec +++ b/python-hypothesis.spec @@ -88,6 +88,12 @@ work on Jython or on Python 3.0 through 3.2. %prep %setup -q -n hypothesis-hypothesis-python-%{version}/hypothesis-python +# remove version specific tests for ease +rm -r tests/py2 +rm -r tests/py3 +rm -r tests/dpcontracts # py3 only +# the django fails to initialize +rm -r tests/django %build %python_build @@ -104,7 +110,6 @@ $python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/hy %check %if %{with test} -export DJANGO_SETTINGS_MODULE=tests.django.toys.settings %python_expand PYTHONPATH=%{$python_sitelib} py.test-%{$python_bin_suffix} -v tests %endif From 23746c0d7877fcd550a118309ff9caf4a80a85a8894ae9a4bc75fa64eb1c2264 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 6 May 2019 10:02:51 +0000 Subject: [PATCH 3/4] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=101 --- python-hypothesis.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python-hypothesis.spec b/python-hypothesis.spec index a78b360..493740d 100644 --- a/python-hypothesis.spec +++ b/python-hypothesis.spec @@ -110,7 +110,8 @@ $python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/hy %check %if %{with test} -%python_expand PYTHONPATH=%{$python_sitelib} py.test-%{$python_bin_suffix} -v tests +# test_prints_statistics_given_option_under_xdist - wrong xdist opts +%python_expand PYTHONPATH=%{$python_sitelib} py.test-%{$python_bin_suffix} -v tests -k 'not test_prints_statistics_given_option_under_xdist' %endif %if !%{with test} From 83084aa14312697282cfcac268f70395ffd1e5f7eab8c9d948b9fae405751177 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 7 May 2019 08:59:27 +0000 Subject: [PATCH 4/4] - Remove pandas dependency to make ring1 more happy - Update to 4.22.0: * Various small tweaks only OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=102 --- hypothesis-python-4.18.2.tar.gz | 3 --- hypothesis-python-4.22.0.tar.gz | 3 +++ python-hypothesis.changes | 7 +++++++ python-hypothesis.spec | 7 ++++--- 4 files changed, 14 insertions(+), 6 deletions(-) delete mode 100644 hypothesis-python-4.18.2.tar.gz create mode 100644 hypothesis-python-4.22.0.tar.gz diff --git a/hypothesis-python-4.18.2.tar.gz b/hypothesis-python-4.18.2.tar.gz deleted file mode 100644 index 08fb046..0000000 --- a/hypothesis-python-4.18.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:223a1aa4a272a3cd48f6be2bef6c47792829339292ca76e1c968e8c41fbaf300 -size 1183174 diff --git a/hypothesis-python-4.22.0.tar.gz b/hypothesis-python-4.22.0.tar.gz new file mode 100644 index 0000000..a9ebea2 --- /dev/null +++ b/hypothesis-python-4.22.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:76a656bdd3c1057eca29140e7ec4072e56340cfebdddf559f4fcdb99ba3b1936 +size 1184756 diff --git a/python-hypothesis.changes b/python-hypothesis.changes index f945695..c697eb6 100644 --- a/python-hypothesis.changes +++ b/python-hypothesis.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue May 7 08:58:44 UTC 2019 - Tomáš Chvátal + +- Remove pandas dependency to make ring1 more happy +- Update to 4.22.0: + * Various small tweaks only + ------------------------------------------------------------------- Mon May 6 09:40:28 UTC 2019 - Tomáš Chvátal diff --git a/python-hypothesis.spec b/python-hypothesis.spec index 493740d..9aa4464 100644 --- a/python-hypothesis.spec +++ b/python-hypothesis.spec @@ -28,7 +28,7 @@ %endif %bcond_without python2 Name: python-hypothesis%{psuffix} -Version: 4.18.2 +Version: 4.22.0 Release: 0 Summary: A library for property based testing License: MPL-2.0 @@ -60,7 +60,6 @@ BuildRequires: %{python_module lark-parser >= 0.6.5} BuildRequires: %{python_module lark-parser} BuildRequires: %{python_module mock} BuildRequires: %{python_module numpy >= 1.9.0} -BuildRequires: %{python_module pandas} BuildRequires: %{python_module pytest >= 3.0.0} BuildRequires: %{python_module python-dateutil} BuildRequires: %{python_module pytz >= 2014.1} @@ -93,7 +92,9 @@ rm -r tests/py2 rm -r tests/py3 rm -r tests/dpcontracts # py3 only # the django fails to initialize -rm -r tests/django +rm -r tests/django +# do not pull in pandas as a dep in ring1; it slows down things too much +rm -r tests/pandas %build %python_build