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:           Sun Nov  8 17:45:39 UTC 2026

Modified Files:
        pkgsrc/time/py-dateutil: Makefile PLIST distinfo

Log Message:
py-dateutil: update to 4.0.0.

Version 4.0.0 (2026-11-01)
==========================

``dateutil`` 4.0 requires Python 3.11 or later and no longer depends on
``six``. Apart from that, the changes in this release are bug fixes, but note
that ``isoparse`` is now stricter about the numeric fields it accepts (see
below).

Deprecations
------------

- Dropped support for Python versions older than 3.11 and removed the dependency
  on ``six``, along with Python 2 compatibility helpers that were never part of
  the public API, such as ``dateutil.tz.tzname_in_python2``. (gh pr #1625)

Bugfixes
--------

- ``parser.isoparse``, and the ``isoparser`` methods ``parse_isodate``,
  ``parse_isotime`` and ``parse_tzstr``, now require each numeric field to be
  exactly the expected number of ASCII digits. Strings that were previously
  accepted, such as ``20200728121240`` (read as 21:24), ``2014- 4-21`` and
  ``2_14-04-21``, and offsets such as ``+-1:00``, now raise ``ValueError``.
  ``tzical`` applies the same check to ``TZOFFSETFROM`` and ``TZOFFSETTO``.
  Reported by @janos-gonye (gh issue #1074). Fixed by @varun3257 (gh pr #1617).
- Fixed an issue where iterating over a cached ``rrule`` or ``rruleset`` could
  hang forever if another iterator over the same rule had already completed the
  cache, for example when a cached ``rrule`` was included twice in an
  ``rruleset``. Reported by @bysiber (gh pr #1455). Fixed by @pganssle (gh pr
  #1655).
- Unpickling a ``tzutc`` now gives the ``dateutil.tz.UTC`` singleton, and
  unpickling a ``tzoffset`` gives the same object as calling
  ``tzoffset(name, offset)``. Previously unpickling bypassed the
  singleton-generation logic. Reported and fixed by @masipcat (gh issue #1051,
  gh pr #1053).
- ``relativedelta(yearday=366)`` now resolves to December 31 in leap years.
  Previously it gave December 30, the same date as ``yearday=365``. Reported
  and fixed by @Master-Norna (gh pr #1583).

Misc
----

- The build backend is now Hatchling, and the package metadata is in
  ``pyproject.toml``. Versions are still derived from Git tags and exposed as
  ``dateutil.__version__``. This mainly affects people building ``dateutil``
  from source. (gh pr #1637, #1638)
- Changes to CI, tests and release tooling that do not affect users of the
  package: gh pr #1636, #1644, #1645, #1646, #1648, #1649, #1650.


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 pkgsrc/time/py-dateutil/Makefile
cvs rdiff -u -r1.14 -r1.15 pkgsrc/time/py-dateutil/PLIST
cvs rdiff -u -r1.24 -r1.25 pkgsrc/time/py-dateutil/distinfo

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.43 pkgsrc/time/py-dateutil/Makefile:1.44
--- pkgsrc/time/py-dateutil/Makefile:1.43       Sun Oct 25 12:49:47 2026
+++ pkgsrc/time/py-dateutil/Makefile    Sun Nov  8 17:45:39 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.43 2026/10/25 12:49:47 wiz Exp $
+# $NetBSD: Makefile,v 1.44 2026/11/08 17:45:39 wiz Exp $
 
-DISTNAME=      python_dateutil-3.0.0
+DISTNAME=      python_dateutil-4.0.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/python_//}
 CATEGORIES=    time python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/python-dateutil/}
@@ -10,16 +10,16 @@ HOMEPAGE=   https://github.com/dateutil/da
 COMMENT=       Extensions to the standard datetime module
 LICENSE=       modified-bsd
 
-TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools>=78:../../devel/py-setuptools
-TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
-DEPENDS+=      ${PYPKGPREFIX}-six>=1.5:../../lang/py-six
+TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling>=0:../../devel/py-hatchling
+TOOL_DEPENDS+= ${PYPKGPREFIX}-hatch-fancy-pypi-readme>=0:../../devel/py-hatch-fancy-pypi-readme
+TOOL_DEPENDS+= ${PYPKGPREFIX}-hatch-vcs>=0:../../devel/py-hatch-vcs
 TEST_DEPENDS+= ${PYPKGPREFIX}-attrs>=0:../../devel/py-attrs
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov>=2.0:../../devel/py-test-cov
 TEST_DEPENDS+= ${PYPKGPREFIX}-freezegun-[0-9]*:../../devel/py-freezegun
 TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis>=3.30:../../devel/py-hypothesis
 
-# as of 3.0.0
-# 2 failed, 4899 passed, 416 skipped, 17 xfailed
+# as of 4.0.0
+# 38 failed, 4875 passed, 414 skipped, 17 xfailed
 
 .include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/time/py-dateutil/PLIST
diff -u pkgsrc/time/py-dateutil/PLIST:1.14 pkgsrc/time/py-dateutil/PLIST:1.15
--- pkgsrc/time/py-dateutil/PLIST:1.14  Sun Oct 25 12:49:47 2026
+++ pkgsrc/time/py-dateutil/PLIST       Sun Nov  8 17:45:39 2026
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.14 2026/10/25 12:49:47 wiz Exp $
+@comment $NetBSD: PLIST,v 1.15 2026/11/08 17:45:39 wiz Exp $
 ${PYSITELIB}/dateutil/__init__.py
 ${PYSITELIB}/dateutil/__init__.pyc
 ${PYSITELIB}/dateutil/__init__.pyo
@@ -65,6 +65,5 @@ ${PYSITELIB}/dateutil/zoneinfo/rebuild.p
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA
 ${PYSITELIB}/${WHEEL_INFODIR}/RECORD
 ${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/licenses/AUTHORS.md
 ${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE
-${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
-${PYSITELIB}/${WHEEL_INFODIR}/zip-safe

Index: pkgsrc/time/py-dateutil/distinfo
diff -u pkgsrc/time/py-dateutil/distinfo:1.24 pkgsrc/time/py-dateutil/distinfo:1.25
--- pkgsrc/time/py-dateutil/distinfo:1.24       Sun Oct 25 12:49:47 2026
+++ pkgsrc/time/py-dateutil/distinfo    Sun Nov  8 17:45:39 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.24 2026/10/25 12:49:47 wiz Exp $
+$NetBSD: distinfo,v 1.25 2026/11/08 17:45:39 wiz Exp $
 
-BLAKE2s (python_dateutil-3.0.0.tar.gz) = 951543b9d7978cdd67ca5340edde6c16a3b362fb95682f92f4d0583e05c499f4
-SHA512 (python_dateutil-3.0.0.tar.gz) = 638dcea7a840163bfd79d174b3ccd43254d712b92c1739dc93f937ecce122994ff25d19a579705cd6ba77336901e879ab4c7f68ca599b5576656a3b6783c2c69
-Size (python_dateutil-3.0.0.tar.gz) = 271066 bytes
+BLAKE2s (python_dateutil-4.0.0.tar.gz) = 7eef33a43c323c474d275a14c7b508ab3490b3df683a2d7e275c267b28c78cd8
+SHA512 (python_dateutil-4.0.0.tar.gz) = 40e87b7fe0a8281468da74a3e202cfdacfda7ba5ca692ac2282aed5de8daf7797daaa0a6801943fe68d7043a85991dbe43b092d6f1d7506853735b0a363f1a0d
+Size (python_dateutil-4.0.0.tar.gz) = 250419 bytes



Home | Main Index | Thread Index | Old Index