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.68.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2ae37d9b0d3e
branches:  trunk
changeset: 384120:2ae37d9b0d3e
user:      adam <adam%pkgsrc.org@localhost>
date:      Fri Aug 17 07:15:22 2018 +0000

description:
py-hypothesis: updated to 3.68.0

3.68.0:
:func:~hypothesis.extra.numpy.arrays now checks that integer and float values drawn from elements and fill strategies can be safely cast to the dtype of the array, and emits a warning otherwise.

Elements in the resulting array could previously violate constraints on the elements strategy due to floating-point overflow or truncation of integers to fit smaller types.

3.67.1:
This release contains a tiny refactoring of the internals. There is no user-visible change.

3.67.0:
This release adds a width argument to :func:~hypothesis.strategies.floats, to generate lower-precision floating point numbers for e.g. Numpy arrays.

The generated examples are always instances of Python's native float type, which is 64bit, but passing width=32 will ensure that all values can be exactly represented as 32bit floats. This can be 
useful to avoid overflow (to +/- infinity), and for efficiency of generation and shrinking.

Half-precision floats (width=16) are also supported, but require Numpy if you are running Python 3.5 or earlier.

diffstat:

 devel/py-hypothesis/Makefile |  13 ++++++-------
 devel/py-hypothesis/PLIST    |  26 ++++++++++++++++++++++----
 devel/py-hypothesis/distinfo |  10 +++++-----
 3 files changed, 33 insertions(+), 16 deletions(-)

diffs (87 lines):

diff -r bfe5ebbb610a -r 2ae37d9b0d3e devel/py-hypothesis/Makefile
--- a/devel/py-hypothesis/Makefile      Fri Aug 17 04:04:51 2018 +0000
+++ b/devel/py-hypothesis/Makefile      Fri Aug 17 07:15:22 2018 +0000
@@ -1,22 +1,21 @@
-# $NetBSD: Makefile,v 1.57 2018/07/03 07:47:45 adam Exp $
+# $NetBSD: Makefile,v 1.58 2018/08/17 07:15:22 adam Exp $
 
-DISTNAME=      hypothesis-3.65.0
+DISTNAME=      hypothesis-3.68.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=h/hypothesis/}
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=      https://github.com/HypothesisWorks/hypothesis-python
+HOMEPAGE=      https://github.com/HypothesisWorks/hypothesis
 COMMENT=       Python library for property based testing
 LICENSE=       mpl-2.0
 
-DEPENDS+=      ${PYPKGPREFIX}-attrs-[0-9]*:../../devel/py-attrs
-DEPENDS+=      ${PYPKGPREFIX}-coverage-[0-9]*:../../devel/py-coverage
+DEPENDS+=      ${PYPKGPREFIX}-attrs>=16.0.0:../../devel/py-attrs
+DEPENDS+=      ${PYPKGPREFIX}-coverage>=4.0:../../devel/py-coverage
 DEPENDS+=      ${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3
 
 .include "../../lang/python/pyversion.mk"
-
-.if "${PYPKGPREFIX}" == "py27"
+.if "${_PYTHON_VERSION}" == "27"
 DEPENDS+=      ${PYPKGPREFIX}-enum34-[0-9]*:../../devel/py-enum34
 .endif
 
diff -r bfe5ebbb610a -r 2ae37d9b0d3e devel/py-hypothesis/PLIST
--- a/devel/py-hypothesis/PLIST Fri Aug 17 04:04:51 2018 +0000
+++ b/devel/py-hypothesis/PLIST Fri Aug 17 07:15:22 2018 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.19 2018/07/03 07:47:45 adam Exp $
+@comment $NetBSD: PLIST,v 1.20 2018/08/17 07:15:22 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -90,9 +90,27 @@
 ${PYSITELIB}/hypothesis/internal/conjecture/floats.py
 ${PYSITELIB}/hypothesis/internal/conjecture/floats.pyc
 ${PYSITELIB}/hypothesis/internal/conjecture/floats.pyo
-${PYSITELIB}/hypothesis/internal/conjecture/minimizer.py
-${PYSITELIB}/hypothesis/internal/conjecture/minimizer.pyc
-${PYSITELIB}/hypothesis/internal/conjecture/minimizer.pyo
+${PYSITELIB}/hypothesis/internal/conjecture/shrinking/__init__.py
+${PYSITELIB}/hypothesis/internal/conjecture/shrinking/__init__.pyc
+${PYSITELIB}/hypothesis/internal/conjecture/shrinking/__init__.pyo
+${PYSITELIB}/hypothesis/internal/conjecture/shrinking/common.py
+${PYSITELIB}/hypothesis/internal/conjecture/shrinking/common.pyc
+${PYSITELIB}/hypothesis/internal/conjecture/shrinking/common.pyo
+${PYSITELIB}/hypothesis/internal/conjecture/shrinking/floats.py
+${PYSITELIB}/hypothesis/internal/conjecture/shrinking/floats.pyc
+${PYSITELIB}/hypothesis/internal/conjecture/shrinking/floats.pyo
+${PYSITELIB}/hypothesis/internal/conjecture/shrinking/integer.py
+${PYSITELIB}/hypothesis/internal/conjecture/shrinking/integer.pyc
+${PYSITELIB}/hypothesis/internal/conjecture/shrinking/integer.pyo
+${PYSITELIB}/hypothesis/internal/conjecture/shrinking/length.py
+${PYSITELIB}/hypothesis/internal/conjecture/shrinking/length.pyc
+${PYSITELIB}/hypothesis/internal/conjecture/shrinking/length.pyo
+${PYSITELIB}/hypothesis/internal/conjecture/shrinking/lexical.py
+${PYSITELIB}/hypothesis/internal/conjecture/shrinking/lexical.pyc
+${PYSITELIB}/hypothesis/internal/conjecture/shrinking/lexical.pyo
+${PYSITELIB}/hypothesis/internal/conjecture/shrinking/ordering.py
+${PYSITELIB}/hypothesis/internal/conjecture/shrinking/ordering.pyc
+${PYSITELIB}/hypothesis/internal/conjecture/shrinking/ordering.pyo
 ${PYSITELIB}/hypothesis/internal/conjecture/utils.py
 ${PYSITELIB}/hypothesis/internal/conjecture/utils.pyc
 ${PYSITELIB}/hypothesis/internal/conjecture/utils.pyo
diff -r bfe5ebbb610a -r 2ae37d9b0d3e devel/py-hypothesis/distinfo
--- a/devel/py-hypothesis/distinfo      Fri Aug 17 04:04:51 2018 +0000
+++ b/devel/py-hypothesis/distinfo      Fri Aug 17 07:15:22 2018 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.54 2018/07/03 07:47:45 adam Exp $
+$NetBSD: distinfo,v 1.55 2018/08/17 07:15:22 adam Exp $
 
-SHA1 (hypothesis-3.65.0.tar.gz) = 6ed552b1343960abf45b8b4d3ac38128ad9bdf99
-RMD160 (hypothesis-3.65.0.tar.gz) = 434d5a85ec0f3482e28167e126a254495531d2ef
-SHA512 (hypothesis-3.65.0.tar.gz) = 471f863248f637e28bef9558d03d98accd5b7816cd7d494edaf00e6f7b5c41d46cdfa803ff64915dc2b5511dfbe81fb1bdc556dad2f4f4d0c335ecdbdd994e63
-Size (hypothesis-3.65.0.tar.gz) = 161868 bytes
+SHA1 (hypothesis-3.68.0.tar.gz) = 47e40b233f4d8a2c671834e34c814b392329d072
+RMD160 (hypothesis-3.68.0.tar.gz) = 89d1ad3542586e3b9c4a9656a38a5428b6c33717
+SHA512 (hypothesis-3.68.0.tar.gz) = 593d1f602cd12e838bbc2724c813271a455d9d1947786a5df10b5a6b88baf991dbbf384ad425b125d0444f25737a51139dcfc31bfca6336cde542490f2ebc82e
+Size (hypothesis-3.68.0.tar.gz) = 169489 bytes



Home | Main Index | Thread Index | Old Index