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 Jun 23 09:04:28 UTC 2026
Modified Files:
pkgsrc/time/py-dateparser: Makefile distinfo
Log Message:
py-dateparser: updated to 1.4.1
1.4.1 (2026-06-15)
Breaking changes:
- Remove fastText language detection support: the ``fasttext`` extra is
dropped and ``detect_languages()`` now raises ``ImportError``. Migrate to
the ``langdetect`` extra, which also unblocks ``numpy`` 2.x compatibility
Security fixes:
- Make digit quantifiers possessive in the relative-date regexes to prevent
quadratic backtracking (ReDoS) on long digit runs
New features:
- Add the ``USE_GIVEN_LANGUAGE_ORDER`` setting to try ``languages`` and
``locales`` in the order given rather than by frequency
Fixes:
- Preserve explicit signs on individual components when parsing relative
dates that combine decades with years, such as "-1 decade +2 years"
- Fall back to other provided languages in ``search_dates`` when the
detected language yields no dates
- Parse relative date expressions with spaces between the sign and number,
such as "now - 2 hours" and "now + 1 day"
- Use the parser-relative ``now`` for the current month when filling in
incomplete dates so the month and day stay consistent
- Fix Norwegian Bokmål (``nb``) parsing of relative date expressions such
as "3 måneder siden" and "om 2 måneder"
- Parse abbreviated English month expressions such as "1mon ago" and
"3mons ago"
- Preserve surrounding whitespace when removing skip tokens during
translation to avoid spurious double spaces
Improvements:
- Move project metadata and build configuration to ``pyproject.toml``
- Add alternative Korean date expressions for today, yesterday, tomorrow,
and "N months ago/later"
- Expand Czech date translations with additional inflections, word numbers,
decade and century expressions, and clock phrases like "čtvrt na tři"
- Replace internal ``OrderedDict`` usage with the built-in ``dict``
To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 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.21 pkgsrc/time/py-dateparser/Makefile:1.22
--- pkgsrc/time/py-dateparser/Makefile:1.21 Tue Mar 31 04:38:26 2026
+++ pkgsrc/time/py-dateparser/Makefile Tue Jun 23 09:04:28 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.21 2026/03/31 04:38:26 adam Exp $
+# $NetBSD: Makefile,v 1.22 2026/06/23 09:04:28 adam Exp $
-DISTNAME= dateparser-1.4.0
+DISTNAME= dateparser-1.4.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= time python
MASTER_SITES= ${MASTER_SITE_PYPI:=d/dateparser/}
@@ -22,9 +22,7 @@ TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[
USE_LANGUAGES= # none
-post-install:
- cd ${DESTDIR}${PREFIX}/bin && \
- ${MV} dateparser-download dateparser-download-${PYVERSSUFFIX} || ${TRUE}
+PY_RENAME_BINARIES= dateparser-download
.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/time/py-dateparser/distinfo
diff -u pkgsrc/time/py-dateparser/distinfo:1.21 pkgsrc/time/py-dateparser/distinfo:1.22
--- pkgsrc/time/py-dateparser/distinfo:1.21 Tue Mar 31 04:38:26 2026
+++ pkgsrc/time/py-dateparser/distinfo Tue Jun 23 09:04:28 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.21 2026/03/31 04:38:26 adam Exp $
+$NetBSD: distinfo,v 1.22 2026/06/23 09:04:28 adam Exp $
-BLAKE2s (dateparser-1.4.0.tar.gz) = dfa0ac04c41e80382507c1f9fc56f4df2676f626b65460ec72417ab81436b2e8
-SHA512 (dateparser-1.4.0.tar.gz) = 3debfd769286ce68a2415da5c9a4bd6877961b36fcb67c6a178c706b9c17c6fd9afe437d84b456f8f36e7673ede66be9279bb1ccc5f9ddf2d13236083eb70607
-Size (dateparser-1.4.0.tar.gz) = 321512 bytes
+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
Home |
Main Index |
Thread Index |
Old Index