pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/time/py-dateutil
Module Name: pkgsrc
Committed By: wiz
Date: Fri Aug 21 11:21:36 UTC 2026
Modified Files:
pkgsrc/time/py-dateutil: Makefile distinfo
Added Files:
pkgsrc/time/py-dateutil/patches: patch-tests_test__isoparser.py
Log Message:
py-dateutil: fix running tests using patch from upstream PR
To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 pkgsrc/time/py-dateutil/Makefile
cvs rdiff -u -r1.21 -r1.22 pkgsrc/time/py-dateutil/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/time/py-dateutil/patches/patch-tests_test__isoparser.py
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/time/py-dateutil/Makefile
diff -u pkgsrc/time/py-dateutil/Makefile:1.40 pkgsrc/time/py-dateutil/Makefile:1.41
--- pkgsrc/time/py-dateutil/Makefile:1.40 Sun Apr 13 11:02:10 2025
+++ pkgsrc/time/py-dateutil/Makefile Fri Aug 21 11:21:36 2026
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.40 2025/04/13 11:02:10 wiz Exp $
+# $NetBSD: Makefile,v 1.41 2026/08/21 11:21:36 wiz Exp $
DISTNAME= python-dateutil-2.9.0.post0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/python-//:S/post/0.0./}
@@ -18,5 +18,8 @@ TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov>=
TEST_DEPENDS+= ${PYPKGPREFIX}-freezegun-[0-9]*:../../devel/py-freezegun
TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis>=3.30:../../devel/py-hypothesis
+# as of 2.9.0.post0
+# 31 failed, 2001 passed, 47 skipped, 17 xfailed
+
.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/time/py-dateutil/distinfo
diff -u pkgsrc/time/py-dateutil/distinfo:1.21 pkgsrc/time/py-dateutil/distinfo:1.22
--- pkgsrc/time/py-dateutil/distinfo:1.21 Sun Mar 3 11:42:57 2024
+++ pkgsrc/time/py-dateutil/distinfo Fri Aug 21 11:21:36 2026
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.21 2024/03/03 11:42:57 wiz Exp $
+$NetBSD: distinfo,v 1.22 2026/08/21 11:21:36 wiz Exp $
BLAKE2s (python-dateutil-2.9.0.post0.tar.gz) = 853dce8ffa2bb628e0d82444793adb394e9962ddca529ce1dea814e30384b416
SHA512 (python-dateutil-2.9.0.post0.tar.gz) = f76522de0ff21547327eaf6966e80a15c57f8f92588d520eabd354a732e5c4b51d9c3ac5effd9eaa6dd451d1bce329a54a3f4c6bf4f1bd08ff06b0305c994e5a
Size (python-dateutil-2.9.0.post0.tar.gz) = 342432 bytes
+SHA1 (patch-tests_test__isoparser.py) = d4cee0a18d24001746ad65ce5bad1f72ad253e7b
Added files:
Index: pkgsrc/time/py-dateutil/patches/patch-tests_test__isoparser.py
diff -u /dev/null pkgsrc/time/py-dateutil/patches/patch-tests_test__isoparser.py:1.1
--- /dev/null Fri Aug 21 11:21:36 2026
+++ pkgsrc/time/py-dateutil/patches/patch-tests_test__isoparser.py Fri Aug 21 11:21:36 2026
@@ -0,0 +1,29 @@
+$NetBSD: patch-tests_test__isoparser.py,v 1.1 2026/08/21 11:21:36 wiz Exp $
+
+test: fix isoparser test collection under newer pytest (parametrize generator) - #1531
+https://github.com/dateutil/dateutil/pull/1531
+
+--- tests/test_isoparser.py.orig 2024-03-01 18:35:19.000000000 +0000
++++ tests/test_isoparser.py
+@@ -118,12 +118,15 @@ DATETIMES = [datetime(2017, 11, 27, 6, 14, 30, 123456)
+ _isoparse_date_and_time(dt, date_fmt, time_fmt, tzoffset)
+
+ DATETIMES = [datetime(2017, 11, 27, 6, 14, 30, 123456)]
+-@pytest.mark.parametrize('dt', tuple(DATETIMES))
+-@pytest.mark.parametrize('date_fmt', YMD_FMTS)
+-@pytest.mark.parametrize('time_fmt', (x + sep + '%f' for x in HMS_FMTS
+- for sep in '.,'))
+-@pytest.mark.parametrize('tzoffset', TZOFFSETS)
+-@pytest.mark.parametrize('precision', list(range(3, 7)))
++
++
++@pytest.mark.parametrize("dt", tuple(DATETIMES))
++@pytest.mark.parametrize("date_fmt", YMD_FMTS)
++@pytest.mark.parametrize(
++ "time_fmt", [x + sep + "%f" for x in HMS_FMTS for sep in ".,"]
++)
++@pytest.mark.parametrize("tzoffset", TZOFFSETS)
++@pytest.mark.parametrize("precision", list(range(3, 7)))
+ def test_ymd_hms_micro(dt, date_fmt, time_fmt, tzoffset, precision):
+ # Truncate the microseconds to the desired precision for the representation
+ dt = dt.replace(microsecond=int(round(dt.microsecond, precision-6)))
Home |
Main Index |
Thread Index |
Old Index