pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-hypothesis py-hypothesis: update to 6.0.1.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/285b89a90d8a
branches:  trunk
changeset: 444823:285b89a90d8a
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Jan 13 11:50:46 2021 +0000

description:
py-hypothesis: update to 6.0.1.

6.0.1 - 2021-01-13

This patch fixes an interaction where our test statistics handling
made Pytest’s --junit-xml output fail to validate against the strict
xunit2 schema (issue #1975).

6.0.0 - 2021-01-08

Welcome to the next major version of Hypothesis!

There are no new features here, as we release those in minor
versions. Instead, 6.0 is a chance for us to remove deprecated
features (many already converted into no-ops), and turn a variety
of warnings into errors.

If you were running on the last version of Hypothesis 5.x without
any Hypothesis deprecation warnings, this will be a very boring
upgrade. In fact, nothing will change for you at all.

Changes

    Many functions now use PEP 3102 keyword-only arguments where
    passing positional arguments was deprecated since 5.5.

    hypothesis.extra.django.from_model() no longer accepts model
    as a keyword argument, where it could conflict with fields
    named “model”.

    randoms() now defaults to use_true_random=False.

    complex_numbers() no longer accepts min_magnitude=None; either
    use min_magnitude=0 or just omit the argument.

    hypothesis.provisional.ip4_addr_strings and ip6_addr_strings
    are removed in favor of ip_addresses(v=...).map(str).

    register_type_strategy() no longer accepts generic types with
    type arguments, which were always pretty badly broken.

    Using function-scoped pytest fixtures is now a health-check
    error, instead of a warning.

Tip

The hypothesis codemod command can automatically refactor your
code, particularly to convert positional to keyword arguments where
those are now required.

Hypothesis 5.x

5.49.0 - 2021-01-07

This release adds the function_scoped_fixture health check value,
which can be used to suppress the existing warning that appears
when @given is applied to a test that uses pytest function-scoped
fixtures.

(This warning exists because function-scoped fixtures only run once
per function, not once per example, which is usually unexpected
and can cause subtle problems.)

When this warning becomes a health check error in a future release,
suppressing it via Python warning settings will no longer be
possible. In the rare case that once-per-function behaviour is
intended, it will still be possible to use function_scoped_fixture
to opt out of the health check error for specific tests.

5.48.0 - 2021-01-06

This release adds hypothesis.currently_in_test_context(), which
can be used to check whether the calling code is currently running
inside an @given or stateful test.

This is most useful for third-party integrations and assertion
helpers which may wish to use assume() or target(), without also
requiring that the helper only be used from property-based tests
(issue #2581).

5.47.0 - 2021-01-05

This release upgrades the import logic for ghostwritten tests,
handling many cases where imports would previously be missing or
from unexpected locations.

diffstat:

 devel/py-hypothesis/Makefile |   4 ++--
 devel/py-hypothesis/distinfo |  10 +++++-----
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (29 lines):

diff -r 203c6d9f5080 -r 285b89a90d8a devel/py-hypothesis/Makefile
--- a/devel/py-hypothesis/Makefile      Wed Jan 13 11:43:34 2021 +0000
+++ b/devel/py-hypothesis/Makefile      Wed Jan 13 11:50:46 2021 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.92 2021/01/04 11:55:03 wiz Exp $
+# $NetBSD: Makefile,v 1.93 2021/01/13 11:50:46 wiz Exp $
 #
 # Changelog: https://hypothesis.readthedocs.io/en/latest/changes.html
 
-DISTNAME=      hypothesis-5.46.0
+DISTNAME=      hypothesis-6.0.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=h/hypothesis/}
diff -r 203c6d9f5080 -r 285b89a90d8a devel/py-hypothesis/distinfo
--- a/devel/py-hypothesis/distinfo      Wed Jan 13 11:43:34 2021 +0000
+++ b/devel/py-hypothesis/distinfo      Wed Jan 13 11:50:46 2021 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.89 2021/01/04 11:55:03 wiz Exp $
+$NetBSD: distinfo,v 1.90 2021/01/13 11:50:46 wiz Exp $
 
-SHA1 (hypothesis-5.46.0.tar.gz) = bbbe43c99edf1d65cc1a46b3bef2a91600822dae
-RMD160 (hypothesis-5.46.0.tar.gz) = 4f343de8165935216867bbf818100ca6f2ae04b1
-SHA512 (hypothesis-5.46.0.tar.gz) = 85b9750ae7ec8ddf93412f5699177e0db6c97808fbba68d99b2cb848790292bffe0582cb41d235869e035ff5bd37922137e35d2ad07da351dd5b2a7f0c026463
-Size (hypothesis-5.46.0.tar.gz) = 288118 bytes
+SHA1 (hypothesis-6.0.1.tar.gz) = 20d603c6466b3be1a9d95d5fb0687f1b557f58b7
+RMD160 (hypothesis-6.0.1.tar.gz) = 0ddecc68c596b38e92a07ce4cf844fed6a574f3e
+SHA512 (hypothesis-6.0.1.tar.gz) = a760288b985ea17f6d9627848ac95be84f16304743a32e90c6774ef4798bde78c6dad780df6fa71f0c8ccac5f7db0dccef302554e197957137289de19fa44c25
+Size (hypothesis-6.0.1.tar.gz) = 288140 bytes


Home | Main Index | Thread Index | Old Index