From 465d9067f41653bd5c3158b64325316736527445844ec9ac9924f683c27bd80a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 31 Aug 2023 10:17:27 +0000 Subject: [PATCH] Accepting request 1108226 from home:bnavigator:branches:devel:languages:python MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update to 6.82.7 * This patch updates our autoformatting tools, improving our code style without any API changes. - Release 6.82.6 * This patch enables and fixes many more of ruff‘s lint rules. - Release 6.82.5 * Fixes the error message for missing [cli] extra. - Use slow 'obs' profile for testing and disable healthcheck tests because of it. OBS-URL: https://build.opensuse.org/request/show/1108226 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=172 --- _service | 2 +- hypothesis-python-6.82.4.tar.gz | 3 --- hypothesis-python-6.82.7.tar.gz | 3 +++ python-hypothesis.changes | 13 +++++++++++ python-hypothesis.spec | 39 ++++++++++++++++++++++++++------- 5 files changed, 48 insertions(+), 12 deletions(-) delete mode 100644 hypothesis-python-6.82.4.tar.gz create mode 100644 hypothesis-python-6.82.7.tar.gz diff --git a/_service b/_service index 89764b6..0e695ea 100644 --- a/_service +++ b/_service @@ -2,7 +2,7 @@ https://github.com/HypothesisWorks/hypothesis.git git - hypothesis-python-6.82.4 + hypothesis-python-6.82.7 @PARENT_TAG@ hypothesis-python-(.*) hypothesis-python diff --git a/hypothesis-python-6.82.4.tar.gz b/hypothesis-python-6.82.4.tar.gz deleted file mode 100644 index f5cf7a4..0000000 --- a/hypothesis-python-6.82.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ac75ec5d6bc06064af1d7ce18ce16cf44ba4872ad553dc5b778946694e9034fd -size 819081 diff --git a/hypothesis-python-6.82.7.tar.gz b/hypothesis-python-6.82.7.tar.gz new file mode 100644 index 0000000..4168604 --- /dev/null +++ b/hypothesis-python-6.82.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:68caafc9ca1908e0ac3c6b1f2bfb56b50fbf3f185d4a1899a43ff002586cc6ca +size 818596 diff --git a/python-hypothesis.changes b/python-hypothesis.changes index 046c89d..342dccf 100644 --- a/python-hypothesis.changes +++ b/python-hypothesis.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Tue Aug 29 17:43:45 UTC 2023 - Ben Greiner + +- Update to 6.82.7 + * This patch updates our autoformatting tools, improving our code + style without any API changes. +- Release 6.82.6 + * This patch enables and fixes many more of ruff‘s lint rules. +- Release 6.82.5 + * Fixes the error message for missing [cli] extra. +- Use slow 'obs' profile for testing and disable healthcheck + tests because of it. + ------------------------------------------------------------------ Mon Aug 14 07:03:21 UTC 2023 - Dirk Müller diff --git a/python-hypothesis.spec b/python-hypothesis.spec index d4ea123..c281970 100644 --- a/python-hypothesis.spec +++ b/python-hypothesis.spec @@ -37,7 +37,7 @@ ExclusiveArch: do_not_build %endif %{?sle15_python_module_pythons} Name: python-hypothesis%{psuffix} -Version: 6.82.4 +Version: 6.82.7 Release: 0 Summary: A library for property based testing License: MPL-2.0 @@ -149,35 +149,58 @@ donttest="test_updating_the_file_include_new_shrinkers" donttest+=" or test_can_learn_to_normalize_the_unnormalized" # Fail because typing comparison donttest+=" or test_ghostwriter_on_hypothesis" +if [ $(getconf LONG_BIT) -eq 32 ]; then +donttest+=" or test_gets_right_dtype_for_empty_indices" +donttest+=" or test_has_string_of_max_length" +fi +# https://github.com/HypothesisWorks/hypothesis/issues/3704 +donttest+=" or (test_make_full_patch and covering)" +donttest+=" or test_overflowing_integers_are_deprecated" +# we're disabling the healthcheck below, obs is too flaky with it +donttest+=" or fails_health_check or slow_tests or on_healthcheck or a_health_check" +donttest+=" or test_statistics_with_events_and_target" +donttest+=" or test_self_ref_regression" # adapted from pytest.ini in github repo toplevel dir (above hypothesis-python) echo '[pytest] addopts= + -rfE --strict-markers --tb=native - -p pytester --runpytest=subprocess + -p pytester + --runpytest=subprocess + --hypothesis-profile=obs -v -n auto - -ra +xfail_strict = False filterwarnings = - error + # error <-- disabled for obs packaging ignore::hypothesis.errors.NonInteractiveExampleWarning # https://github.com/pandas-dev/pandas/issues/41199 default:Creating a LegacyVersion has been deprecated and will be removed in the next major release:DeprecationWarning default:distutils Version classes are deprecated\. Use packaging\.version instead:DeprecationWarning # https://github.com/pandas-dev/pandas/issues/32056 (?) default:numpy\.ufunc size changed, may indicate binary incompatibility\. Expected 216 from C header, got 232 from PyObject:RuntimeWarning - # https://github.com/lark-parser/lark/pull/1140 - default:module 'sre_constants' is deprecated:DeprecationWarning - default:module 'sre_parse' is deprecated:DeprecationWarning # https://github.com/pandas-dev/pandas/issues/34848 default:`np\.bool` is a deprecated alias for the builtin `bool`:DeprecationWarning default:`np\.complex` is a deprecated alias for the builtin `complex`:DeprecationWarning default:`np\.object` is a deprecated alias for the builtin `object`:DeprecationWarning ' > pytest.ini +# increase test deadline for slow obs executions +echo " +import hypothesis + +hypothesis.settings.register_profile( + 'obs', + deadline=5000, + suppress_health_check=[ + hypothesis.HealthCheck.too_slow, + ] +) +" >> tests/conftest.py %if %{without complete_tests} export PYTEST_ADDOPTS="--ignore=tests/pandas/ --ignore=tests/redis/test_redis_exampledatabase.py" %endif -%pytest -c pytest.ini -k "not ($donttest)" tests +%pytest -c pytest.ini -k "not ($donttest)" tests; rm -rf .pytest_cache %endif %if !%{with test}