From de91c33525932c432f6543959b948caa6234300f3d2314084aa23e84db5fc249 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 7 Dec 2023 20:46:55 +0000 Subject: [PATCH] =?UTF-8?q?-=20update=20to=201.2.0:=20=20=20*=20New=20``PR?= =?UTF-8?q?EFER=5FMONTH=5FOF=5FYEAR``=20setting=20(#1146)=20=20=20*=20Abso?= =?UTF-8?q?lute=20years=20in=20Russian=20are=20no=20longer=20being=20treat?= =?UTF-8?q?ed=20as=20a=20=20=20=20=20number=20of=20years=20in=20the=20past?= =?UTF-8?q?=20(#1129)=20=20=20*=20Cleanups=20and=20internal=20improvements?= =?UTF-8?q?:=20=20=20*=20Removed=20the=20use=20of=20``datetime.utcnow``,?= =?UTF-8?q?=20deprecated=20on=20Python=20=20=20=20=203.12=20(#1179)=20=20?= =?UTF-8?q?=20*=20Applied=20Black=20formatting=20to=20the=20code=20base=20?= =?UTF-8?q?(#1158)=20=20=20*=20Initial=20integration=20with=20OSSFuzz=20(#?= =?UTF-8?q?1198)=20=20=20*=20Extended=20test=20cases=20(#1191)=20-=20Updat?= =?UTF-8?q?e=20to=201.1.3=20-=20Update=20to=201.1.2=20=20=20*=20Implement?= =?UTF-8?q?=20a=20PARSERS=20setting=20=20=20*=20Add=20support=20for=20`PRE?= =?UTF-8?q?FER=5FDATES=5FFROM`=20in=20relative/freshness=20parser=20=20=20?= =?UTF-8?q?*=20Add=20support=20for=20`PREFER=5FDAY=5FOF=5FMONTH`=20in=20ba?= =?UTF-8?q?se-formats=20parser=20=20=20*=20Added=20UTC=20-00:00=20as=20a?= =?UTF-8?q?=20valid=20offset=20=20=20*=20Fix=20support=20for=20=E2=80=9Con?= =?UTF-8?q?e=E2=80=9D=20=20=20*=20Fix=20tokenizer=20for=20non=20recognized?= =?UTF-8?q?=20characters=20=20=20*=20Prevent=20installing=20regex=202019.0?= =?UTF-8?q?2.19?= 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=38 --- dateparser-1.1.8.tar.gz | 3 --- dateparser-1.2.0.tar.gz | 3 +++ mark-network-tests.patch | 25 +++++++++++-------------- python-dateparser.changes | 32 +++++++++++++++++++++++--------- python-dateparser.spec | 3 +-- 5 files changed, 38 insertions(+), 28 deletions(-) delete mode 100644 dateparser-1.1.8.tar.gz create mode 100644 dateparser-1.2.0.tar.gz diff --git a/dateparser-1.1.8.tar.gz b/dateparser-1.1.8.tar.gz deleted file mode 100644 index ff9c2d2..0000000 --- a/dateparser-1.1.8.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:86b8b7517efcc558f085a142cdb7620f0921543fcabdb538c8a4c4001d8178e3 -size 296595 diff --git a/dateparser-1.2.0.tar.gz b/dateparser-1.2.0.tar.gz new file mode 100644 index 0000000..e3e803d --- /dev/null +++ b/dateparser-1.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7975b43a4222283e0ae15be7b4999d08c9a70e2d378ac87385b1ccf2cffbbb30 +size 307260 diff --git a/mark-network-tests.patch b/mark-network-tests.patch index c1d0516..65726bb 100644 --- a/mark-network-tests.patch +++ b/mark-network-tests.patch @@ -2,19 +2,16 @@ tests/test_language_detect.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) ---- a/tests/test_language_detect.py -+++ b/tests/test_language_detect.py -@@ -1,6 +1,8 @@ +Index: dateparser-1.2.0/tests/test_language_detect.py +=================================================================== +--- dateparser-1.2.0.orig/tests/test_language_detect.py ++++ dateparser-1.2.0/tests/test_language_detect.py +@@ -1,3 +1,4 @@ +import os -+import unittest -+ + import unittest from datetime import datetime from unittest.mock import Mock --import unittest - - from parameterized import parameterized, param - -@@ -13,6 +15,7 @@ from dateparser.search import search_dat +@@ -17,6 +18,7 @@ from dateparser.search import search_dat detect_languages = Mock() detect_languages.return_value = ["en"] @@ -22,10 +19,10 @@ class CustomLangDetectParserTest(unittest.TestCase): def check_is_returned_list(self): -@@ -22,6 +25,7 @@ class CustomLangDetectParserTest(unittes - param(dt_string="14 June 2020", confidence_threshold=0.0), - param(dt_string="26 July 2021", confidence_threshold=0.0) - ]) +@@ -28,6 +30,7 @@ class CustomLangDetectParserTest(unittes + param(dt_string="26 July 2021", confidence_threshold=0.0), + ] + ) + @unittest.skipIf(NO_NETWORK, "Test requires network access") def test_custom_language_detect_fast_text(self, dt_string, confidence_threshold): self.result = fast_text_detect_languages(dt_string, confidence_threshold) diff --git a/python-dateparser.changes b/python-dateparser.changes index cf4ff78..3853475 100644 --- a/python-dateparser.changes +++ b/python-dateparser.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Thu Dec 7 20:46:37 UTC 2023 - Dirk Müller + +- update to 1.2.0: + * New ``PREFER_MONTH_OF_YEAR`` setting (#1146) + * Absolute years in Russian are no longer being treated as a + number of years in the past (#1129) + * Cleanups and internal improvements: + * Removed the use of ``datetime.utcnow``, deprecated on Python + 3.12 (#1179) + * Applied Black formatting to the code base (#1158) + * Initial integration with OSSFuzz (#1198) + * Extended test cases (#1191) + ------------------------------------------------------------------- Sat Oct 14 00:54:16 UTC 2023 - Matej Cepl @@ -63,7 +77,7 @@ Mon Jan 2 18:57:33 UTC 2023 - Dirk Müller ------------------------------------------------------------------- Mon Nov 7 21:15:24 UTC 2022 - Yogalakshmi Arunachalam -- Update to 1.1.3 +- Update to 1.1.3 New features: * Add support for fractional units (#876) Improvements: @@ -78,7 +92,7 @@ Mon Nov 7 21:15:24 UTC 2022 - Yogalakshmi Arunachalam ------------------------------------------------------------------- Thu Oct 27 22:51:58 UTC 2022 - Yogalakshmi Arunachalam -- Update to 1.1.2 +- Update to 1.1.2 * Added support for negative timestamp (#1060) * Fixed PytzUsageWarning for Python versions >= 3.6 (#1062) * Added support for dates with dots and spaces (#1028) @@ -188,13 +202,13 @@ Thu Apr 2 09:44:00 UTC 2020 - Marketa Calabkova - update to version 0.7.4 * Fixed Python 2.7 tests * Extended Norwegian support - * Implement a PARSERS setting - * Add support for `PREFER_DATES_FROM` in relative/freshness parser - * Add support for `PREFER_DAY_OF_MONTH` in base-formats parser - * Added UTC -00:00 as a valid offset - * Fix support for “one” - * Fix tokenizer for non recognized characters - * Prevent installing regex 2019.02.19 + * Implement a PARSERS setting + * Add support for `PREFER_DATES_FROM` in relative/freshness parser + * Add support for `PREFER_DAY_OF_MONTH` in base-formats parser + * Added UTC -00:00 as a valid offset + * Fix support for “one” + * Fix tokenizer for non recognized characters + * Prevent installing regex 2019.02.19 * Added Hungarian language. * Added setting, `STRICT_PARSING` to ignore incomplete dates. * More simplifications for Russian and Ukrainian languages. diff --git a/python-dateparser.spec b/python-dateparser.spec index 9241c58..f3dafbc 100644 --- a/python-dateparser.spec +++ b/python-dateparser.spec @@ -16,10 +16,9 @@ # -%define skip_python2 1 %{?sle15_python_module_pythons} Name: python-dateparser -Version: 1.1.8 +Version: 1.2.0 Release: 0 Summary: Date parsing library designed to parse dates from HTML pages License: BSD-3-Clause