Wed May 24 11:28:37 2017 UTC ()
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.


(adam)
diff -r1.14 -r1.15 pkgsrc/devel/py-hypothesis/Makefile
diff -r1.4 -r1.5 pkgsrc/devel/py-hypothesis/PLIST
diff -r1.11 -r1.12 pkgsrc/devel/py-hypothesis/distinfo

cvs diff -r1.14 -r1.15 pkgsrc/devel/py-hypothesis/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/py-hypothesis/Makefile 2017/05/23 07:57:50 1.14
+++ pkgsrc/devel/py-hypothesis/Makefile 2017/05/24 11:28:37 1.15
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1# $NetBSD: Makefile,v 1.14 2017/05/23 07:57:50 adam Exp $ 1# $NetBSD: Makefile,v 1.15 2017/05/24 11:28:37 adam Exp $
2 2
3DISTNAME= hypothesis-3.10.0 3DISTNAME= hypothesis-3.11.0
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5CATEGORIES= devel 5CATEGORIES= devel
6MASTER_SITES= ${MASTER_SITE_PYPI:=h/hypothesis/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=h/hypothesis/}
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://github.com/HypothesisWorks/hypothesis-python 9HOMEPAGE= https://github.com/HypothesisWorks/hypothesis-python
10COMMENT= Python library for property based testing 10COMMENT= Python library for property based testing
11LICENSE= mpl-2.0 11LICENSE= mpl-2.0
12 12
13DEPENDS+= ${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3 13DEPENDS+= ${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3
14 14
15USE_LANGUAGES= # none 15USE_LANGUAGES= # none
16 16

cvs diff -r1.4 -r1.5 pkgsrc/devel/py-hypothesis/PLIST (expand / switch to unified diff)

--- pkgsrc/devel/py-hypothesis/PLIST 2017/04/27 12:55:54 1.4
+++ pkgsrc/devel/py-hypothesis/PLIST 2017/05/24 11:28:37 1.5
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1@comment $NetBSD: PLIST,v 1.4 2017/04/27 12:55:54 wiz Exp $ 1@comment $NetBSD: PLIST,v 1.5 2017/05/24 11:28:37 adam Exp $
2${PYSITELIB}/${EGG_INFODIR}/PKG-INFO 2${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
3${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt 3${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
4${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt 4${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
5${PYSITELIB}/${EGG_INFODIR}/entry_points.txt 5${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
6${PYSITELIB}/${EGG_INFODIR}/not-zip-safe 6${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
7${PYSITELIB}/${EGG_INFODIR}/requires.txt 7${PYSITELIB}/${EGG_INFODIR}/requires.txt
8${PYSITELIB}/${EGG_INFODIR}/top_level.txt 8${PYSITELIB}/${EGG_INFODIR}/top_level.txt
9${PYSITELIB}/hypothesis/__init__.py 9${PYSITELIB}/hypothesis/__init__.py
10${PYSITELIB}/hypothesis/__init__.pyc 10${PYSITELIB}/hypothesis/__init__.pyc
11${PYSITELIB}/hypothesis/__init__.pyo 11${PYSITELIB}/hypothesis/__init__.pyo
12${PYSITELIB}/hypothesis/_settings.py 12${PYSITELIB}/hypothesis/_settings.py
13${PYSITELIB}/hypothesis/_settings.pyc 13${PYSITELIB}/hypothesis/_settings.pyc
14${PYSITELIB}/hypothesis/_settings.pyo 14${PYSITELIB}/hypothesis/_settings.pyo
@@ -41,26 +41,29 @@ ${PYSITELIB}/hypothesis/extra/django/__i @@ -41,26 +41,29 @@ ${PYSITELIB}/hypothesis/extra/django/__i
41${PYSITELIB}/hypothesis/extra/django/__init__.pyo 41${PYSITELIB}/hypothesis/extra/django/__init__.pyo
42${PYSITELIB}/hypothesis/extra/django/models.py 42${PYSITELIB}/hypothesis/extra/django/models.py
43${PYSITELIB}/hypothesis/extra/django/models.pyc 43${PYSITELIB}/hypothesis/extra/django/models.pyc
44${PYSITELIB}/hypothesis/extra/django/models.pyo 44${PYSITELIB}/hypothesis/extra/django/models.pyo
45${PYSITELIB}/hypothesis/extra/fakefactory.py 45${PYSITELIB}/hypothesis/extra/fakefactory.py
46${PYSITELIB}/hypothesis/extra/fakefactory.pyc 46${PYSITELIB}/hypothesis/extra/fakefactory.pyc
47${PYSITELIB}/hypothesis/extra/fakefactory.pyo 47${PYSITELIB}/hypothesis/extra/fakefactory.pyo
48${PYSITELIB}/hypothesis/extra/numpy.py 48${PYSITELIB}/hypothesis/extra/numpy.py
49${PYSITELIB}/hypothesis/extra/numpy.pyc 49${PYSITELIB}/hypothesis/extra/numpy.pyc
50${PYSITELIB}/hypothesis/extra/numpy.pyo 50${PYSITELIB}/hypothesis/extra/numpy.pyo
51${PYSITELIB}/hypothesis/extra/pytestplugin.py 51${PYSITELIB}/hypothesis/extra/pytestplugin.py
52${PYSITELIB}/hypothesis/extra/pytestplugin.pyc 52${PYSITELIB}/hypothesis/extra/pytestplugin.pyc
53${PYSITELIB}/hypothesis/extra/pytestplugin.pyo 53${PYSITELIB}/hypothesis/extra/pytestplugin.pyo
 54${PYSITELIB}/hypothesis/extra/pytz.py
 55${PYSITELIB}/hypothesis/extra/pytz.pyc
 56${PYSITELIB}/hypothesis/extra/pytz.pyo
54${PYSITELIB}/hypothesis/internal/__init__.py 57${PYSITELIB}/hypothesis/internal/__init__.py
55${PYSITELIB}/hypothesis/internal/__init__.pyc 58${PYSITELIB}/hypothesis/internal/__init__.pyc
56${PYSITELIB}/hypothesis/internal/__init__.pyo 59${PYSITELIB}/hypothesis/internal/__init__.pyo
57${PYSITELIB}/hypothesis/internal/charmap.py 60${PYSITELIB}/hypothesis/internal/charmap.py
58${PYSITELIB}/hypothesis/internal/charmap.pyc 61${PYSITELIB}/hypothesis/internal/charmap.pyc
59${PYSITELIB}/hypothesis/internal/charmap.pyo 62${PYSITELIB}/hypothesis/internal/charmap.pyo
60${PYSITELIB}/hypothesis/internal/classmap.py 63${PYSITELIB}/hypothesis/internal/classmap.py
61${PYSITELIB}/hypothesis/internal/classmap.pyc 64${PYSITELIB}/hypothesis/internal/classmap.pyc
62${PYSITELIB}/hypothesis/internal/classmap.pyo 65${PYSITELIB}/hypothesis/internal/classmap.pyo
63${PYSITELIB}/hypothesis/internal/compat.py 66${PYSITELIB}/hypothesis/internal/compat.py
64${PYSITELIB}/hypothesis/internal/compat.pyc 67${PYSITELIB}/hypothesis/internal/compat.pyc
65${PYSITELIB}/hypothesis/internal/compat.pyo 68${PYSITELIB}/hypothesis/internal/compat.pyo
66${PYSITELIB}/hypothesis/internal/conjecture/__init__.py 69${PYSITELIB}/hypothesis/internal/conjecture/__init__.py
@@ -95,26 +98,29 @@ ${PYSITELIB}/hypothesis/internal/interva @@ -95,26 +98,29 @@ ${PYSITELIB}/hypothesis/internal/interva
95${PYSITELIB}/hypothesis/internal/intervalsets.pyo 98${PYSITELIB}/hypothesis/internal/intervalsets.pyo
96${PYSITELIB}/hypothesis/internal/reflection.py 99${PYSITELIB}/hypothesis/internal/reflection.py
97${PYSITELIB}/hypothesis/internal/reflection.pyc 100${PYSITELIB}/hypothesis/internal/reflection.pyc
98${PYSITELIB}/hypothesis/internal/reflection.pyo 101${PYSITELIB}/hypothesis/internal/reflection.pyo
99${PYSITELIB}/hypothesis/reporting.py 102${PYSITELIB}/hypothesis/reporting.py
100${PYSITELIB}/hypothesis/reporting.pyc 103${PYSITELIB}/hypothesis/reporting.pyc
101${PYSITELIB}/hypothesis/reporting.pyo 104${PYSITELIB}/hypothesis/reporting.pyo
102${PYSITELIB}/hypothesis/searchstrategy/__init__.py 105${PYSITELIB}/hypothesis/searchstrategy/__init__.py
103${PYSITELIB}/hypothesis/searchstrategy/__init__.pyc 106${PYSITELIB}/hypothesis/searchstrategy/__init__.pyc
104${PYSITELIB}/hypothesis/searchstrategy/__init__.pyo 107${PYSITELIB}/hypothesis/searchstrategy/__init__.pyo
105${PYSITELIB}/hypothesis/searchstrategy/collections.py 108${PYSITELIB}/hypothesis/searchstrategy/collections.py
106${PYSITELIB}/hypothesis/searchstrategy/collections.pyc 109${PYSITELIB}/hypothesis/searchstrategy/collections.pyc
107${PYSITELIB}/hypothesis/searchstrategy/collections.pyo 110${PYSITELIB}/hypothesis/searchstrategy/collections.pyo
 111${PYSITELIB}/hypothesis/searchstrategy/datetime.py
 112${PYSITELIB}/hypothesis/searchstrategy/datetime.pyc
 113${PYSITELIB}/hypothesis/searchstrategy/datetime.pyo
108${PYSITELIB}/hypothesis/searchstrategy/deferred.py 114${PYSITELIB}/hypothesis/searchstrategy/deferred.py
109${PYSITELIB}/hypothesis/searchstrategy/deferred.pyc 115${PYSITELIB}/hypothesis/searchstrategy/deferred.pyc
110${PYSITELIB}/hypothesis/searchstrategy/deferred.pyo 116${PYSITELIB}/hypothesis/searchstrategy/deferred.pyo
111${PYSITELIB}/hypothesis/searchstrategy/fixed.py 117${PYSITELIB}/hypothesis/searchstrategy/fixed.py
112${PYSITELIB}/hypothesis/searchstrategy/fixed.pyc 118${PYSITELIB}/hypothesis/searchstrategy/fixed.pyc
113${PYSITELIB}/hypothesis/searchstrategy/fixed.pyo 119${PYSITELIB}/hypothesis/searchstrategy/fixed.pyo
114${PYSITELIB}/hypothesis/searchstrategy/flatmapped.py 120${PYSITELIB}/hypothesis/searchstrategy/flatmapped.py
115${PYSITELIB}/hypothesis/searchstrategy/flatmapped.pyc 121${PYSITELIB}/hypothesis/searchstrategy/flatmapped.pyc
116${PYSITELIB}/hypothesis/searchstrategy/flatmapped.pyo 122${PYSITELIB}/hypothesis/searchstrategy/flatmapped.pyo
117${PYSITELIB}/hypothesis/searchstrategy/misc.py 123${PYSITELIB}/hypothesis/searchstrategy/misc.py
118${PYSITELIB}/hypothesis/searchstrategy/misc.pyc 124${PYSITELIB}/hypothesis/searchstrategy/misc.pyc
119${PYSITELIB}/hypothesis/searchstrategy/misc.pyo 125${PYSITELIB}/hypothesis/searchstrategy/misc.pyo
120${PYSITELIB}/hypothesis/searchstrategy/numbers.py 126${PYSITELIB}/hypothesis/searchstrategy/numbers.py

cvs diff -r1.11 -r1.12 pkgsrc/devel/py-hypothesis/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/py-hypothesis/distinfo 2017/05/23 07:57:50 1.11
+++ pkgsrc/devel/py-hypothesis/distinfo 2017/05/24 11:28:37 1.12
@@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
1$NetBSD: distinfo,v 1.11 2017/05/23 07:57:50 adam Exp $ 1$NetBSD: distinfo,v 1.12 2017/05/24 11:28:37 adam Exp $
2 2
3SHA1 (hypothesis-3.10.0.tar.gz) = e91b249f34e80d1fddb49d2ce8decab07a58339e 3SHA1 (hypothesis-3.11.0.tar.gz) = f8d5c221e711b6eb1837bcb8a7d4c0419b50b282
4RMD160 (hypothesis-3.10.0.tar.gz) = 2f2be0cf26b841c98e346761e1614e061ad23777 4RMD160 (hypothesis-3.11.0.tar.gz) = 40ae74d7c1f931b30acf46d15794d60eed1f73d9
5SHA512 (hypothesis-3.10.0.tar.gz) = e6c29d3d2e0bb74dfe00058363ceaad4b4026ed83c51cc403ffb2db8ac7930f933677a9217c2227ab48a1ceaaa4d8ee94aee6797280eaf50ac76e40b3a3ceec5 5SHA512 (hypothesis-3.11.0.tar.gz) = e5f88c6ce5e255cdcc5f3c906fc9f14ecab2d0a611a82cc927536966afc2351f804d8e8f3b9709c2997504fac8930718ae6d79a68415617502419e5a300c1152
6Size (hypothesis-3.10.0.tar.gz) = 80386 bytes 6Size (hypothesis-3.11.0.tar.gz) = 83191 bytes