From adaf6dfc522b6c84e91e37f082667ac2d09c8f8ebe4408d37dcd307ad80ec33f Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 2 Jan 2023 19:02:45 +0000 Subject: [PATCH] =?UTF-8?q?-=20update=20to=201.1.5:=20=20=20*=20Parse=20sh?= =?UTF-8?q?ort=20versions=20of=20day,=20month,=20and=20year=20=20=20*=20Ad?= =?UTF-8?q?d=20a=20test=20for=20=E2=80=9Cin=201d=E2=80=9D=20=20=20*=20Upda?= =?UTF-8?q?te=20languages=5Finfo=20=20=20*=20Add=20a=20workaround=20for=20?= =?UTF-8?q?zipimporter=20not=20having=20exec=5Fmodule=20before=20Python=20?= =?UTF-8?q?=20=20=20=203.10=20=20=20*=20Stabilize=20tests=20at=20midnight?= =?UTF-8?q?=20=20=20*=20Add=20a=20test=20case=20for=20French=20=20=20*=20I?= =?UTF-8?q?mproved=20support=20for=20languages=20such=20as=20Slovak,=20Ind?= =?UTF-8?q?onesian,=20Hindi,=20German=20=20=20=20=20and=20Japanese=20=20?= =?UTF-8?q?=20*=20Recursively=20create=20a=20model=20home=20=20=20*=20Repl?= =?UTF-8?q?ace=20regex=20sub=20with=20simple=20string=20replace=20=20=20*?= =?UTF-8?q?=20Add=20Python=203.10,=203.11=20support=20=20=20*=20Drop=20sup?= =?UTF-8?q?port=20for=20Python=203.5,=203.6=20versions=20-=20drop=20incomp?= =?UTF-8?q?atible-regex-pattern.patch=20(upstream)?= 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=24 --- dateparser-1.1.3.tar.gz | 3 --- dateparser-1.1.5.tar.gz | 3 +++ incompatible-regex-pattern.patch | 15 --------------- python-dateparser.changes | 19 +++++++++++++++++++ python-dateparser.spec | 7 ++----- 5 files changed, 24 insertions(+), 23 deletions(-) delete mode 100644 dateparser-1.1.3.tar.gz create mode 100644 dateparser-1.1.5.tar.gz delete mode 100644 incompatible-regex-pattern.patch diff --git a/dateparser-1.1.3.tar.gz b/dateparser-1.1.3.tar.gz deleted file mode 100644 index f9ad2eb..0000000 --- a/dateparser-1.1.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ae7a7de30f26983d09fff802c1f9d35d54e1c11d7ab52ae904a1f3fc037ecba5 -size 293781 diff --git a/dateparser-1.1.5.tar.gz b/dateparser-1.1.5.tar.gz new file mode 100644 index 0000000..6b1d18b --- /dev/null +++ b/dateparser-1.1.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:107f3cc87a60770e10d111349adc1504224a6b60753a47a64b0ec842ab85b5a9 +size 295364 diff --git a/incompatible-regex-pattern.patch b/incompatible-regex-pattern.patch deleted file mode 100644 index 3932c80..0000000 --- a/incompatible-regex-pattern.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- - dateparser/languages/locale.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - ---- a/dateparser/languages/locale.py -+++ b/dateparser/languages/locale.py -@@ -169,7 +169,7 @@ class Locale: - if normalize: - value = list(map(normalize_unicode, value)) - pattern = '|'.join(sorted(value, key=len, reverse=True)) -- pattern = DIGIT_GROUP_PATTERN.sub(r'?P\d+', pattern) -+ pattern = pattern.replace(r'\d+', r'?P\d+') - pattern = re.compile(r'^(?:{})$'.format(pattern), re.UNICODE | re.IGNORECASE) - relative_dictionary[pattern] = key - return relative_dictionary diff --git a/python-dateparser.changes b/python-dateparser.changes index 630e837..ad2ccb4 100644 --- a/python-dateparser.changes +++ b/python-dateparser.changes @@ -1,3 +1,22 @@ +------------------------------------------------------------------- +Mon Jan 2 18:57:33 UTC 2023 - Dirk Müller + +- update to 1.1.5: + * Parse short versions of day, month, and year + * Add a test for “in 1d” + * Update languages_info + * Add a workaround for zipimporter not having exec_module before Python + 3.10 + * Stabilize tests at midnight + * Add a test case for French + * Improved support for languages such as Slovak, Indonesian, Hindi, German + and Japanese + * Recursively create a model home + * Replace regex sub with simple string replace + * Add Python 3.10, 3.11 support + * Drop support for Python 3.5, 3.6 versions +- drop incompatible-regex-pattern.patch (upstream) + ------------------------------------------------------------------- Mon Nov 7 21:15:24 UTC 2022 - Yogalakshmi Arunachalam diff --git a/python-dateparser.spec b/python-dateparser.spec index d0bd75d..fe20bb8 100644 --- a/python-dateparser.spec +++ b/python-dateparser.spec @@ -1,7 +1,7 @@ # # spec file for package python-dateparser # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,15 +19,12 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-dateparser -Version: 1.1.3 +Version: 1.1.5 Release: 0 Summary: Date parsing library designed to parse dates from HTML pages License: BSD-3-Clause URL: https://github.com/scrapinghub/dateparser Source: https://files.pythonhosted.org/packages/source/d/dateparser/dateparser-%{version}.tar.gz -# PATCH-FIX-UPSTREAM incompatible-regex-pattern.patch gh#scrapinghub/dateparser#1052 mcepl@suse.com -# use pattern compatible with the modern version of regex -Patch0: incompatible-regex-pattern.patch # PATCH-FIX-UPSTREAM mark-network-tests.patch gh#scrapinghub/dateparser#1059 mcepl@suse.com # mark test requiring network access Patch1: mark-network-tests.patch