17
0

Accepting request 1119297 from devel:languages:python

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1119297
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dateparser?expand=0&rev=18
This commit is contained in:
2023-10-23 21:40:09 +00:00
committed by Git OBS Bridge
2 changed files with 11 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Oct 14 00:54:16 UTC 2023 - Matej Cepl <mcepl@cepl.eu>
- Clean up the SPEC file
-------------------------------------------------------------------
Thu Sep 7 07:09:28 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -16,7 +16,6 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%{?sle15_python_module_pythons}
Name: python-dateparser
@@ -29,13 +28,16 @@ Source: https://files.pythonhosted.org/packages/source/d/dateparser/date
# PATCH-FIX-UPSTREAM mark-network-tests.patch gh#scrapinghub/dateparser#1059 mcepl@suse.com
# mark test requiring network access
Patch1: mark-network-tests.patch
BuildRequires: %{python_module setuptools}
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
Recommends: python-fasttext
Recommends: python-langdetect
@@ -53,8 +55,6 @@ BuildRequires: %{python_module regex}
BuildRequires: %{python_module ruamel.yaml}
BuildRequires: %{python_module tzlocal}
# /SECTION
Requires(post): update-alternatives
Requires(postun):update-alternatives
%python_subpackages
%description
@@ -71,10 +71,10 @@ sed -i '1{/\/usr\/bin\/env python/d;}' \
dateparser_scripts/update_supported_languages_and_locales.py
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/dateparser-download
%python_expand %fdupes %{buildroot}%{$python_sitelib}