15
0

Accepting request 823471 from devel:languages:python

- Update to 0.7.6:
  * Rename ``scripts`` to ``dateparser_scripts`` to avoid name collisions
    with modules from other packages or projects
  * Add Python 3.8 support
  * Implement a ``REQUIRE_PARTS`` setting
  * Add support for subscript and superscript numbers
  * Extended French support
  * Extended German support
- Switch from nose to pytest.

OBS-URL: https://build.opensuse.org/request/show/823471
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dateparser?expand=0&rev=4
This commit is contained in:
2020-08-06 15:31:06 +00:00
committed by Git OBS Bridge
4 changed files with 24 additions and 7 deletions

View File

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

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

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

View File

@@ -1,3 +1,16 @@
-------------------------------------------------------------------
Thu Jul 30 01:41:23 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 0.7.6:
* Rename ``scripts`` to ``dateparser_scripts`` to avoid name collisions
with modules from other packages or projects
* Add Python 3.8 support
* Implement a ``REQUIRE_PARTS`` setting
* Add support for subscript and superscript numbers
* Extended French support
* Extended German support
- Switch from nose to pytest.
-------------------------------------------------------------------
Thu Apr 2 09:44:00 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>

View File

@@ -18,11 +18,10 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-dateparser
Version: 0.7.4
Version: 0.7.6
Release: 0
Summary: Date parsing library designed to parse dates from HTML pages
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/scrapinghub/dateparser
Source: https://files.pythonhosted.org/packages/source/d/dateparser/dateparser-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
@@ -37,12 +36,13 @@ Recommends: python-jdatetime
Recommends: python-ruamel.yaml
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module GitPython}
BuildRequires: %{python_module convertdate}
BuildRequires: %{python_module coverage}
BuildRequires: %{python_module jdatetime}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module parameterized}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-dateutil}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module regex}
@@ -60,6 +60,8 @@ Date parsing library designed to parse dates from HTML pages
# not py3 compatible and weird license of the imported module
rm tests/test_hijri.py
rm dateparser/calendars/hijri*
# Requires files not shipped in PyPi tarball
rm tests/test_dateparser_data_integrity.py
%build
%python_build
@@ -69,7 +71,7 @@ rm dateparser/calendars/hijri*
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_expand nosetests-%{$python_bin_suffix}
%pytest
%files %{python_files}
%doc AUTHORS.rst README.rst
@@ -78,6 +80,8 @@ rm dateparser/calendars/hijri*
%{python_sitelib}/dateparser/*
%dir %{python_sitelib}/dateparser_data
%{python_sitelib}/dateparser_data/*
%dir %{python_sitelib}/dateparser_scripts
%{python_sitelib}/dateparser_scripts/*
%dir %{python_sitelib}/dateparser-%{version}-py*.egg-info
%{python_sitelib}/dateparser-%{version}-py*.egg-info