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: Thu Sep 3 11:16:38 UTC 2026
Modified Files:
pkgsrc/time/py-dateparser: Makefile PLIST distinfo
Log Message:
py-dateparser: updated to 1.4.3
1.4.3 (2026-09-03)
Fixes:
- Make parsing thread-safe: parsing from several threads no longer
raises an intermittent ``KeyError`` from the shared language caches,
and a ``DATE_ORDER`` or ``RELATIVE_BASE`` value meant for one parse no
longer leaks into the settings that other parses read, where it could
make them return a wrong date
- Do not share the language detector and the detected locale between
``search_dates()`` calls, so concurrent searches over text in
different languages no longer return ``None`` or a date read in the
wrong locale
- Resolve the ``BST`` and ``HDT`` timezone abbreviations to the offsets
the tz database gives them, UTC+1 (British Summer Time) and UTC-9
(Hawaii-Aleutian Daylight Time), instead of +11 and -9:30, which no
zone goes by those names today; abbreviations that the tz database
maps to more than one offset, such as ``CST`` and ``IST``, keep their
current offset. Text carrying these abbreviations keeps its wall clock
but moves by 10 hours for ``BST`` and 30 minutes for ``HDT``, which can
put the parsed instant on a different day
- Reject a ``%j`` (day of year) value that the parsed year does not
have, instead of rolling it over into the next year, so "1999366" with
``date_formats=["%Y%j"]`` returns ``None`` rather than 2000-01-01. A
format with no year directive is checked against the year ``strptime``
defaults to, 1900, which is not a leap year, so "366" with
``date_formats=["%j"]`` now returns ``None`` where it used to return
January 1
Cleanups and internal improvements:
- Add CodSpeed benchmarks and a workflow that runs them, so a
performance regression such as the quadratic backtracking fixed in
1.4.1 is reported on the pull request that introduces it
To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 pkgsrc/time/py-dateparser/Makefile \
pkgsrc/time/py-dateparser/distinfo
cvs rdiff -u -r1.10 -r1.11 pkgsrc/time/py-dateparser/PLIST
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.23 pkgsrc/time/py-dateparser/Makefile:1.24
--- pkgsrc/time/py-dateparser/Makefile:1.23 Fri Aug 7 08:30:41 2026
+++ pkgsrc/time/py-dateparser/Makefile Thu Sep 3 11:16:38 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.23 2026/08/07 08:30:41 adam Exp $
+# $NetBSD: Makefile,v 1.24 2026/09/03 11:16:38 adam Exp $
-DISTNAME= dateparser-1.4.2
+DISTNAME= dateparser-1.4.3
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= time python
MASTER_SITES= ${MASTER_SITE_PYPI:=d/dateparser/}
@@ -15,10 +15,10 @@ DEPENDS+= ${PYPKGPREFIX}-dateutil>=2.7.0
DEPENDS+= ${PYPKGPREFIX}-pytz>=2024.2:../../time/py-pytz
DEPENDS+= ${PYPKGPREFIX}-regex>2024.9.11:../../textproc/py-regex
DEPENDS+= ${PYPKGPREFIX}-tzlocal>=0.2:../../time/py-tzlocal
-TEST_DEPENDS+= ${PYPKGPREFIX}-flake8-[0-9]*:../../devel/py-flake8
-TEST_DEPENDS+= ${PYPKGPREFIX}-parameterized-[0-9]*:../../devel/py-parameterized
-TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
-TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
+TEST_DEPENDS+= ${PYPKGPREFIX}-flake8>=0:../../devel/py-flake8
+TEST_DEPENDS+= ${PYPKGPREFIX}-parameterized>=0:../../devel/py-parameterized
+TEST_DEPENDS+= ${PYPKGPREFIX}-test>=0:../../devel/py-test
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov>=0:../../devel/py-test-cov
USE_LANGUAGES= # none
Index: pkgsrc/time/py-dateparser/distinfo
diff -u pkgsrc/time/py-dateparser/distinfo:1.23 pkgsrc/time/py-dateparser/distinfo:1.24
--- pkgsrc/time/py-dateparser/distinfo:1.23 Fri Aug 7 08:30:41 2026
+++ pkgsrc/time/py-dateparser/distinfo Thu Sep 3 11:16:38 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.23 2026/08/07 08:30:41 adam Exp $
+$NetBSD: distinfo,v 1.24 2026/09/03 11:16:38 adam Exp $
-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
+BLAKE2s (dateparser-1.4.3.tar.gz) = 9231b456eb0d400ca20bea45da1dea58ab0a0835e7f9acf96ed6d5883ced6915
+SHA512 (dateparser-1.4.3.tar.gz) = b8063401e90fb14d4a2c2fd3176129b9cc532c15370c0d98877defb356ef7a294b36cf84cdc1ab16db1aaaacb6b9d5b77d309cd550dc7ba01925db8315175d2c
+Size (dateparser-1.4.3.tar.gz) = 362152 bytes
Index: pkgsrc/time/py-dateparser/PLIST
diff -u pkgsrc/time/py-dateparser/PLIST:1.10 pkgsrc/time/py-dateparser/PLIST:1.11
--- pkgsrc/time/py-dateparser/PLIST:1.10 Fri Aug 7 08:30:41 2026
+++ pkgsrc/time/py-dateparser/PLIST Thu Sep 3 11:16:38 2026
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.10 2026/08/07 08:30:41 adam Exp $
+@comment $NetBSD: PLIST,v 1.11 2026/09/03 11:16:38 adam Exp $
bin/dateparser-download-${PYVERSSUFFIX}
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
${PYSITELIB}/${WHEEL_INFODIR}/RECORD
@@ -751,6 +751,9 @@ ${PYSITELIB}/dateparser_scripts/get_cldr
${PYSITELIB}/dateparser_scripts/order_languages.py
${PYSITELIB}/dateparser_scripts/order_languages.pyc
${PYSITELIB}/dateparser_scripts/order_languages.pyo
+${PYSITELIB}/dateparser_scripts/tz_abbreviation_conflicts.py
+${PYSITELIB}/dateparser_scripts/tz_abbreviation_conflicts.pyc
+${PYSITELIB}/dateparser_scripts/tz_abbreviation_conflicts.pyo
${PYSITELIB}/dateparser_scripts/update_supported_languages_and_locales.py
${PYSITELIB}/dateparser_scripts/update_supported_languages_and_locales.pyc
${PYSITELIB}/dateparser_scripts/update_supported_languages_and_locales.pyo
Home |
Main Index |
Thread Index |
Old Index