15
0

- Update to 1.0.0:

* Breaking changes:
    + Drop support for Python 2.7 and pypy (see #727, #744, #748, #749, #754, #755, #758, #761, #763, #764, #777 and #783)
    + Now ``DateDataParser.get_date_data()`` returns a ``DateData`` object instead of a ``dict`` (see #778).
    + From now wrong ``settings`` are not silenced and raise ``SettingValidationError`` (see #797)
    + Now ``dateparser.parse()`` is deterministic and doesn't try previous locales. Also, ``DateDataParser.get_date_data()`` doesn't try the previous locales by default (see #781)
    + Remove the ``'base-formats'`` parser (see #721)
    + Extract the ``'no-spaces-time'`` parser from the ``'absolute-time'`` parser and make it an optional parser (see #786)
    + Remove ``numeral_translation_data`` (see #782)
    + Remove the undocumented ``SKIP_TOKENS_PARSER`` and ``FUZZY`` settings (see #728, #794)
    + Remove support for using strings in ``date_formats`` (see #726)
    + The undocumented ``ExactLanguageSearch`` class has been moved to the private scope and some internal methods have changed (see #778)
    + Changes in ``dateparser.utils``: ``normalize_unicode()`` doesn't accept ``bytes`` as input and ``convert_to_unicode`` has been deprecated (see #749)
  * New features:
    + Add Python 3.9 support (see #732, #823)
    + Detect hours separated with a period/dot (see #741)
    + Add support for "decade" (see #762)
    + Add support for the hijri calendar in Python ≥ 3.6 (see #718)
    + Fix leap years when ``PREFER_DATES_FROM`` is set (see #738)
    + Fix ``STRICT_PARSING`` setting in ``no-spaces-time`` parser (see #715)
    + Consider ``RETURN_AS_TIME_PERIOD`` setting for ``relative-time`` parser (see #807)
    + Parse the 24hr time format with meridian info (see #634)
- Remove extranous %dir for egg-info.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dateparser?expand=0&rev=10
This commit is contained in:
2021-04-07 06:54:12 +00:00
committed by Git OBS Bridge
parent 843fac3180
commit 6634d47e67
4 changed files with 33 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-dateparser
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,8 +17,9 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-dateparser
Version: 0.7.6
Version: 1.0.0
Release: 0
Summary: Date parsing library designed to parse dates from HTML pages
License: BSD-3-Clause
@@ -82,7 +83,6 @@ rm tests/test_dateparser_data_integrity.py
%{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
%changelog