From 6c15f432a1ac36859a54874a0a823704b7c2a94843ede71a2536a92ee3807e53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 11 Oct 2023 12:12:14 +0000 Subject: [PATCH 1/2] Accepting request 1116915 from home:mimi_vx:branches:devel:languages:python - Update to 6.87.3 * This patch ensures that the :ref:`hypothesis codemod ` CLI will print a warning instead of stopping with an internal error if one of your files contains invalid syntax (:issue:`3759`). * This patch makes some small changes to our NumPy integration to ensure forward compatibility. * Fixes :issue:`3755`, where an internal condition turns out to be reachable after all. * This release deprecates use of :func:`~hypothesis.assume` and reject() outside of property-based tests, because these functions work by raising a special exception (:issue:`3743`). It also fixes some type annotations (:issue:`3753`). * Hotfix for :issue:`3747`, a bug in explain mode which is so rare that we missed it in six months of dogfooding. Thanks to :pypi:`mygrad` for discovering and promptly reporting this! * This patch improves the documentation of :obj:`@example(...).xfail() ` by adding a note about PEP 614, similar to :obj:`@example(...).via() `, and adds a warning when a strategy generates a test case which seems identical to one provided by an xfailed example. * This release enables the :obj:`~hypothesis.Phase.explain` :ref:`phase ` by default. We hope it helps you to understand why your failing tests have failed! * This patch switches some of our type annotations to use :obj:`typing.Literal` when only a few specific values are allowed, such as UUID or IP address versions. * This release deprecates the old whitelist/blacklist arguments to :func:`~hypothesis.strategies.characters`, in favor of include/exclude arguments which more clearly describe their effects on the set of characters which can be generated. OBS-URL: https://build.opensuse.org/request/show/1116915 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=174 --- _service | 8 ++-- hypothesis-python-6.82.7.tar.gz | 3 -- hypothesis-python-6.87.3.tar.gz | 3 ++ python-hypothesis.changes | 68 +++++++++++++++++++++++++++++++++ python-hypothesis.spec | 5 ++- 5 files changed, 78 insertions(+), 9 deletions(-) delete mode 100644 hypothesis-python-6.82.7.tar.gz create mode 100644 hypothesis-python-6.87.3.tar.gz diff --git a/_service b/_service index 0e695ea..454e82b 100644 --- a/_service +++ b/_service @@ -1,16 +1,16 @@ - + https://github.com/HypothesisWorks/hypothesis.git git - hypothesis-python-6.82.7 + hypothesis-python-6.87.3 @PARENT_TAG@ hypothesis-python-(.*) hypothesis-python hypothesis-python - + *.tar gz - + diff --git a/hypothesis-python-6.82.7.tar.gz b/hypothesis-python-6.82.7.tar.gz deleted file mode 100644 index 4168604..0000000 --- a/hypothesis-python-6.82.7.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:68caafc9ca1908e0ac3c6b1f2bfb56b50fbf3f185d4a1899a43ff002586cc6ca -size 818596 diff --git a/hypothesis-python-6.87.3.tar.gz b/hypothesis-python-6.87.3.tar.gz new file mode 100644 index 0000000..f542899 --- /dev/null +++ b/hypothesis-python-6.87.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fcfee0b6ad01a60b37fbe623eb9962a27ba9414452367d7038f56773ed999c32 +size 828672 diff --git a/python-hypothesis.changes b/python-hypothesis.changes index 342dccf..b250c4e 100644 --- a/python-hypothesis.changes +++ b/python-hypothesis.changes @@ -1,3 +1,71 @@ +------------------------------------------------------------------- +Wed Oct 11 09:18:10 UTC 2023 - Ondřej Súkup + +- Update to 6.87.3 + * This patch ensures that the :ref:`hypothesis codemod ` + CLI will print a warning instead of stopping with an internal error + if one of your files contains invalid syntax (:issue:`3759`). + * This patch makes some small changes to our NumPy integration + to ensure forward compatibility. + * Fixes :issue:`3755`, where an internal condition turns out to be + reachable after all. + * This release deprecates use of :func:`~hypothesis.assume` + and reject() outside of property-based tests, because these functions + work by raising a special exception (:issue:`3743`). + It also fixes some type annotations (:issue:`3753`). + * Hotfix for :issue:`3747`, a bug in explain mode which is so rare + that we missed it in six months of dogfooding. Thanks to :pypi:`mygrad` + for discovering and promptly reporting this! + * This patch improves the documentation of + :obj:`@example(...).xfail() ` by adding a note + about PEP 614, similar to :obj:`@example(...).via() `, + and adds a warning when a strategy generates a test case which + seems identical to one provided by an xfailed example. + * This release enables the :obj:`~hypothesis.Phase.explain` + :ref:`phase ` by default. We hope it helps you to understand + why your failing tests have failed! + * This patch switches some of our type annotations to use + :obj:`typing.Literal` when only a few specific values are allowed, + such as UUID or IP address versions. + * This release deprecates the old whitelist/blacklist arguments to + :func:`~hypothesis.strategies.characters`, in favor of include/exclude + arguments which more clearly describe their effects on the set + of characters which can be generated. + * You can :ref:`use Hypothesis' codemods ` to automatically + upgrade to the new argument names. In a future version, the old names + will start to raise a DeprecationWarning. + * This patch automatically disables the + :obj:`~hypothesis.HealthCheck.differing_executors` health check + for methods which are also pytest parametrized tests, because those + were mostly false alarms (:issue:`3733`). + * Building on recent releases, :func:`~hypothesis.strategies.characters` + now accepts _any_ codec=, not just "utf-8" and "ascii". + * This includes standard codecs from the :mod:`codecs` module and their aliases, + platform specific and user-registered codecs if they are available, + and python-specific text encodings (but not text transforms or binary transforms). + * This patch by Reagan Lee makes st.text(...).filter(str.isidentifier) + return an efficient custom strategy (:issue:`3480`). + * The :func:`~hypothesis.strategies.from_regex` strategy now takes an optional + alphabet=characters(codec="utf-8") argument for unicode strings, + like :func:`~hypothesis.strategies.text`. + * This offers more and more-consistent control over the generated strings, + removing previously-hard-coded limitations. With fullmatch=False and alphabet=characters(), + surrogate characters are now possible in leading and trailing text as well as the body + of the match. Negated character classes such as [^A-Z] or \S had a hard-coded + exclusion of control characters and surrogate characters; now they permit + anything in alphabet= consistent with the class, and control characters + are permitted by default. + * Add a health check that detects if the same test is executed several times + by :ref:`different executors`. This can lead + to difficult-to-debug problems such as :issue:`3446`. + * Pretty-printing of failing examples can now use functions registered with + :func:`IPython.lib.pretty.for_type` or :func:`~IPython.lib.pretty.for_type_by_name`, + as well as restoring compatibility with _repr_pretty_ callback methods which were + accidentally broken in :ref:`version 6.61.2 ` (:issue:`3721`). + * Adds a new codec= option in :func:`~hypothesis.strategies.characters`, + making it convenient to produce only characters which can be encoded + as ascii or utf-8 bytestrings. + ------------------------------------------------------------------- Tue Aug 29 17:43:45 UTC 2023 - Ben Greiner diff --git a/python-hypothesis.spec b/python-hypothesis.spec index c281970..43881ef 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.7 +Version: 6.87.3 Release: 0 Summary: A library for property based testing License: MPL-2.0 @@ -46,7 +46,7 @@ URL: https://github.com/HypothesisWorks/hypothesis # Edit the `_service` file and run `osc service runall` for updates. # See also https://hypothesis.readthedocs.io/en/latest/packaging.html Source: hypothesis-python-%{version}.tar.gz -BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module pip} BuildRequires: %{python_module pytz} BuildRequires: %{python_module setuptools} @@ -171,6 +171,7 @@ addopts= --hypothesis-profile=obs -v -n auto + --durations-min=1.0 xfail_strict = False filterwarnings = # error <-- disabled for obs packaging From 4b04aefafbb6ab76238e486968c288eaa986cfd64543e1b59519d4423df1d16e Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 16 Oct 2023 22:19:23 +0000 Subject: [PATCH 2/2] Accepting request 1118040 from home:mimi_vx:branches:devel:languages:python - Update to 6.88.0 - disable flaky test * This release allows strategy-generating functions registered with register_type_strategy() to conditionally not return a strategy, by returning NotImplemented * When randoms( was called with use_true_randoms=False, calling sample on it with an empty sequence and 0 elements would result in an error, when it should have returned an empty sequence to agree with the normal behaviour of random.Random. This fixes that discrepancy.) OBS-URL: https://build.opensuse.org/request/show/1118040 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=175 --- _service | 2 +- hypothesis-python-6.87.3.tar.gz | 3 --- hypothesis-python-6.88.0.tar.gz | 3 +++ python-hypothesis.changes | 14 ++++++++++++++ python-hypothesis.spec | 5 +++-- 5 files changed, 21 insertions(+), 6 deletions(-) delete mode 100644 hypothesis-python-6.87.3.tar.gz create mode 100644 hypothesis-python-6.88.0.tar.gz diff --git a/_service b/_service index 454e82b..ce1f041 100644 --- a/_service +++ b/_service @@ -2,7 +2,7 @@ https://github.com/HypothesisWorks/hypothesis.git git - hypothesis-python-6.87.3 + hypothesis-python-6.88.0 @PARENT_TAG@ hypothesis-python-(.*) hypothesis-python diff --git a/hypothesis-python-6.87.3.tar.gz b/hypothesis-python-6.87.3.tar.gz deleted file mode 100644 index f542899..0000000 --- a/hypothesis-python-6.87.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fcfee0b6ad01a60b37fbe623eb9962a27ba9414452367d7038f56773ed999c32 -size 828672 diff --git a/hypothesis-python-6.88.0.tar.gz b/hypothesis-python-6.88.0.tar.gz new file mode 100644 index 0000000..f9bf133 --- /dev/null +++ b/hypothesis-python-6.88.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0191dae625a4958deba1bf321c820b8d00683ce72a7d19e2f2629ed7c1bf5a01 +size 830127 diff --git a/python-hypothesis.changes b/python-hypothesis.changes index b250c4e..8fc5677 100644 --- a/python-hypothesis.changes +++ b/python-hypothesis.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Mon Oct 16 14:10:17 UTC 2023 - Ondřej Súkup + +- Update to 6.88.0 +- disable flaky test + * This release allows strategy-generating functions registered + with register_type_strategy() to conditionally not return + a strategy, by returning NotImplemented + * When randoms( was called with use_true_randoms=False, + calling sample on it with an empty sequence and 0 elements + would result in an error, when it should have returned + an empty sequence to agree with the normal behaviour of + random.Random. This fixes that discrepancy.) + ------------------------------------------------------------------- Wed Oct 11 09:18:10 UTC 2023 - Ondřej Súkup diff --git a/python-hypothesis.spec b/python-hypothesis.spec index 43881ef..1c2bbed 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.87.3 +Version: 6.88.0 Release: 0 Summary: A library for property based testing License: MPL-2.0 @@ -151,7 +151,6 @@ donttest+=" or test_can_learn_to_normalize_the_unnormalized" 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)" @@ -160,6 +159,8 @@ donttest+=" or test_overflowing_integers_are_deprecated" 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" +# flaky test +donttest+=" or test_has_string_of_max_length" # adapted from pytest.ini in github repo toplevel dir (above hypothesis-python) echo '[pytest] addopts=