From d2464b313014562038268f7fd75f1b3de8aae973141907b36780c1eb0bce68d2 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 14 Aug 2023 07:08:47 +0000 Subject: [PATCH] ------------------------------------------------------------------ - update to 6.82.4: * This patch ensures that we always close the download connection in :class:`~hypothesis.database.GitHubArtifactDatabase`. * We can now pretty-print combinations of *zero* :class:`enum.Flag` values, like ``SomeFlag(0)``, which has never worked before. * This patch fixes pretty-printing of combinations of :class:`enum.Flag` values, which was previously an error (:issue:`3709`). * Improve shrinking of floats in narrow regions that don't cross an integer boundary. Closes :issue:`3357`. * :func:`~hypothesis.strategies.from_regex` now supports the atomic grouping (``(?>...)``) and possessive quantifier (``*+``, ``++``, ``?+``, ``{m,n}+``) syntax `added in Python 3.11 * If the :envvar:`HYPOTHESIS_NO_PLUGINS` environment variable is set, we'll avoid :ref:`loading plugins ` such as `the old Pydantic integration * Fixes some lingering issues with inference of recursive types * in `~hypothesis.strategies.from_type`. Closes :issue:`3525`. * This release drops support for Python 3.7, `which reached end of life on 2023-06-27 * Fixes occasional recursion-limit-exceeded errors when validating deeply nested strategies. Closes: :issue:`3671` * Improve the type rendered in :func:`~hypothesis.strategies.from_type`, which improves the coverage of Ghostwriter. * This patch improves Ghostwriter's use of qualified names for re-exported functions and classes, and avoids importing useless :obj:`~typing.TypeVar`\ s. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=170 --- _service | 2 +- hypothesis-python-6.75.3.tar.gz | 3 -- hypothesis-python-6.82.4.tar.gz | 3 ++ python-hypothesis.changes | 60 +++++++++++++++++++++++++++++++++ python-hypothesis.spec | 2 +- 5 files changed, 65 insertions(+), 5 deletions(-) delete mode 100644 hypothesis-python-6.75.3.tar.gz create mode 100644 hypothesis-python-6.82.4.tar.gz diff --git a/_service b/_service index 17c7a8f..89764b6 100644 --- a/_service +++ b/_service @@ -2,7 +2,7 @@ https://github.com/HypothesisWorks/hypothesis.git git - hypothesis-python-6.75.3 + hypothesis-python-6.82.4 @PARENT_TAG@ hypothesis-python-(.*) hypothesis-python diff --git a/hypothesis-python-6.75.3.tar.gz b/hypothesis-python-6.75.3.tar.gz deleted file mode 100644 index b68ec75..0000000 --- a/hypothesis-python-6.75.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b7f417698963d55df7dcd495df96a765a88b49ad7b7793f026c6e25a89a7c044 -size 810597 diff --git a/hypothesis-python-6.82.4.tar.gz b/hypothesis-python-6.82.4.tar.gz new file mode 100644 index 0000000..f5cf7a4 --- /dev/null +++ b/hypothesis-python-6.82.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ac75ec5d6bc06064af1d7ce18ce16cf44ba4872ad553dc5b778946694e9034fd +size 819081 diff --git a/python-hypothesis.changes b/python-hypothesis.changes index 0d88341..046c89d 100644 --- a/python-hypothesis.changes +++ b/python-hypothesis.changes @@ -1,3 +1,63 @@ +------------------------------------------------------------------ +Mon Aug 14 07:03:21 UTC 2023 - Dirk Müller + +- update to 6.82.4: + * This patch ensures that we always close the download + connection in :class:`~hypothesis.database.GitHubArtifactDatabase`. + * We can now pretty-print combinations of *zero* + :class:`enum.Flag` values, like ``SomeFlag(0)``, + which has never worked before. + * This patch fixes pretty-printing of combinations of + :class:`enum.Flag` values, which was previously an error + (:issue:`3709`). + * Improve shrinking of floats in narrow regions that don't + cross an integer boundary. Closes :issue:`3357`. + * :func:`~hypothesis.strategies.from_regex` now supports the + atomic grouping (``(?>...)``) and possessive quantifier + (``*+``, ``++``, ``?+``, ``{m,n}+``) syntax `added in Python 3.11 + * If the :envvar:`HYPOTHESIS_NO_PLUGINS` environment variable + is set, we'll avoid :ref:`loading plugins ` + such as `the old Pydantic integration + * Fixes some lingering issues with inference of recursive types + * in `~hypothesis.strategies.from_type`. Closes :issue:`3525`. + * This release drops support for Python 3.7, `which reached end + of life on 2023-06-27 + * Fixes occasional recursion-limit-exceeded errors when + validating deeply nested strategies. Closes: :issue:`3671` + * Improve the type rendered in + :func:`~hypothesis.strategies.from_type`, which improves the + coverage of Ghostwriter. + * This patch improves Ghostwriter's use of qualified names for + re-exported functions and classes, and avoids importing useless + :obj:`~typing.TypeVar`\ s. + * This patch updates our vendored `list of top-level domains + will raise an error rather than hanging indefinitely if + passed invalid ``max_leaves=`` arguments. + * Warn in :func:`~hypothesis.strategies.from_type` if the + inferred strategy has no variation (always returning default + instances). Also handles numpy data types by calling + :func:`~hypothesis.extra.numpy.from_dtype` on the + corresponding dtype, thus ensuring proper variation for these + types. + * :func:`~hypothesis.strategies.from_type` now works in cases + where we use :func:`~hypothesis.strategies.builds` to create + an instance and the constructor has an argument which would lead + to recursion. Previously, this would raise an error if the + argument had a default value. + * In preparation for supporting JAX in + :ref:`hypothesis.extra.array_api `, + this release supports immutable arrays being generated via + :func:`xps.arrays`. + * and adds automatic support for writing + ``@hypothesis.example()`` or ``@example()`` + depending on the current style in your test file - defaulting + to the latter. + * This patch updates our linter stack to use :pypi:`ruff`, and + fixes some previously-ignored lints. + * Hypothesis will now record an event for more cases where data + is marked invalid, including for exceeding the internal depth + limit. + ------------------------------------------------------------------- Sun May 14 15:30:18 UTC 2023 - Dirk Müller diff --git a/python-hypothesis.spec b/python-hypothesis.spec index 0af52ce..d4ea123 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.75.3 +Version: 6.82.4 Release: 0 Summary: A library for property based testing License: MPL-2.0