17
0

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
This commit is contained in:
2025-07-09 15:26:00 +00:00
committed by Git OBS Bridge
2 changed files with 11 additions and 8 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
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
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,6 +16,7 @@
#
%bcond_without libalternatives
%{?sle15_python_module_pythons}
Name: python-dateparser
Version: 1.2.0
@@ -29,14 +30,14 @@ Source: https://files.pythonhosted.org/packages/source/d/dateparser/date
Patch1: mark-network-tests.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: alts
Requires: python-python-dateutil
Requires: python-pytz
Requires: python-regex
Requires: python-tzlocal
Requires(post): update-alternatives
Requires(postun):update-alternatives
Recommends: convertdate
Recommends: python-fasttext
Recommends: python-langdetect
@@ -87,11 +88,8 @@ ignoretestfiles="$ignoretestfiles --ignore tests/test_search.py"
donttest="(not test_timezone_offset_calculation)"
%pytest -k "$donttest" $ignoretestfiles
%post
%python_install_alternative dateparser-download
%postun
%python_uninstall_alternative dateparser-download
%pre
%python_libalternatives_reset_alternative dateparser-download
%files %{python_files}
%doc AUTHORS.rst README.rst