diff options
author | adam <adam@pkgsrc.org> | 2017-05-24 11:28:37 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2017-05-24 11:28:37 +0000 |
commit | 61249c84a5ad2dd6331dd0d8582f9a230c996767 (patch) | |
tree | 8e233ed3e78c897615b4deb0f5f15f482d71b401 /devel/py-hypothesis | |
parent | 01cc9d85815b5903e5bd04a7bb6348a1e41f10ae (diff) | |
download | pkgsrc-61249c84a5ad2dd6331dd0d8582f9a230c996767.tar.gz |
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 (limited to 'devel/py-hypothesis')
-rw-r--r-- | devel/py-hypothesis/Makefile | 4 | ||||
-rw-r--r-- | devel/py-hypothesis/PLIST | 8 | ||||
-rw-r--r-- | devel/py-hypothesis/distinfo | 10 |
3 files changed, 14 insertions, 8 deletions
diff --git a/devel/py-hypothesis/Makefile b/devel/py-hypothesis/Makefile index 9045fec2f36..66740329130 100644 --- a/devel/py-hypothesis/Makefile +++ b/devel/py-hypothesis/Makefile @@ -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 --git a/devel/py-hypothesis/PLIST b/devel/py-hypothesis/PLIST index 257f8cf8211..40d0302dcb4 100644 --- a/devel/py-hypothesis/PLIST +++ b/devel/py-hypothesis/PLIST @@ -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/numpy.pyo ${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/__init__.pyo ${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 --git a/devel/py-hypothesis/distinfo b/devel/py-hypothesis/distinfo index a52adb3c973..0c170c55bc3 100644 --- a/devel/py-hypothesis/distinfo +++ b/devel/py-hypothesis/distinfo @@ -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 |