py-hypothesis: updated to 6.21.0
6.21.0 - 2021-09-11 This release introduces strategies for array/tensor libraries adopting the Array API standard. They are available in the hypothesis.extra.array_api extra, and work much like the existing strategies for NumPy. 6.20.1 - 2021-09-10 This patch fixes issue 961, where calling given() inline on a bound method would fail to handle the self argument correctly. 6.20.0 - 2021-09-09 This release allows slices() to generate step=None, and fixes an off-by-one error where the start index could be equal to size. This works fine for all Python sequences and Numpy arrays, but is undefined behaviour in the Array API standard. 6.19.0 - 2021-09-08 This release makes stateful testing more likely to tell you if you do something unexpected and unsupported: The return_value health check now applies to rule() and initialize() rules, if they don’t have target bundles, as well as invariant(). Using a consumes() bundle as a target is deprecated, and will be an error in a future version. If existing code triggers these new checks, check for related bugs and misunderstandings - these patterns never had any effect. 6.18.0 - 2021-09-06 This release teaches from_type() a neat trick: when resolving an typing.Annotated type, if one of the annotations is a strategy object we use that as the inferred strategy. For example: PositiveInt = Annotated[int, st.integers(min_value=1)] If there are multiple strategies, we use the last outer-most annotation. See issue 2978 and pull request 3082 for discussion. Requires Python 3.9 or later for get_type_hints(..., include_extras=False). 6.17.4 - 2021-08-31 This patch makes unique arrays() much more efficient, especially when there are only a few valid elements - such as for eight-bit integers. 6.17.3 - 2021-08-30 This patch fixes the repr of array_shapes(). 6.17.2 - 2021-08-30 This patch wraps some internal helper code in our proxies decorator to prevent mutations of method docstrings carrying over to other instances of the respective methods. 6.17.1 - 2021-08-29 This patch moves some internal helper code in preparation for issue 3065. There is no user-visible change, unless you depended on undocumented internals. 6.17.0 - 2021-08-27 This release adds type annotations to the stateful testing API. Thanks to Ruben Opdebeeck for this contribution! 6.16.0 - 2021-08-27 This release adds the DrawFn type as a reusable type hint for the draw argument of @composite functions. Thanks to Ruben Opdebeeck for this contribution! 6.15.0 - 2021-08-22 This release emits a more useful error message when @given() is applied to a coroutine function, i.e. one defined using async def. This was previously only handled by the generic return_value health check, which doesn’t direct you to use either a custom executor or a library such as pytest-trio or pytest-asyncio to handle it for you. 6.14.9 - 2021-08-20 This patch fixes a regression in Hypothesis 6.14.8, where from_type() failed to resolve types which inherit from multiple parametrised generic types, affecting the returns package. 6.14.8 - 2021-08-16 This patch ensures that registering a strategy for a subclass of a a parametrised generic type such as class Lines(Sequence[str]): will not “leak” into unrelated strategies such as st.from_type(Sequence[int]). Unfortunately this fix requires PEP 560, meaning Python 3.7 or later. 6.14.7 - 2021-08-14 This patch fixes issue 3050, where attrs classes could cause an internal error in the ghostwriter. 6.14.6 - 2021-08-07 This patch improves the error message for issue 3016, where PEP 585 builtin generics with self-referential forward-reference strings cannot be resolved to a strategy by from_type(). 6.14.5 - 2021-07-27 This patch fixes hypothesis.strategies._internal.types.is_a_new_type. It was failing on Python 3.10.0b4, where NewType is a function. 6.14.4 - 2021-07-26 This patch fixes from_type() and register_type_strategy() for typing.NewType on Python 3.10, which changed the underlying implementation (see bpo-44353 for details). 6.14.3 - 2021-07-18 This patch updates our autoformatting tools, improving our code style without any API changes. 6.14.2 - 2021-07-12 This patch ensures that we shorten tracebacks for tests which fail due to inconsistent data generation between runs (i.e. raise Flaky). 6.14.1 - 2021-07-02 This patch updates some internal type annotations. There is no user-visible change.
This commit is contained in:
parent
81d53d894e
commit
c426a73cd8
3 changed files with 14 additions and 8 deletions
|
@ -1,8 +1,8 @@
|
|||
# $NetBSD: Makefile,v 1.101 2021/06/13 18:08:24 adam Exp $
|
||||
# $NetBSD: Makefile,v 1.102 2021/09/12 09:53:53 adam Exp $
|
||||
#
|
||||
# Changelog: https://hypothesis.readthedocs.io/en/latest/changes.html
|
||||
|
||||
DISTNAME= hypothesis-6.14.0
|
||||
DISTNAME= hypothesis-6.21.0
|
||||
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
||||
CATEGORIES= devel python
|
||||
MASTER_SITES= ${MASTER_SITE_PYPI:=h/hypothesis/}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@comment $NetBSD: PLIST,v 1.33 2021/03/17 13:13:31 wiz Exp $
|
||||
@comment $NetBSD: PLIST,v 1.34 2021/09/12 09:53:53 adam Exp $
|
||||
bin/hypothesis
|
||||
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
|
||||
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
|
||||
|
@ -40,6 +40,12 @@ ${PYSITELIB}/hypothesis/executors.pyo
|
|||
${PYSITELIB}/hypothesis/extra/__init__.py
|
||||
${PYSITELIB}/hypothesis/extra/__init__.pyc
|
||||
${PYSITELIB}/hypothesis/extra/__init__.pyo
|
||||
${PYSITELIB}/hypothesis/extra/_array_helpers.py
|
||||
${PYSITELIB}/hypothesis/extra/_array_helpers.pyc
|
||||
${PYSITELIB}/hypothesis/extra/_array_helpers.pyo
|
||||
${PYSITELIB}/hypothesis/extra/array_api.py
|
||||
${PYSITELIB}/hypothesis/extra/array_api.pyc
|
||||
${PYSITELIB}/hypothesis/extra/array_api.pyo
|
||||
${PYSITELIB}/hypothesis/extra/cli.py
|
||||
${PYSITELIB}/hypothesis/extra/cli.pyc
|
||||
${PYSITELIB}/hypothesis/extra/cli.pyo
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
$NetBSD: distinfo,v 1.98 2021/06/13 18:08:24 adam Exp $
|
||||
$NetBSD: distinfo,v 1.99 2021/09/12 09:53:53 adam Exp $
|
||||
|
||||
SHA1 (hypothesis-6.14.0.tar.gz) = 6e179cf9669568c9fac9132cc7cd93b155b519c8
|
||||
RMD160 (hypothesis-6.14.0.tar.gz) = e244fc6d0e2a5f0d316d1752eee7ddaf14d2808b
|
||||
SHA512 (hypothesis-6.14.0.tar.gz) = e4ec4b8d45aea97c04857f818a5761a9dc7cb343d60475bd21ee03e3a8d9ab3e63fc38e4a2a689cacdf4a646f7036bb284cc85bddced999ca87ab08ca9d5650e
|
||||
Size (hypothesis-6.14.0.tar.gz) = 299367 bytes
|
||||
SHA1 (hypothesis-6.21.0.tar.gz) = fbe26e8248002de483d02da3a2570d219c946abe
|
||||
RMD160 (hypothesis-6.21.0.tar.gz) = 1a75d76386e10e106aeb8da0f627991c95fe6c8c
|
||||
SHA512 (hypothesis-6.21.0.tar.gz) = e58afc32d18c6a4d1cc7835b1d22bc5c917983db458f7f06860eed00cfe537607f4ba91d34dd18c724b572d9763326191b9d0b2712c1e41ead2d9f4c4604fdde
|
||||
Size (hypothesis-6.21.0.tar.gz) = 311645 bytes
|
||||
|
|
Loading…
Reference in a new issue