[packages/python3-dateparser] - updated to 1.5.1; drop tests-year patch (upstream) - release 1

adamg adamg at pld-linux.org
Sat Nov 21 22:50:15 CET 2026


commit 96267fbbed8bf56f4c8f0f2fea246e6f6ed90fd4
Author: Adam Gołębiowski <adamg at pld-linux.org>
Date:   Sat Nov 21 22:49:22 2026 +0100

    - updated to 1.5.1; drop tests-year patch (upstream)
    - release 1

 dateparser-tests-year.patch | 24 ------------------------
 python3-dateparser.spec     |  6 ++----
 2 files changed, 2 insertions(+), 28 deletions(-)
---
diff --git a/python3-dateparser.spec b/python3-dateparser.spec
index dfa344d..c8af0e1 100644
--- a/python3-dateparser.spec
+++ b/python3-dateparser.spec
@@ -6,14 +6,13 @@
 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.2.2
+Version:	1.5.1
 Release:	1
 License:	BSD
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/dateparser/
 Source0:	https://files.pythonhosted.org/packages/source/d/dateparser/dateparser-%{version}.tar.gz
-# Source0-md5:	badfd1500735e3d8e32386f7079deca6
-Patch0:		dateparser-tests-year.patch
+# Source0-md5:	7e5725f7ed1bc9bd4e9d5d7819be719a
 URL:		https://pypi.org/project/dateparser/
 BuildRequires:	python3-modules >= 1:3.8
 BuildRequires:	python3-setuptools
@@ -65,7 +64,6 @@ Dokumentacja API modułu Pythona dateparser.
 
 %prep
 %setup -q -n dateparser-%{version}
-%patch -P0 -p1
 
 # requires CLDR data downloaded
 %{__rm} tests/test_dateparser_data_integrity.py
diff --git a/dateparser-tests-year.patch b/dateparser-tests-year.patch
deleted file mode 100644
index fc2f846..0000000
--- a/dateparser-tests-year.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-From 6b23348b9367d43bebc9a40b00dda3363eb2acd5 Mon Sep 17 00:00:00 2001
-From: MeggyCal <MeggyCal at users.noreply.github.com>
-Date: Thu, 8 Jan 2026 00:25:02 +0100
-Subject: [PATCH] use current year in test_search_dates_with_prepositions
- (#1294)
-
----
- tests/test_search.py | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/tests/test_search.py b/tests/test_search.py
-index fef747079..7c3b3322e 100644
---- a/tests/test_search.py
-+++ b/tests/test_search.py
-@@ -1100,7 +1100,7 @@ def test_search_dates_with_prepositions(self):
-             languages=["ru"],
-         )
-         expected = [
--            ("12 января", datetime.datetime(2025, 1, 12, 0, 0), "ru"),
--            ("30 апреля", datetime.datetime(2025, 4, 30, 0, 0), "ru"),
-+            ("12 января", datetime.datetime(today.year, 1, 12, 0, 0), "ru"),
-+            ("30 апреля", datetime.datetime(today.year, 4, 30, 0, 0), "ru"),
-         ]
-         assert result == expected
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-dateparser.git/commitdiff/96267fbbed8bf56f4c8f0f2fea246e6f6ed90fd4



More information about the pld-cvs-commit mailing list