Subject: CVS commit: pkgsrc/devel/py-hypothesis
From: Thomas Klausner
Date: 2021-03-17 14:13:32
Message id: 20210317131332.2787EFA95@cvs.NetBSD.org

Log Message:
py-hypothesis: update to 6.8.1.

6.8.1 - 2021-03-14

This patch lays more groundwork for filter rewriting (issue #2701).
There is no user-visible change… yet.

6.8.0 - 2021-03-11

This release registers the remaining builtin types, and teaches
from_type() to try resolving ForwardRef and Type references to
built-in types.

6.7.0 - 2021-03-10

This release teaches RuleBasedStateMachine to avoid checking
invariant()s until all initialize() rules have been run. You can
enable checking of specific invariants for incompletely initialized
machines by using @invariant(check_during_init=True) (issue #2868).

In previous versions, it was possible if awkward to implement this
behaviour using precondition() and an auxiliary variable.

6.6.1 - 2021-03-09

This patch improves the error message when from_type() fails to
resolve a forward-reference inside a typing.Type such as Type["int"]
(issue #2565).

6.6.0 - 2021-03-07

This release makes it an explicit error to apply invariant() to a
rule() or initialize() rule in stateful testing. Such a combination
had unclear semantics, especially in combination with precondition(),
and was never meant to be allowed (issue #2681).

6.5.0 - 2021-03-07

This release adds the explain phase, in which Hypothesis attempts
to explain why your test failed by pointing to suspicious lines of
code (i.e. those which were always, and only, run on failing inputs).
We plan to include “generalising” failing examples in this phase
in a future release (issue #2192).

6.4.3 - 2021-03-04

This patch fixes issue #2794, where nesting deferred() strategies
within recursive() strategies could trigger an internal assertion.
While it was always possible to get the same results from a more
sensible strategy, the convoluted form now works too.

6.4.2 - 2021-03-04

This patch fixes several problems with mypy when –no-implicit-reexport
was activated in user projects.

Thanks to Nikita Sobolev for fixing issue #2884!

6.4.1 - 2021-03-04

This patch fixes an exception that occurs when using type unions
of the typing_extensions Literal backport on Python 3.6.

Thanks to Ben Anhalt for identifying and fixing this bug.

6.4.0 - 2021-03-02

This release fixes stateful testing methods with multiple precondition()
decorators. Previously, only the outer-most precondition was checked
(issue #2681).

6.3.4 - 2021-02-28

This patch refactors some internals of RuleBasedStateMachine. There
is no change to the public API or behaviour.

6.3.3 - 2021-02-26

This patch moves some internal code, so that future work can avoid
creating import cycles. There is no user-visible change.

6.3.2 - 2021-02-25

This patch enables register_type_strategy() for subclasses of
typing.TypedDict. Previously, from_type() would ignore the registered
strategy (issue #2872).

Thanks to Ilya Lebedev for identifying and fixing this bug!

6.3.1 - 2021-02-24

This release lays the groundwork for automatic rewriting of simple
filters, for example converting integers().filter(lambda x: x > 9)
to integers(min_value=10).

Note that this is not supported yet, and we will continue to
recommend writing the efficient form directly wherever possible -
predicate rewriting is provided mainly for the benefit of downstream
libraries which would otherwise have to implement it for themselves
(e.g. pandera and icontract-hypothesis). See issue #2701 for details.

6.3.0 - 2021-02-20

The Hypothesis pytest plugin now requires pytest version 4.6 or
later. If the plugin detects an earlier version of pytest, it will
automatically deactivate itself.

(4.6.x is the earliest pytest branch that still accepts community
bugfixes.)

Hypothesis-based tests should continue to work in earlier versions
of pytest, but enhanced integrations provided by the plugin (such
as --hypothesis-show-statistics and other command-line flags) will
no longer be available in obsolete pytest versions.

Files:
RevisionActionfile
1.97modifypkgsrc/devel/py-hypothesis/Makefile
1.33modifypkgsrc/devel/py-hypothesis/PLIST
1.94modifypkgsrc/devel/py-hypothesis/distinfo