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: updated to 3.44.16



details:   https://anonhg.NetBSD.org/pkgsrc/rev/76713fc71512
branches:  trunk
changeset: 374270:76713fc71512
user:      adam <adam%pkgsrc.org@localhost>
date:      Fri Jan 19 08:58:25 2018 +0000

description:
py-hypothesis: updated to 3.44.16

3.44.16:
This release improves test case reduction for recursive data structures. Hypothesis now guarantees that whenever a strategy calls itself recursively (usually this will happen because you are using 
~hypothesis.strategies.deferred), any recursive call may replace the top level value. e.g. given a tree structure, Hypothesis will always try replacing it with a subtree.

Additionally this introduces a new heuristic that may in some circumstances significantly speed up test case reduction - Hypothesis should be better at immediately replacing elements drawn inside 
another strategy with their minimal possible value.

3.44.15:
~hypothesis.strategies.from_type can now resolve recursive types such as binary trees. Detection of non-type arguments has also improved, leading to better error messages in many cases involving

3.44.14:
This release fixes a bug in the shrinker that prevented the optimisations in 3.44.6 from working in some cases. It would not have worked correctly when filtered examples were nested (e.g. with a set 
of integers in some range).

This would not have resulted in any correctness problems, but shrinking may have been slower than it otherwise could be.

3.44.13:
This release changes the average bit length of values drawn from ~hypothesis.strategies.integers to be much smaller. Additionally it changes the shrinking order so that now size is considered before 
sign - e.g. -1 will be preferred to +10.

The new internal format for integers required some changes to the minimizer to make work well, so you may also see some improvements to example quality in unrelated areas.

3.44.12:
This changes Hypothesis's internal implementation of weighted sampling. This will affect example distribution and quality, but you shouldn't see any other effects.

3.44.11:
This is a change to some internals around how Hypothesis handles avoiding generating duplicate examples and seeking out novel regions of the search space.

You are unlikely to see much difference as a result of it, but it fixes a bug where an internal assertion could theoretically be triggered and has some minor effects on the distribution of examples 
so could potentially find bugs that have previously been missed.

3.44.10:
This patch avoids creating debug statements when debugging is disabled. Profiling suggests this is a 5-10% performance improvement

diffstat:

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

diffs (27 lines):

diff -r 5c0bbc3d06ad -r 76713fc71512 devel/py-hypothesis/Makefile
--- a/devel/py-hypothesis/Makefile      Fri Jan 19 07:49:45 2018 +0000
+++ b/devel/py-hypothesis/Makefile      Fri Jan 19 08:58:25 2018 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.43 2018/01/01 21:14:47 adam Exp $
+# $NetBSD: Makefile,v 1.44 2018/01/19 08:58:25 adam Exp $
 
-DISTNAME=      hypothesis-3.44.4
+DISTNAME=      hypothesis-3.44.16
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=h/hypothesis/}
diff -r 5c0bbc3d06ad -r 76713fc71512 devel/py-hypothesis/distinfo
--- a/devel/py-hypothesis/distinfo      Fri Jan 19 07:49:45 2018 +0000
+++ b/devel/py-hypothesis/distinfo      Fri Jan 19 08:58:25 2018 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.40 2018/01/01 21:14:47 adam Exp $
+$NetBSD: distinfo,v 1.41 2018/01/19 08:58:25 adam Exp $
 
-SHA1 (hypothesis-3.44.4.tar.gz) = 7c49a22e341cb8c67163a4122445c52d02432b29
-RMD160 (hypothesis-3.44.4.tar.gz) = d5be0e18976c513521af6651f8ada3ff49e055fe
-SHA512 (hypothesis-3.44.4.tar.gz) = 589b3394860a330e8d656b65cc5d2744886ce651411ffe374734eba77a74acf1d0542fe5158c43e9134ea7c8c64fef05d1564ed2b64bfc40c951cb89e63e9fc2
-Size (hypothesis-3.44.4.tar.gz) = 135658 bytes
+SHA1 (hypothesis-3.44.16.tar.gz) = bc3b058b907e2dd07dd516d381e3f47eaa6ccc17
+RMD160 (hypothesis-3.44.16.tar.gz) = 689ac18f7f34afbf6dd6b3b674012259f78e73d5
+SHA512 (hypothesis-3.44.16.tar.gz) = da3f1bdafc0c0ab037916528ebb95ce91392d14719cc7c79a8df70b2978680132e54c80162c4e12153ecdf6ce579ed52b5f5c32f1f5327586636129ad2e58550
+Size (hypothesis-3.44.16.tar.gz) = 142797 bytes



Home | Main Index | Thread Index | Old Index