This updates py-freezegun to 0.3.12. Our current version isn't compatible
with Python 3.7.x so anything python3 that uses py-freezegun for tests is
currently broken.
I tested all consumers of py-freezegun. The only change that isn't 100%
positive is the python 2 flavor of py-cached-property fails one test
now:
======================================================================
FAIL: test_threads_ttl_expiry (tests.test_cached_property.TestCachedPropertyWithTTL)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/ports/pobj/py-cached-property-1.5.1/cached-property-1.5.1/tests/test_cached_property.py", line 207, in test_threads_ttl_expiry
self.assert_cached(check, 2 * num_threads)
File "/home/ports/pobj/py-cached-property-1.5.1/cached-property-1.5.1/tests/test_cached_property.py", line 69, in assert_cached
self.assertEqual(check.add_cached, expected)
AssertionError: 6 != 10
All others are the smae or better. Especially the python3 flavors, since
none of them worked before this update.
py-test-benchmark tests don't run before or after this update. I'm looking
into why that is the case.
cc maintainer
--Kurt
Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/py-freezegun/Makefile,v
retrieving revision 1.4
diff -u -p -r1.4 Makefile
--- Makefile 15 May 2019 12:04:36 -0000 1.4
+++ Makefile 28 Jun 2019 06:25:59 -0000
@@ -2,22 +2,22 @@
COMMENT = let your Python tests travel through time
-MODPY_EGG_VERSION = 0.3.9
+MODPY_EGG_VERSION = 0.3.12
DISTNAME = freezegun-${MODPY_EGG_VERSION}
PKGNAME = py-freezegun-${MODPY_EGG_VERSION}
-REVISION = 0
CATEGORIES = devel
MAINTAINER = Joerg Jung <jung@openbsd.org>
# Apache 2.0
-PERMIT_PACKAGE_CDROM = Yes
+PERMIT_PACKAGE = Yes
MODULES = lang/python
MODPY_PI = Yes
MODPY_SETUPTOOLS = Yes
+MODPY_PYTEST = Yes
RUN_DEPENDS = devel/py-dateutil${MODPY_FLAVOR} \
devel/py-six${MODPY_FLAVOR}
@@ -28,8 +28,9 @@ TEST_DEPENDS = devel/py-nose${MODPY_FLA
FLAVORS = python3
FLAVOR ?=
-do-test:
- cd ${WRKSRC} && \
- ${LOCALBASE}/bin/nosetests${MODPY_BIN_SUFFIX} tests/*.py
+.if !${FLAVOR:Mpython3}
+post-extract:
+ rm ${WRKSRC}/freezegun/_async.py
+.endif
.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/devel/py-freezegun/distinfo,v
retrieving revision 1.2
diff -u -p -r1.2 distinfo
--- distinfo 27 May 2017 19:26:52 -0000 1.2
+++ distinfo 28 Jun 2019 06:25:59 -0000
@@ -1,2 +1,2 @@
-SHA256 (freezegun-0.3.9.tar.gz) = eDzMzX9glov+Sa2eEUwY6itjgx+qr2HB8fcd394cDu4=
-SIZE (freezegun-0.3.9.tar.gz) = 18118
+SHA256 (freezegun-0.3.12.tar.gz) = Kk2cjNPASiAeIMMTyvi2M48c+kzaQ/RqlMxKn9E+pec=
+SIZE (freezegun-0.3.12.tar.gz) = 24346
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/devel/py-freezegun/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 PLIST
--- pkg/PLIST 26 May 2017 19:26:15 -0000 1.1.1.1
+++ pkg/PLIST 28 Jun 2019 06:25:59 -0000
@@ -9,5 +9,7 @@ lib/python${MODPY_VERSION}/site-packages
lib/python${MODPY_VERSION}/site-packages/freezegun/__init__.py
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/freezegun/${MODPY_PYCACHE}/
lib/python${MODPY_VERSION}/site-packages/freezegun/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
+${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/freezegun/${MODPY_PYCACHE}_async.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/freezegun/${MODPY_PYCACHE}api.${MODPY_PYC_MAGIC_TAG}pyc
+${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/freezegun/_async.py
lib/python${MODPY_VERSION}/site-packages/freezegun/api.py
No comments:
Post a Comment