Pinging on this update. All tests pass. I worked through all the
dependencies I found using danj's show_victims.py script. All
that used it as TEST_DEPENDS passed the same number of tests.
Well, I didn't try tryton. I spend the whole day testing without
doing kryton. RUN_DEPENDS and BUILD_DEPENDS I worked through all
of them. Many of those didn't have tests though, but all built
fine.
I submitted a few tweaks to existing ports where a TEST_DEPENDS
or TEST_ENV was missing earlier tonight. I found them working on
this.
--Kurt
Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/py-dateutil/Makefile,v
retrieving revision 1.27
diff -u -p -r1.27 Makefile
--- Makefile 7 Sep 2018 11:22:25 -0000 1.27
+++ Makefile 20 Feb 2019 17:34:56 -0000
@@ -2,7 +2,7 @@
COMMENT = Python API for advanced date calculations
-MODPY_EGG_VERSION = 2.7.3
+MODPY_EGG_VERSION = 2.8.0
DISTNAME = python-dateutil-${MODPY_EGG_VERSION}
PKGNAME = ${DISTNAME:S/^python-/py-/}
CATEGORIES = devel
@@ -21,15 +21,18 @@ MODPY_SETUPTOOLS = Yes
BUILD_DEPENDS = devel/py-setuptools_scm${MODPY_FLAVOR}
RUN_DEPENDS = devel/py-six${MODPY_FLAVOR}
-TEST_DEPENDS = ${RUN_DEPENDS} \
- devel/py-freezegun${MODPY_FLAVOR} \
+TEST_DEPENDS = devel/py-freezegun${MODPY_FLAVOR} \
devel/py-hypothesis${MODPY_FLAVOR} \
+ devel/py-six${MODPY_FLAVOR} \
devel/py-test${MODPY_FLAVOR}
FLAVORS = python3
FLAVOR ?=
+TEST_ENV += LC_CTYPE=C.UTF-8
+
do-test:
- cd ${WRKSRC}; ${MODPY_BIN} -m pytest
+ cd ${WRKSRC} && exec ${SETENV} ${MAKE_ENV} ${TEST_ENV} \
+ ${MODPY_BIN} -m pytest
.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/devel/py-dateutil/distinfo,v
retrieving revision 1.13
diff -u -p -r1.13 distinfo
--- distinfo 7 Sep 2018 11:22:25 -0000 1.13
+++ distinfo 20 Feb 2019 17:34:56 -0000
@@ -1,2 +1,2 @@
-SHA256 (python-dateutil-2.7.3.tar.gz) = 4nAB3jL2J8IjgKaIvMQ86DUEp7xdpHIgm0xw8Cgp8Lg=
-SIZE (python-dateutil-2.7.3.tar.gz) = 302871
+SHA256 (python-dateutil-2.8.0.tar.gz) = yJgF9vTWTbIe2Wb9oTj4pe16T9vBqO4ynOG3Tjx02p4=
+SIZE (python-dateutil-2.8.0.tar.gz) = 327134
Index: patches/patch-dateutil_test_test_parser_py
===================================================================
RCS file: /cvs/ports/devel/py-dateutil/patches/patch-dateutil_test_test_parser_py,v
retrieving revision 1.1
diff -u -p -r1.1 patch-dateutil_test_test_parser_py
--- patches/patch-dateutil_test_test_parser_py 7 Sep 2018 11:22:25 -0000 1.1
+++ patches/patch-dateutil_test_test_parser_py 20 Feb 2019 17:34:56 -0000
@@ -6,12 +6,12 @@ than doing whatever this test wants
Index: dateutil/test/test_parser.py
--- dateutil/test/test_parser.py.orig
+++ dateutil/test/test_parser.py
-@@ -27,6 +27,8 @@ try:
- except ValueError:
- PLATFORM_HAS_DASH_D = False
+@@ -91,6 +91,8 @@ PARSER_TEST_CASES = [
+ ('December.0031.30', datetime(31, 12, 30), "BYd corner case (GH#687)")
+ ]
+if sys.platform.startswith('openbsd'):
+ PLATFORM_HAS_DASH_D = False
- class TestFormat(unittest.TestCase):
-
+ @pytest.mark.parametrize("parsable_text,expected_datetime,assertion_message", PARSER_TEST_CASES)
+ def test_parser(parsable_text, expected_datetime, assertion_message):
No comments:
Post a Comment