[packages/python3-dateparser] - relax CPU time limits of linear-time tests (too tight on slower builders) - release 3
adamg
adamg at pld-linux.org
Wed Nov 25 02:44:22 CET 2026
commit 31390874e0e8cd7eccad19c3607f4061d84614b4
Author: Adam Gołębiowski <adamg at pld-linux.org>
Date: Wed Nov 25 02:44:17 2026 +0100
- relax CPU time limits of linear-time tests (too tight on slower builders)
- release 3
python3-dateparser.spec | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/python3-dateparser.spec b/python3-dateparser.spec
index a8b4d42..e95af4f 100644
--- a/python3-dateparser.spec
+++ b/python3-dateparser.spec
@@ -7,7 +7,7 @@ Summary: Date parsing library designed to parse dates from HTML pages
Summary(pl.UTF-8): Biblioteka analizy dat przeznaczona do odczytu dat ze stron HTML
Name: python3-dateparser
Version: 1.5.1
-Release: 2
+Release: 3
License: BSD
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/dateparser/
@@ -34,6 +34,7 @@ BuildRequires: python3-tzlocal >= 0.2
%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
+BuildRequires: sed >= 4.0
%if %{with doc}
BuildRequires: python3-sphinx_rtd_theme
BuildRequires: sphinx-pdg-3
@@ -68,6 +69,9 @@ Dokumentacja API modułu Pythona dateparser.
# requires CLDR data downloaded
%{__rm} tests/test_dateparser_data_integrity.py
+# linear-time (ReDoS) checks: CPU time limits (1-2.5 s) too tight for slower builders
+%{__sed} -i -e '/"""Fail unless every statement takes less than/a\\ limit *= 5; deadline *= 3' tests/linear_time.py
+
%build
%py3_build
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-dateparser.git/commitdiff/31390874e0e8cd7eccad19c3607f4061d84614b4
More information about the pld-cvs-commit
mailing list