pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-hypothesis Changes 3.11.0:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9ba9cbb5bdf2
branches:  trunk
changeset: 362741:9ba9cbb5bdf2
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed May 24 11:28:37 2017 +0000

description:
Changes 3.11.0:

This is a feature release, adding datetime-related strategies to the core strategies.

extra.pytz.timezones allows you to sample pytz timezones from the Olsen database. Use directly in a recipe for tz-aware datetimes, or compose with st.none() to allow a mix of aware and naive output.

The new dates, times, datetimes, and timedeltas strategies in hypothesis.strategies are all constrained by objects of their type. This means that you can generate dates bounded by a single day (i.e. 
a single date), or datetimes constrained to the microsecond.

times and datetimes take an optional timezones= argument, which defaults to none() for naive times. You can use our extra strategy based on pytz, or roll your own timezones strategy with dateutil or 
even the standard library.

The old dates, times, and datetimes strategies in hypothesis.extra.datetimes are deprecated in favor of the new core strategies, which are more flexible and have no dependencies.

diffstat:

 devel/py-hypothesis/Makefile |   4 ++--
 devel/py-hypothesis/PLIST    |   8 +++++++-
 devel/py-hypothesis/distinfo |  10 +++++-----
 3 files changed, 14 insertions(+), 8 deletions(-)

diffs (56 lines):

diff -r e88057eaa89f -r 9ba9cbb5bdf2 devel/py-hypothesis/Makefile
--- a/devel/py-hypothesis/Makefile      Wed May 24 11:24:44 2017 +0000
+++ b/devel/py-hypothesis/Makefile      Wed May 24 11:28:37 2017 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.14 2017/05/23 07:57:50 adam Exp $
+# $NetBSD: Makefile,v 1.15 2017/05/24 11:28:37 adam Exp $
 
-DISTNAME=      hypothesis-3.10.0
+DISTNAME=      hypothesis-3.11.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_PYPI:=h/hypothesis/}
diff -r e88057eaa89f -r 9ba9cbb5bdf2 devel/py-hypothesis/PLIST
--- a/devel/py-hypothesis/PLIST Wed May 24 11:24:44 2017 +0000
+++ b/devel/py-hypothesis/PLIST Wed May 24 11:28:37 2017 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.4 2017/04/27 12:55:54 wiz Exp $
+@comment $NetBSD: PLIST,v 1.5 2017/05/24 11:28:37 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -51,6 +51,9 @@
 ${PYSITELIB}/hypothesis/extra/pytestplugin.py
 ${PYSITELIB}/hypothesis/extra/pytestplugin.pyc
 ${PYSITELIB}/hypothesis/extra/pytestplugin.pyo
+${PYSITELIB}/hypothesis/extra/pytz.py
+${PYSITELIB}/hypothesis/extra/pytz.pyc
+${PYSITELIB}/hypothesis/extra/pytz.pyo
 ${PYSITELIB}/hypothesis/internal/__init__.py
 ${PYSITELIB}/hypothesis/internal/__init__.pyc
 ${PYSITELIB}/hypothesis/internal/__init__.pyo
@@ -105,6 +108,9 @@
 ${PYSITELIB}/hypothesis/searchstrategy/collections.py
 ${PYSITELIB}/hypothesis/searchstrategy/collections.pyc
 ${PYSITELIB}/hypothesis/searchstrategy/collections.pyo
+${PYSITELIB}/hypothesis/searchstrategy/datetime.py
+${PYSITELIB}/hypothesis/searchstrategy/datetime.pyc
+${PYSITELIB}/hypothesis/searchstrategy/datetime.pyo
 ${PYSITELIB}/hypothesis/searchstrategy/deferred.py
 ${PYSITELIB}/hypothesis/searchstrategy/deferred.pyc
 ${PYSITELIB}/hypothesis/searchstrategy/deferred.pyo
diff -r e88057eaa89f -r 9ba9cbb5bdf2 devel/py-hypothesis/distinfo
--- a/devel/py-hypothesis/distinfo      Wed May 24 11:24:44 2017 +0000
+++ b/devel/py-hypothesis/distinfo      Wed May 24 11:28:37 2017 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.11 2017/05/23 07:57:50 adam Exp $
+$NetBSD: distinfo,v 1.12 2017/05/24 11:28:37 adam Exp $
 
-SHA1 (hypothesis-3.10.0.tar.gz) = e91b249f34e80d1fddb49d2ce8decab07a58339e
-RMD160 (hypothesis-3.10.0.tar.gz) = 2f2be0cf26b841c98e346761e1614e061ad23777
-SHA512 (hypothesis-3.10.0.tar.gz) = e6c29d3d2e0bb74dfe00058363ceaad4b4026ed83c51cc403ffb2db8ac7930f933677a9217c2227ab48a1ceaaa4d8ee94aee6797280eaf50ac76e40b3a3ceec5
-Size (hypothesis-3.10.0.tar.gz) = 80386 bytes
+SHA1 (hypothesis-3.11.0.tar.gz) = f8d5c221e711b6eb1837bcb8a7d4c0419b50b282
+RMD160 (hypothesis-3.11.0.tar.gz) = 40ae74d7c1f931b30acf46d15794d60eed1f73d9
+SHA512 (hypothesis-3.11.0.tar.gz) = e5f88c6ce5e255cdcc5f3c906fc9f14ecab2d0a611a82cc927536966afc2351f804d8e8f3b9709c2997504fac8930718ae6d79a68415617502419e5a300c1152
+Size (hypothesis-3.11.0.tar.gz) = 83191 bytes



Home | Main Index | Thread Index | Old Index