CVS commit: pkgsrc/time/py-dateparser
"Adam Ciarcinski" <[email protected]> Fri, 7 Aug 2026 08:30:42 +0000
| Newsgroups | gmane.os.netbsd.devel.pkgsrc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Module Name: pkgsrc
Committed By: adam
Date: Fri Aug 7 08:30:42 UTC 2026
Modified Files:
pkgsrc/time/py-dateparser: Makefile PLIST distinfo
Log Message:
py-dateparser: updated to 1.4.2
1.4.2 (2026-08-04)
New features:
- Add an ``IGNORE_SURROUNDING_TEXT`` setting that, when enabled, retries
parsing after ignoring the leading and trailing words the language does
not recognize, so a date wrapped in extra text such as "Published on
16/04/2019" is parsed
- Add a ``strategy`` argument to ``search_dates()`` to choose the search
strategy: the default ``"split"`` keeps the current behavior, while the
new ``"ngram"`` strategy parses the longest sequences of tokens as dates
for more predictable results on noisy text
Fixes:
- Do not read a two-digit number as a year once a later component has been
found in year-first date orders, so the day in Japanese dates such as
"4月20日" is no longer consumed as the year
- Parse ISO 8601 dates (those starting with a four-digit year) in month-day
order even when an explicit day-first language such as ``it`` or ``fr`` is
given, without needing to set ``PREFER_LOCALE_DATE_ORDER`` to ``False``
- Honor ``PREFER_DATES_FROM`` and ``RELATIVE_BASE`` when parsing with custom
``date_formats`` that use a two-digit year (``%y``)
- Honor the ``%j`` (day of year) directive in ``date_formats`` instead of
overwriting the parsed month and day with the current date
Improvements:
- Update the bundled CLDR locale data to 44.1.0, adding many newly
recognized date forms across locales and a standalone hour/duration unit
(e.g. Catalan "2 hores"), while keeping previously supported forms
parseable
- Add the Italian expressions "un ora fa" and "un'ora fa", and skip "alle"
so phrases like "oggi alle 11:00" parse
- Expand Czech date translations with month locative/dative forms (e.g. "v
lednu 2023"), the July abbreviation "črv", and relative expressions such
as "za týden", "za měsíc" and "za rok"
- Specify the README header content as RST rather than raw HTML
To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 pkgsrc/time/py-dateparser/Makefile \
pkgsrc/time/py-dateparser/distinfo
cvs rdiff -u -r1.9 -r1.10 pkgsrc/time/py-dateparser/PLIST
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
(unnamed)
(text/x-diff, 2.5 KB)
Modified files:
Index: pkgsrc/time/py-dateparser/Makefile
diff -u pkgsrc/time/py-dateparser/Makefile:1.22 pkgsrc/time/py-dateparser/Makefile:1.23
--- pkgsrc/time/py-dateparser/Makefile:1.22 Tue Jun 23 09:04:28 2026
+++ pkgsrc/time/py-dateparser/Makefile Fri Aug 7 08:30:41 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.22 2026/06/23 09:04:28 adam Exp $
+# $NetBSD: Makefile,v 1.23 2026/08/07 08:30:41 adam Exp $
-DISTNAME= dateparser-1.4.1
+DISTNAME= dateparser-1.4.2
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.22 pkgsrc/time/py-dateparser/distinfo:1.23
--- pkgsrc/time/py-dateparser/distinfo:1.22 Tue Jun 23 09:04:28 2026
+++ pkgsrc/time/py-dateparser/distinfo Fri Aug 7 08:30:41 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.22 2026/06/23 09:04:28 adam Exp $
+$NetBSD: distinfo,v 1.23 2026/08/07 08:30:41 adam Exp $
-BLAKE2s (dateparser-1.4.1.tar.gz) = bd1334f5cdd1df52a0769b2af1e594e565e764f43f94305c4f611c706fe9b10d
-SHA512 (dateparser-1.4.1.tar.gz) = 379dcefdb52b92e54e7e3bb8978db8e9290aedabb07a9d4a0a45b9cfcb7351a1903ef04410565a6767af0e9f92941e7707ea4e5081be0d08c94f5644db3bd04a
-Size (dateparser-1.4.1.tar.gz) = 314734 bytes
+BLAKE2s (dateparser-1.4.2.tar.gz) = 7dfa03df7a7bc850b669bba2c2a6d52ac48f1dc59c6e45a621f2744738863139
+SHA512 (dateparser-1.4.2.tar.gz) = 5296a908ea9405448ccc4f94f3e7244cfeecfe0e8301dfa8a485587127117c2c03029761ac4a8ba88a1a3a2a9604953756f2241c783017f2a2d9e61e44a95106
+Size (dateparser-1.4.2.tar.gz) = 338363 bytes
Index: pkgsrc/time/py-dateparser/PLIST
diff -u pkgsrc/time/py-dateparser/PLIST:1.9 pkgsrc/time/py-dateparser/PLIST:1.10
--- pkgsrc/time/py-dateparser/PLIST:1.9 Tue Mar 31 04:38:26 2026
+++ pkgsrc/time/py-dateparser/PLIST Fri Aug 7 08:30:41 2026
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.9 2026/03/31 04:38:26 adam Exp $
+@comment $NetBSD: PLIST,v 1.10 2026/08/07 08:30:41 adam Exp $
bin/dateparser-download-${PYVERSSUFFIX}
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
${PYSITELIB}/${WHEEL_INFODIR}/RECORD
@@ -697,6 +697,9 @@ ${PYSITELIB}/dateparser/search/__init__.
${PYSITELIB}/dateparser/search/detection.py
${PYSITELIB}/dateparser/search/detection.pyc
${PYSITELIB}/dateparser/search/detection.pyo
+${PYSITELIB}/dateparser/search/ngram_search.py
+${PYSITELIB}/dateparser/search/ngram_search.pyc
+${PYSITELIB}/dateparser/search/ngram_search.pyo
${PYSITELIB}/dateparser/search/search.py
${PYSITELIB}/dateparser/search/search.pyc
${PYSITELIB}/dateparser/search/search.pyo