pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/time/py-dateparser



Module Name:    pkgsrc
Committed By:   adam
Date:           Tue Nov 24 06:46:57 UTC 2026

Modified Files:
        pkgsrc/time/py-dateparser: Makefile distinfo

Log Message:
py-dateparser: updated to 1.5.1

1.5.1 (2026-11-17)

Security fixes:

- Prevent quadratic regex matching on long whitespace runs in the Jalali
  calendar (`GHSA-rq5p-ww4m-666c
  <https://github.com/scrapinghub/dateparser/security/advisories/GHSA-rq5p-ww4m-666c>`_)
- Prevent quadratic parsing in ``search_dates()`` on a long run of skipped
  words after a number (`GHSA-c83m-fh72-x3jp
  <https://github.com/scrapinghub/dateparser/security/advisories/GHSA-c83m-fh72-x3jp>`_)
- Prevent unbounded recursion and quadratic parsing in ``search_dates()`` on
  many quantities written in words (`GHSA-8hqv-h88c-f367
  <https://github.com/scrapinghub/dateparser/security/advisories/GHSA-8hqv-h88c-f367>`_)
- Prevent quadratic time in ``search_dates()`` on a long text whose words
  and Unicode-normalized words differ in number (`GHSA-wr9g-q4w6-fp42
  <https://github.com/scrapinghub/dateparser/security/advisories/GHSA-wr9g-q4w6-fp42>`_)
- Prevent quadratic parsing in ``parse()`` on a long run of separators
  followed by skipped words (`GHSA-5g92-f88x-gwj5
  <https://github.com/scrapinghub/dateparser/security/advisories/GHSA-5g92-f88x-gwj5>`_)

New features:

- Support "less than a minute ago" in Russian, such as "Меньше 1 минуты
  назад", which was not parsed before

Fixes:

- ``search_dates()`` looks for the words of a quantity written in words
  among at most 16 words, so a longer quantity can give a different result
- ``search_dates()`` yields at most eight dates from a run of more than
  eight quantities written in words, where it yielded all of them before
- Keep a full stop that belongs to a date inside the date in
  ``search_dates()``, so "Sept. 5, 2020" is no longer split at the full stop
- Use the reference date's year when a custom format has no year, so
  ``PREFER_DAY_OF_MONTH="last"`` returns February 29 in a leap year instead
  of February 28, and skip invalid leap days instead of raising
  ``ValueError``; with ``PREFER_DAY_OF_MONTH`` or ``PREFER_MONTH_OF_YEAR``
  set to "current", the day or month of ``RELATIVE_BASE`` is used when it is
  set
- Leave out a time span that does not fit in the years 1 to 9999, instead of
  raising ``ValueError`` in ``search_dates()`` with ``RETURN_TIME_SPAN``, so
  the other dates of the text are kept
- Treat digits that the regular expression module matches but ``int()``
  rejects as not a number, instead of raising ``ValueError`` in ``parse()``
  and ``search_dates()``
- Do not raise ``KeyError`` for a month or weekday name in ``date_formats``
  that is spelled with a letter the regular expression module equates with a
  letter of the name when ignoring case, such as the long s for "s"; the
  date is read as that name
- Stop the Vietnamese year simplification from eating the month name "năm",
  so a month name such as "Tháng năm" (May) followed by a year parses

- Fix parsing time-only strings such as "3pm" when ``RELATIVE_BASE`` is
  timezone-aware, which returned ``None``


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 pkgsrc/time/py-dateparser/Makefile \
    pkgsrc/time/py-dateparser/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-dateparser/Makefile
diff -u pkgsrc/time/py-dateparser/Makefile:1.25 pkgsrc/time/py-dateparser/Makefile:1.26
--- pkgsrc/time/py-dateparser/Makefile:1.25     Mon Nov 16 15:45:17 2026
+++ pkgsrc/time/py-dateparser/Makefile  Tue Nov 24 06:46:57 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.25 2026/11/16 15:45:17 adam Exp $
+# $NetBSD: Makefile,v 1.26 2026/11/24 06:46:57 adam Exp $
 
-DISTNAME=      dateparser-1.5.0
+DISTNAME=      dateparser-1.5.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    time python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=d/dateparser/}
Index: pkgsrc/time/py-dateparser/distinfo
diff -u pkgsrc/time/py-dateparser/distinfo:1.25 pkgsrc/time/py-dateparser/distinfo:1.26
--- pkgsrc/time/py-dateparser/distinfo:1.25     Mon Nov 16 15:45:17 2026
+++ pkgsrc/time/py-dateparser/distinfo  Tue Nov 24 06:46:57 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.25 2026/11/16 15:45:17 adam Exp $
+$NetBSD: distinfo,v 1.26 2026/11/24 06:46:57 adam Exp $
 
-BLAKE2s (dateparser-1.5.0.tar.gz) = a4aa6ac922b0385bc31a1124a6de6c37392c77febd33cb3e790ea1452d6f76a9
-SHA512 (dateparser-1.5.0.tar.gz) = e9746c3266d6f3a98e6c7c813116751e3671eb3f5472bc398ae3f7ff60e26005c125f546669714520804e65a7b2a9801f543255d0ecb627453f54bb56df3c373
-Size (dateparser-1.5.0.tar.gz) = 484678 bytes
+BLAKE2s (dateparser-1.5.1.tar.gz) = a0e298577676e3e744d4d1e27c63bf2afd049b7b9461acb7f429a8cc99f7500a
+SHA512 (dateparser-1.5.1.tar.gz) = 960a35ecf9b41b0d80dcef5a043348270c75ffedfda71fed2071de3d671e228f817df43aa392e23b9951a170b44a88651fc0f40f206901b0c31a47c387609267
+Size (dateparser-1.5.1.tar.gz) = 503120 bytes



Home | Main Index | Thread Index | Old Index