From bb19a4f55608074b972d0b84ebda8bc1e4c37f8b7eb4a29b928bdbc2869a5ff7 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Wed, 10 May 2023 16:33:33 +0000 Subject: [PATCH 1/3] =?UTF-8?q?-=20Update=20to=206.75.2:=20=20=20*=20Impro?= =?UTF-8?q?ved=20the=20documentation=20regarding=20how=20to=20use=20=20=20?= =?UTF-8?q?=20=20GitHubArtifactDatabase=20and=20fixed=20a=20bug=20that=20o?= =?UTF-8?q?ccurred=20in=20=20=20=20=20repositories=20with=20no=20existing?= =?UTF-8?q?=20artifacts.=20-=206.75.1=20=20=20*=20hypothesis.errors=20will?= =?UTF-8?q?=20now=20raise=20AttributeError=20when=20attempting=20to=20=20?= =?UTF-8?q?=20=20=20access=20an=20undefined=20attribute,=20rather=20than?= =?UTF-8?q?=20returning=20None.=20-=206.75.0=20=20=20*=20Sick=20of=20addin?= =?UTF-8?q?g=20@example()s=20by=20hand=3F=20Our=20Pytest=20plugin=20now=20?= =?UTF-8?q?writes=20=20=20=20=20.patch=20files=20to=20insert=20them=20for?= =?UTF-8?q?=20you,=20making=20this=20workflow=20easier=20=20=20=20=20than?= =?UTF-8?q?=20ever=20before.=20=20=20*=20Note=20that=20you=E2=80=99ll=20ne?= =?UTF-8?q?ed=20LibCST=20(via=20hypothesis[codemods]),=20and=20that=20=20?= =?UTF-8?q?=20=20=20@example().via()=20requires=20PEP=20614=20(Python=203.?= =?UTF-8?q?9=20or=20later).=20-=206.74.1=20=20=20*=20This=20patch=20provid?= =?UTF-8?q?es=20better=20error=20messages=20for=20datetime-=20and=20=20=20?= =?UTF-8?q?=20=20timedelta-related=20invalid=20dtypes=20in=20our=20Pandas?= =?UTF-8?q?=20extra=20(issue=20=20=20=20=20#3518).=20-=206.74.0=20=20=20*?= =?UTF-8?q?=20This=20release=20adds=20support=20for=20nullable=20pandas=20?= =?UTF-8?q?dtypes=20in=20pandas()=20=20=20=20=20(issue=20#3604).=20-=206.7?= =?UTF-8?q?3.1=20=20=20*=20This=20patch=20updates=20our=20minimum=20Numpy?= =?UTF-8?q?=20version=20to=201.16,=20and=20restores=20=20=20=20=20compatib?= =?UTF-8?q?ility=20with=20versions=20before=201.20,=20which=20were=20broke?= =?UTF-8?q?n=20by=20a=20=20=20=20=20mistake=20in=20Hypothesis=206.72.4=20(?= =?UTF-8?q?issue=20#3625).=20-=206.73.0=20=20=20*=20This=20release=20upgra?= =?UTF-8?q?des=20the=20explain=20phase=20(issue=20#3411).=20-=206.72.4=20?= =?UTF-8?q?=20=20*=20This=20patch=20fixes=20type=20annotations=20for=20the?= =?UTF-8?q?=20arrays()=20strategy.=20-=206.72.3=20=20=20*=20This=20patch?= =?UTF-8?q?=20fixes=20a=20bug=20with=20from=5Ftype()=20with=20dict[tuple[i?= =?UTF-8?q?nt,=20int],=20str]=20(issue=20#3527).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=166 --- _service | 2 +- hypothesis-python-6.61.2.tar.gz | 3 - hypothesis-python-6.75.2.tar.gz | 3 + python-hypothesis.changes | 147 ++++++++++++++++++++++++++++++++ python-hypothesis.spec | 12 +-- 5 files changed, 158 insertions(+), 9 deletions(-) delete mode 100644 hypothesis-python-6.61.2.tar.gz create mode 100644 hypothesis-python-6.75.2.tar.gz diff --git a/_service b/_service index 702bb23..57d8534 100644 --- a/_service +++ b/_service @@ -2,7 +2,7 @@ https://github.com/HypothesisWorks/hypothesis.git git - hypothesis-python-6.61.2 + hypothesis-python-6.75.2 @PARENT_TAG@ hypothesis-python-(.*) hypothesis-python diff --git a/hypothesis-python-6.61.2.tar.gz b/hypothesis-python-6.61.2.tar.gz deleted file mode 100644 index 095f353..0000000 --- a/hypothesis-python-6.61.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f0d01e93a1f28ec493fc64c9ba79623ba6a1c1b5c8c8cff6fb1574adcef1265b -size 780651 diff --git a/hypothesis-python-6.75.2.tar.gz b/hypothesis-python-6.75.2.tar.gz new file mode 100644 index 0000000..f1491a1 --- /dev/null +++ b/hypothesis-python-6.75.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1c692dc124a95f31ba19e8c55444bf3638129bfc9455b686dadab93ef91186e7 +size 809663 diff --git a/python-hypothesis.changes b/python-hypothesis.changes index c99df1a..ef89506 100644 --- a/python-hypothesis.changes +++ b/python-hypothesis.changes @@ -1,3 +1,150 @@ +------------------------------------------------------------------- +Wed May 10 16:11:33 UTC 2023 - Daniel Garcia + +- Update to 6.75.2: + * Improved the documentation regarding how to use + GitHubArtifactDatabase and fixed a bug that occurred in + repositories with no existing artifacts. +- 6.75.1 + * hypothesis.errors will now raise AttributeError when attempting to + access an undefined attribute, rather than returning None. +- 6.75.0 + * Sick of adding @example()s by hand? Our Pytest plugin now writes + .patch files to insert them for you, making this workflow easier + than ever before. + + * Note that you’ll need LibCST (via hypothesis[codemods]), and that + @example().via() requires PEP 614 (Python 3.9 or later). +- 6.74.1 + * This patch provides better error messages for datetime- and + timedelta-related invalid dtypes in our Pandas extra (issue + #3518). +- 6.74.0 + * This release adds support for nullable pandas dtypes in pandas() + (issue #3604). +- 6.73.1 + * This patch updates our minimum Numpy version to 1.16, and restores + compatibility with versions before 1.20, which were broken by a + mistake in Hypothesis 6.72.4 (issue #3625). +- 6.73.0 + * This release upgrades the explain phase (issue #3411). +- 6.72.4 + * This patch fixes type annotations for the arrays() strategy. +- 6.72.3 + * This patch fixes a bug with from_type() with dict[tuple[int, int], str] (issue #3527). +- 6.72.2 + * This patch refactors our internals to facilitate an upcoming feature. +- 6.72.1 + * This patch fixes some documentation and prepares for future features. +- 6.72.0 + * This release deprecates Healthcheck.all(), and adds a codemod to + automatically replace it with list(Healthcheck) (issue #3596). +- 6.71.0 + * This release adds GitHubArtifactDatabase, a new database backend + that allows developers to access the examples found by a Github + Actions CI job. This is particularly useful for workflows that + involve continuous fuzzing, like HypoFuzz. +- 6.70.2 + * This patch clarifies the reporting of time spent generating data. + A simple arithmetic mean of the percentage of time spent can be + misleading; reporting the actual time spent avoids + misunderstandings. +- 6.70.1 + * This patch updates our vendored list of top-level domains, which + is used by the provisional domains() strategy. +- 6.70.0 + * This release adds an optional domains= parameter to the emails() + strategy, and excludes the special-use .arpa domain from the + default strategy (issue #3567). +- 6.69.0 + * This release turns HealthCheck.return_value and + HealthCheck.not_a_test_method into unconditional errors. Passing + them to suppress_health_check= is therefore a deprecated no-op. + (issue #3568). + * Separately, GraalPy can now run and pass most of the hypothesis + test suite (issue #3587). +- 6.68.3 + * This patch updates our vendored list of top-level domains, which + is used by the provisional domains() strategy. +- 6.68.2 + * This patch fixes missing imports of the re module, when + ghostwriting tests which include compiled patterns or regex flags. + Thanks to Jens Heinrich for reporting and promptly fixing this + bug! +- 6.68.1 + * This patch adds some private hooks for use in research on + Schemathesis (see our preprint here). +- 6.68.0 + * This release adds support for the Array API’s 2022.12 release via + the api_version argument in make_strategies_namespace(). + Concretely this involves complex support in its existing + strategies, plus an introduced xps.complex_dtypes() strategy. + * Additionally this release now treats hypothesis.extra.array_api as + stable, meaning breaking changes should only happen with major + releases of Hypothesis. +- 6.67.1 + * This patch updates our autoformatting tools, improving our code + style without any API changes. +- 6.67.0 + * This release allows for more precise generation of complex numbers + using from_dtype(), by supporting the width, min_magnitude, and + min_magnitude arguments (issue #3468). +- 6.66.2 + * This patch fixes a rare RecursionError when pretty-printing a + multi-line object without type-specific printer, which was passed + to a function which returned the same object by .map() or + builds() and thus recursed due to the new pretty reprs in + Hypothesis 6.65.0 - 2023-01-24 (issue #3560). Apologies to all + those affected. +- 6.66.1 + * This makes from_dtype() pass through the parameter allow_subnormal + for complex dtypes. +- 6.66.0 + * This release adds a width parameter to complex_numbers(), + analogously to floats(). +- 6.65.2 + * This patch fixes invalid annotations detected for the tests + generated by Ghostwritter. It will now correctly generate Optional + types with just one type argument and handle union expressions + inside of type arguments correctly. Additionally, it now supports + code with the from __future__ import annotations marker for Python + 3.10 and newer. +- 6.65.1 + * This release improves the pretty-printing of enums in falsifying + examples, so that they print as their full identifier rather than + their repr. +- 6.65.0 + * Hypothesis now reports some failing inputs by showing the call + which constructed an object, rather than the repr of the object. + This can be helpful when the default repr does not include all + relevant details, and will unlock further improvements in a future + version. + * For now, we capture calls made via builds(), and via + SearchStrategy.map(). +- 6.64.0 + * The Ghostwritter will now include type annotations on tests for + type-annotated code. If you want to force this to happen (or not + happen), pass a boolean to the new annotate= argument to the + Python functions, or the --[no-]annotate CLI flag. +- 6.63.0 + * range_indexes() now accepts a name= argument, to generate named + pandas.RangeIndex objects. +- 6.62.1 + * This patch tweaks xps.arrays() internals to improve PyTorch + compatibility. Specifically, torch.full() does not accept integers + as the shape argument (n.b. technically “size” in torch), but such + behaviour is expected in internal code, so we copy the torch + module and patch in a working full() function. +- 6.62.0 + * A classic error when testing is to write a test function that can + never fail, even on inputs that aren’t allowed or manually + provided. +- 6.61.3 + * This patch teaches our enhanced get_type_hints() function to ‘see + through’ partial application, allowing inference from type hints + to work in a few more cases which aren’t (yet!) supported by the + standard-library version. + ------------------------------------------------------------------- Fri Apr 21 12:26:35 UTC 2023 - Dirk Müller diff --git a/python-hypothesis.spec b/python-hypothesis.spec index fc40b34..3eb5b40 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.61.2 +Version: 6.75.2 Release: 0 Summary: A library for property based testing License: MPL-2.0 @@ -66,8 +66,8 @@ Recommends: python-click >= 7.0 Recommends: python-dpcontracts >= 0.4 Recommends: python-lark >= 0.10.1 Recommends: python-libcst >= 0.3.16 -Recommends: python-numpy >= 1.9.0 -Recommends: python-pandas >= 1.0 +Recommends: python-numpy >= 1.16.0 +Recommends: python-pandas >= 1.1 Recommends: python-pytest >= 4.6 Recommends: python-python-dateutil >= 1.4 Recommends: python-pytz >= 2014.1 @@ -82,7 +82,7 @@ BuildRequires: %{python_module hypothesis = %{version}} %if %{with complete_tests} BuildRequires: %{python_module Django >= 3.2} BuildRequires: %{python_module fakeredis} -BuildRequires: %{python_module pandas >= 1.0} +BuildRequires: %{python_module pandas >= 1.1} %endif BuildRequires: %{python_module backports.zoneinfo >= 0.2.1 if %python-base < 3.9} BuildRequires: %{python_module black >= 19.10} @@ -91,7 +91,7 @@ BuildRequires: %{python_module dpcontracts >= 0.4} BuildRequires: %{python_module flaky} BuildRequires: %{python_module lark >= 0.10.1} BuildRequires: %{python_module libcst >= 0.3.16} -BuildRequires: %{python_module numpy >= 1.9.0} +BuildRequires: %{python_module numpy >= 1.16.0} BuildRequires: %{python_module pexpect} BuildRequires: %{python_module pytest >= 4.6} BuildRequires: %{python_module pytest-xdist} @@ -147,6 +147,8 @@ sed -i 's/assert (arr == 0.0)/assert np.asarray(arr == 0.0)/' tests/numpy/test_g # https://github.com/HypothesisWorks/hypothesis/issues/2546 donttest="test_updating_the_file_include_new_shrinkers" donttest+=" or test_can_learn_to_normalize_the_unnormalized" +# Fail because +donttest+=" or test_ghostwriter_on_hypothesis" # adapted from pytest.ini in github repo toplevel dir (above hypothesis-python) echo '[pytest] addopts= From adc9271da28911e6d82a067fe95bdee0fc5f36ba1a8bc4f2b897e1741477bbfe Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Wed, 10 May 2023 16:37:20 +0000 Subject: [PATCH 2/3] - Complete comment in spec OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=167 --- python-hypothesis.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-hypothesis.spec b/python-hypothesis.spec index 3eb5b40..c530665 100644 --- a/python-hypothesis.spec +++ b/python-hypothesis.spec @@ -147,7 +147,7 @@ sed -i 's/assert (arr == 0.0)/assert np.asarray(arr == 0.0)/' tests/numpy/test_g # https://github.com/HypothesisWorks/hypothesis/issues/2546 donttest="test_updating_the_file_include_new_shrinkers" donttest+=" or test_can_learn_to_normalize_the_unnormalized" -# Fail because +# Fail because typing comparison donttest+=" or test_ghostwriter_on_hypothesis" # adapted from pytest.ini in github repo toplevel dir (above hypothesis-python) echo '[pytest] From 3be375c5b1d53eab856c4be7e94a447244e0aa8d4e3799742a228d470a2d0b60 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 14 May 2023 15:30:47 +0000 Subject: [PATCH 3/3] - update to 6.75.3: * This patch fixes ~hypothesis.strategies.complex_numbers accidentally invalidating itself when passed magnitude arguments for 32 and 64-bit widths, i.e. 16- and 32-bit floats, due to not internally down-casting numbers OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=168 --- _service | 2 +- hypothesis-python-6.75.2.tar.gz | 3 --- hypothesis-python-6.75.3.tar.gz | 3 +++ python-hypothesis.changes | 9 +++++++++ python-hypothesis.spec | 2 +- 5 files changed, 14 insertions(+), 5 deletions(-) delete mode 100644 hypothesis-python-6.75.2.tar.gz create mode 100644 hypothesis-python-6.75.3.tar.gz diff --git a/_service b/_service index 57d8534..17c7a8f 100644 --- a/_service +++ b/_service @@ -2,7 +2,7 @@ https://github.com/HypothesisWorks/hypothesis.git git - hypothesis-python-6.75.2 + hypothesis-python-6.75.3 @PARENT_TAG@ hypothesis-python-(.*) hypothesis-python diff --git a/hypothesis-python-6.75.2.tar.gz b/hypothesis-python-6.75.2.tar.gz deleted file mode 100644 index f1491a1..0000000 --- a/hypothesis-python-6.75.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1c692dc124a95f31ba19e8c55444bf3638129bfc9455b686dadab93ef91186e7 -size 809663 diff --git a/hypothesis-python-6.75.3.tar.gz b/hypothesis-python-6.75.3.tar.gz new file mode 100644 index 0000000..b68ec75 --- /dev/null +++ b/hypothesis-python-6.75.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b7f417698963d55df7dcd495df96a765a88b49ad7b7793f026c6e25a89a7c044 +size 810597 diff --git a/python-hypothesis.changes b/python-hypothesis.changes index ef89506..0d88341 100644 --- a/python-hypothesis.changes +++ b/python-hypothesis.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Sun May 14 15:30:18 UTC 2023 - Dirk Müller + +- update to 6.75.3: + * This patch fixes ~hypothesis.strategies.complex_numbers accidentally + invalidating itself when passed magnitude arguments for 32 + and 64-bit widths, i.e. 16- and 32-bit floats, due to not + internally down-casting numbers + ------------------------------------------------------------------- Wed May 10 16:11:33 UTC 2023 - Daniel Garcia diff --git a/python-hypothesis.spec b/python-hypothesis.spec index c530665..0af52ce 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.2 +Version: 6.75.3 Release: 0 Summary: A library for property based testing License: MPL-2.0