17
0

6 Commits

Author SHA256 Message Date
6f54fa3510 Accepting request 1304839 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1304839
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dateparser?expand=0&rev=22
2025-09-17 15:44:29 +00:00
0260a73517 - Update to 1.2.2
* Fix PytzUsageWarning
  * Avoid repeated loop over timezones
  * Migrate from hijri-converter to hijridate
  * Set minimum versions for dependencies
  * Limited numpy to 1.x when installing dateparser[fasttext]
  * Handle the Russian preposition “с”
  * Fix weekday search
  * Add Python 3.14 support
  * Cache timezone offsets to improve import time

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dateparser?expand=0&rev=45
2025-09-15 14:12:26 +00:00
476b002cf1 Accepting request 1299414 from devel:languages:python
- Convert to libalternatives on SLE-16-based and newer systems only

OBS-URL: https://build.opensuse.org/request/show/1299414
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dateparser?expand=0&rev=21
2025-08-17 12:50:01 +00:00
b426e45198 - Convert to libalternatives on SLE-16-based and newer systems only
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dateparser?expand=0&rev=43
2025-08-14 12:47:52 +00:00
8d216c8180 Accepting request 1291193 from devel:languages:python
- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1291193
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dateparser?expand=0&rev=20
2025-07-09 15:26:00 +00:00
f5a5ec0c34 - Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dateparser?expand=0&rev=41
2025-07-08 08:32:45 +00:00
5 changed files with 62 additions and 24 deletions

Binary file not shown.

3
dateparser-1.2.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:986316f17cb8cdc23ea8ce563027c5ef12fc725b6fb1d137c14ca08777c5ecf7
size 329840

View File

@@ -2,16 +2,19 @@
tests/test_language_detect.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
Index: dateparser-1.2.0/tests/test_language_detect.py
Index: dateparser-1.2.2/tests/test_language_detect.py
===================================================================
--- dateparser-1.2.0.orig/tests/test_language_detect.py
+++ dateparser-1.2.0/tests/test_language_detect.py
@@ -1,3 +1,4 @@
--- dateparser-1.2.2.orig/tests/test_language_detect.py
+++ dateparser-1.2.2/tests/test_language_detect.py
@@ -2,6 +2,7 @@ import pytest
pytest.importorskip("fasttext")
+import os
import unittest
from datetime import datetime
from unittest.mock import Mock
@@ -17,6 +18,7 @@ from dateparser.search import search_dat
@@ -21,6 +22,7 @@ from dateparser.search import search_dat
detect_languages = Mock()
detect_languages.return_value = ["en"]
@@ -19,7 +22,7 @@ Index: dateparser-1.2.0/tests/test_language_detect.py
class CustomLangDetectParserTest(unittest.TestCase):
def check_is_returned_list(self):
@@ -28,6 +30,7 @@ class CustomLangDetectParserTest(unittes
@@ -32,6 +34,7 @@ class CustomLangDetectParserTest(unittes
param(dt_string="26 July 2021", confidence_threshold=0.0),
]
)

View File

@@ -1,3 +1,27 @@
-------------------------------------------------------------------
Mon Sep 15 11:38:15 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Update to 1.2.2
* Fix PytzUsageWarning
* Avoid repeated loop over timezones
* Migrate from hijri-converter to hijridate
* Set minimum versions for dependencies
* Limited numpy to 1.x when installing dateparser[fasttext]
* Handle the Russian preposition “с”
* Fix weekday search
* Add Python 3.14 support
* Cache timezone offsets to improve import time
-------------------------------------------------------------------
Thu Aug 14 12:44:20 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives on SLE-16-based and newer systems only
-------------------------------------------------------------------
Tue Jul 8 08:32:18 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Thu Dec 7 20:46:37 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-dateparser
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,9 +16,14 @@
#
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Name: python-dateparser
Version: 1.2.0
Version: 1.2.2
Release: 0
Summary: Date parsing library designed to parse dates from HTML pages
License: BSD-3-Clause
@@ -31,28 +36,33 @@ BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-python-dateutil
Requires: python-pytz
Requires: python-regex
Requires: python-tzlocal
Requires(post): update-alternatives
Requires(postun):update-alternatives
Recommends: convertdate
Requires: python-python-dateutil >= 2.7.0
Requires: python-pytz >= 2024.2
Requires: python-regex >= 2024.9.11
Requires: python-tzlocal >= 0.2
Recommends: python-convertdate
Recommends: python-fasttext
Recommends: python-langdetect
Recommends: python-ruamel.yaml
BuildArch: noarch
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
%endif
# SECTION test requirements
BuildRequires: %{python_module convertdate}
BuildRequires: %{python_module fasttext}
BuildRequires: %{python_module langdetect}
BuildRequires: %{python_module parameterized}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-dateutil}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module regex}
BuildRequires: %{python_module python-dateutil >= 2.7.0}
BuildRequires: %{python_module pytz >= 2024.2}
BuildRequires: %{python_module regex >= 2024.9.11}
BuildRequires: %{python_module ruamel.yaml}
BuildRequires: %{python_module tzlocal}
BuildRequires: %{python_module tzlocal >= 0.2}
# /SECTION
%python_subpackages
@@ -81,12 +91,13 @@ sed -i '1{/\/usr\/bin\/env python/d;}' \
export NO_NETWORK=1
# Requires files not shipped in PyPI sdist
ignoretestfiles="--ignore tests/test_dateparser_data_integrity.py"
# https://github.com/scrapinghub/dateparser/issues/1053
ignoretestfiles="$ignoretestfiles --ignore tests/test_search.py"
# overflow on 32bit
donttest="(not test_timezone_offset_calculation)"
%pytest -k "$donttest" $ignoretestfiles
%pre
%python_libalternatives_reset_alternative dateparser-download
%post
%python_install_alternative dateparser-download