From 6634d47e674926cc92f18494b55d32e9fb341cf32bfec69a95e1cc003a0c4068 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 7 Apr 2021 06:54:12 +0000 Subject: [PATCH] =?UTF-8?q?-=20Update=20to=201.0.0:=20=20=20*=20Breaking?= =?UTF-8?q?=20changes:=20=20=20=20=20+=20Drop=20support=20for=20Python=202?= =?UTF-8?q?.7=20and=20pypy=20(see=20#727,=20#744,=20#748,=20#749,=20#754,?= =?UTF-8?q?=20#755,=20#758,=20#761,=20#763,=20#764,=20#777=20and=20#783)?= =?UTF-8?q?=20=20=20=20=20+=20Now=20``DateDataParser.get=5Fdate=5Fdata()``?= =?UTF-8?q?=20returns=20a=20``DateData``=20object=20instead=20of=20a=20``d?= =?UTF-8?q?ict``=20(see=20#778).=20=20=20=20=20+=20From=20now=20wrong=20``?= =?UTF-8?q?settings``=20are=20not=20silenced=20and=20raise=20``SettingVali?= =?UTF-8?q?dationError``=20(see=20#797)=20=20=20=20=20+=20Now=20``datepars?= =?UTF-8?q?er.parse()``=20is=20deterministic=20and=20doesn't=20try=20previ?= =?UTF-8?q?ous=20locales.=20Also,=20``DateDataParser.get=5Fdate=5Fdata()``?= =?UTF-8?q?=20doesn't=20try=20the=20previous=20locales=20by=20default=20(s?= =?UTF-8?q?ee=20#781)=20=20=20=20=20+=20Remove=20the=20``'base-formats'``?= =?UTF-8?q?=20parser=20(see=20#721)=20=20=20=20=20+=20Extract=20the=20``'n?= =?UTF-8?q?o-spaces-time'``=20parser=20from=20the=20``'absolute-time'``=20?= =?UTF-8?q?parser=20and=20make=20it=20an=20optional=20parser=20(see=20#786?= =?UTF-8?q?)=20=20=20=20=20+=20Remove=20``numeral=5Ftranslation=5Fdata``?= =?UTF-8?q?=20(see=20#782)=20=20=20=20=20+=20Remove=20the=20undocumented?= =?UTF-8?q?=20``SKIP=5FTOKENS=5FPARSER``=20and=20``FUZZY``=20settings=20(s?= =?UTF-8?q?ee=20#728,=20#794)=20=20=20=20=20+=20Remove=20support=20for=20u?= =?UTF-8?q?sing=20strings=20in=20``date=5Fformats``=20(see=20#726)=20=20?= =?UTF-8?q?=20=20=20+=20The=20undocumented=20``ExactLanguageSearch``=20cla?= =?UTF-8?q?ss=20has=20been=20moved=20to=20the=20private=20scope=20and=20so?= =?UTF-8?q?me=20internal=20methods=20have=20changed=20(see=20#778)=20=20?= =?UTF-8?q?=20=20=20+=20Changes=20in=20``dateparser.utils``:=20``normalize?= =?UTF-8?q?=5Funicode()``=20doesn't=20accept=20``bytes``=20as=20input=20an?= =?UTF-8?q?d=20``convert=5Fto=5Funicode``=20has=20been=20deprecated=20(see?= =?UTF-8?q?=20#749)=20=20=20*=20New=20features:=20=20=20=20=20+=20Add=20Py?= =?UTF-8?q?thon=203.9=20support=20(see=20#732,=20#823)=20=20=20=20=20+=20D?= =?UTF-8?q?etect=20hours=20separated=20with=20a=20period/dot=20(see=20#741?= =?UTF-8?q?)=20=20=20=20=20+=20Add=20support=20for=20"decade"=20(see=20#76?= =?UTF-8?q?2)=20=20=20=20=20+=20Add=20support=20for=20the=20hijri=20calend?= =?UTF-8?q?ar=20in=20Python=20=E2=89=A5=203.6=20(see=20#718)=20=20=20=20?= =?UTF-8?q?=20+=20Fix=20leap=20years=20when=20``PREFER=5FDATES=5FFROM``=20?= =?UTF-8?q?is=20set=20(see=20#738)=20=20=20=20=20+=20Fix=20``STRICT=5FPARS?= =?UTF-8?q?ING``=20setting=20in=20``no-spaces-time``=20parser=20(see=20#71?= =?UTF-8?q?5)=20=20=20=20=20+=20Consider=20``RETURN=5FAS=5FTIME=5FPERIOD``?= =?UTF-8?q?=20setting=20for=20``relative-time``=20parser=20(see=20#807)=20?= =?UTF-8?q?=20=20=20=20+=20Parse=20the=2024hr=20time=20format=20with=20mer?= =?UTF-8?q?idian=20info=20(see=20#634)=20-=20Remove=20extranous=20%dir=20f?= =?UTF-8?q?or=20egg-info.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dateparser?expand=0&rev=10 --- dateparser-0.7.6.tar.gz | 3 --- dateparser-1.0.0.tar.gz | 3 +++ python-dateparser.changes | 27 +++++++++++++++++++++++++++ python-dateparser.spec | 6 +++--- 4 files changed, 33 insertions(+), 6 deletions(-) delete mode 100644 dateparser-0.7.6.tar.gz create mode 100644 dateparser-1.0.0.tar.gz diff --git a/dateparser-0.7.6.tar.gz b/dateparser-0.7.6.tar.gz deleted file mode 100644 index 09bd3e2..0000000 --- a/dateparser-0.7.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e875efd8c57c85c2d02b238239878db59ff1971f5a823457fcc69e493bf6ebfa -size 320578 diff --git a/dateparser-1.0.0.tar.gz b/dateparser-1.0.0.tar.gz new file mode 100644 index 0000000..d40a17d --- /dev/null +++ b/dateparser-1.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:159cc4e01a593706a15cd4e269a0b3345edf3aef8bf9278a57dac8adf5bf1e4a +size 273807 diff --git a/python-dateparser.changes b/python-dateparser.changes index 063d2b7..9432560 100644 --- a/python-dateparser.changes +++ b/python-dateparser.changes @@ -1,3 +1,30 @@ +------------------------------------------------------------------- +Wed Apr 7 06:37:13 UTC 2021 - Steve Kowalik + +- 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. + ------------------------------------------------------------------- Thu Jul 30 01:41:23 UTC 2020 - Steve Kowalik diff --git a/python-dateparser.spec b/python-dateparser.spec index 569ad82..b1d9e43 100644 --- a/python-dateparser.spec +++ b/python-dateparser.spec @@ -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