Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-dateparser for 
openSUSE:Factory checked in at 2023-02-17 16:43:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-dateparser (Old)
 and      /work/SRC/openSUSE:Factory/.python-dateparser.new.22824 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-dateparser"

Fri Feb 17 16:43:44 2023 rev:14 rq:1066042 version:1.1.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-dateparser/python-dateparser.changes      
2023-01-14 20:31:40.061195123 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-dateparser.new.22824/python-dateparser.changes
   2023-02-17 16:43:46.518447117 +0100
@@ -1,0 +2,8 @@
+Wed Feb 15 19:43:54 UTC 2023 - Dirk Müller <[email protected]>
+
+- update to 1.1.7:
+  * Add an “ago” synonym for Arabic
+  * Improved date parsing for Czech
+  * Improved date parsing for Indonesian
+
+-------------------------------------------------------------------

Old:
----
  dateparser-1.1.6.tar.gz

New:
----
  dateparser-1.1.7.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-dateparser.spec ++++++
--- /var/tmp/diff_new_pack.mCtKT1/_old  2023-02-17 16:43:47.110450451 +0100
+++ /var/tmp/diff_new_pack.mCtKT1/_new  2023-02-17 16:43:47.114450474 +0100
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 Name:           python-dateparser
-Version:        1.1.6
+Version:        1.1.7
 Release:        0
 Summary:        Date parsing library designed to parse dates from HTML pages
 License:        BSD-3-Clause

++++++ dateparser-1.1.6.tar.gz -> dateparser-1.1.7.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dateparser-1.1.6/HISTORY.rst 
new/dateparser-1.1.7/HISTORY.rst
--- old/dateparser-1.1.6/HISTORY.rst    2023-01-12 10:09:13.000000000 +0100
+++ new/dateparser-1.1.7/HISTORY.rst    2023-02-02 14:04:30.000000000 +0100
@@ -3,7 +3,17 @@
 History
 =======
 
-1.1.6 (2022-01-12)
+1.1.7 (2023-02-02)
+------------------
+
+Improvements:
+
+- Add an “ago” synonym for Arabic (#1128)
+- Improved date parsing for Czech (#1131)
+- Improved date parsing for Indonesian (#1134)
+
+
+1.1.6 (2023-01-12)
 ------------------
 
 Improvements:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dateparser-1.1.6/PKG-INFO 
new/dateparser-1.1.7/PKG-INFO
--- old/dateparser-1.1.6/PKG-INFO       2023-01-12 10:09:22.966399000 +0100
+++ new/dateparser-1.1.7/PKG-INFO       2023-02-02 14:04:45.335078000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: dateparser
-Version: 1.1.6
+Version: 1.1.7
 Summary: Date parsing library designed to parse dates from HTML pages
 Home-page: https://github.com/scrapinghub/dateparser
 Author: Scrapinghub
@@ -287,7 +287,17 @@
 History
 =======
 
-1.1.6 (2022-01-12)
+1.1.7 (2023-02-02)
+------------------
+
+Improvements:
+
+- Add an “ago” synonym for Arabic (#1128)
+- Improved date parsing for Czech (#1131)
+- Improved date parsing for Indonesian (#1134)
+
+
+1.1.6 (2023-01-12)
 ------------------
 
 Improvements:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dateparser-1.1.6/dateparser/__init__.py 
new/dateparser-1.1.7/dateparser/__init__.py
--- old/dateparser-1.1.6/dateparser/__init__.py 2023-01-12 10:09:13.000000000 
+0100
+++ new/dateparser-1.1.7/dateparser/__init__.py 2023-02-02 14:04:30.000000000 
+0100
@@ -1,4 +1,4 @@
-__version__ = '1.1.6'
+__version__ = '1.1.7'
 
 from .date import DateDataParser
 from .conf import apply_settings
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/dateparser-1.1.6/dateparser/data/date_translation_data/ar.py 
new/dateparser-1.1.7/dateparser/data/date_translation_data/ar.py
--- old/dateparser-1.1.6/dateparser/data/date_translation_data/ar.py    
2023-01-12 10:09:13.000000000 +0100
+++ new/dateparser-1.1.7/dateparser/data/date_translation_data/ar.py    
2023-02-02 14:04:30.000000000 +0100
@@ -565,7 +565,8 @@
         ","
     ],
     "ago": [
-        "منذ"
+        "منذ",
+        "مضت"
     ],
     "in": [
         "خلال"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/dateparser-1.1.6/dateparser/data/date_translation_data/cs.py 
new/dateparser-1.1.7/dateparser/data/date_translation_data/cs.py
--- old/dateparser-1.1.6/dateparser/data/date_translation_data/cs.py    
2023-01-12 10:09:13.000000000 +0100
+++ new/dateparser-1.1.7/dateparser/data/date_translation_data/cs.py    
2023-02-02 14:04:30.000000000 +0100
@@ -116,13 +116,15 @@
         "měs",
         "měsíc",
         "měsíců",
-        "měsíce"
+        "měsíce",
+        "měsícem"
     ],
     "week": [
         "týd",
         "týden",
         "týdnů",
-        "týdny"
+        "týdny",
+        "týdnem"
     ],
     "day": [
         "den",
@@ -134,6 +136,7 @@
         "hodina",
         "hodin",
         "hodiny",
+        "hodinou",
         "hodinu",
         "hodinami"
     ],
@@ -141,6 +144,7 @@
         "min",
         "minuta",
         "minut",
+        "minutami",
         "minuty"
     ],
     "second": [
@@ -301,5 +305,10 @@
     "in": [
         "ve",
         "v"
+    ],
+    "simplifications": [
+        {
+            "teď": "0 sekunda"
+        }
     ]
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/dateparser-1.1.6/dateparser/data/date_translation_data/id.py 
new/dateparser-1.1.7/dateparser/data/date_translation_data/id.py
--- old/dateparser-1.1.6/dateparser/data/date_translation_data/id.py    
2023-01-12 10:09:13.000000000 +0100
+++ new/dateparser-1.1.7/dateparser/data/date_translation_data/id.py    
2023-02-02 14:04:30.000000000 +0100
@@ -202,7 +202,8 @@
         ],
         "\\1 week ago": [
             "(\\d+[.,]?\\d*) mgg lalu",
-            "(\\d+[.,]?\\d*) minggu yang lalu"
+            "(\\d+[.,]?\\d*) minggu yang lalu",
+            "(\\d+[.,]?\\d*) minggu lalu"
         ],
         "\\1 year ago": [
             "(\\d+[.,]?\\d*) tahun yang lalu",
@@ -235,6 +236,12 @@
         "in \\1 year": [
             "dalam (\\d+[.,]?\\d*) tahun",
             "dlm (\\d+[.,]?\\d*) thn"
+        ],
+        "\\1 week": [
+            "(\\d+[.,]?\\d*) minggu"
+        ],
+        "sunday": [
+            "minggu"
         ]
     },
     "locale_specific": {},
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dateparser-1.1.6/dateparser/languages/locale.py 
new/dateparser-1.1.7/dateparser/languages/locale.py
--- old/dateparser-1.1.6/dateparser/languages/locale.py 2023-01-12 
10:09:13.000000000 +0100
+++ new/dateparser-1.1.7/dateparser/languages/locale.py 2023-02-02 
14:04:30.000000000 +0100
@@ -134,6 +134,7 @@
             for pattern, replacement in relative_translations.items():
                 if pattern.match(word):
                     date_string_tokens[i] = pattern.sub(replacement, word)
+                    break
             else:
                 if word in dictionary:
                     fallback = word if keep_formatting and not word.isalpha() 
else ''
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dateparser-1.1.6/dateparser.egg-info/PKG-INFO 
new/dateparser-1.1.7/dateparser.egg-info/PKG-INFO
--- old/dateparser-1.1.6/dateparser.egg-info/PKG-INFO   2023-01-12 
10:09:22.000000000 +0100
+++ new/dateparser-1.1.7/dateparser.egg-info/PKG-INFO   2023-02-02 
14:04:45.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: dateparser
-Version: 1.1.6
+Version: 1.1.7
 Summary: Date parsing library designed to parse dates from HTML pages
 Home-page: https://github.com/scrapinghub/dateparser
 Author: Scrapinghub
@@ -287,7 +287,17 @@
 History
 =======
 
-1.1.6 (2022-01-12)
+1.1.7 (2023-02-02)
+------------------
+
+Improvements:
+
+- Add an “ago” synonym for Arabic (#1128)
+- Improved date parsing for Czech (#1131)
+- Improved date parsing for Indonesian (#1134)
+
+
+1.1.6 (2023-01-12)
 ------------------
 
 Improvements:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dateparser-1.1.6/tests/test_data.py 
new/dateparser-1.1.7/tests/test_data.py
--- old/dateparser-1.1.6/tests/test_data.py     2023-01-12 10:09:13.000000000 
+0100
+++ new/dateparser-1.1.7/tests/test_data.py     2023-02-02 14:04:30.000000000 
+0100
@@ -62,10 +62,7 @@
     key, value = relative_regex_mapping
     if not (key and value and isinstance(key, str) and isinstance(value, 
list)):
         return True
-    if '\\1' not in key:
-        return True
-    return not (all([isinstance(x, str) for x in value])
-                and all(['(\\d+[.,]?\\d*)' in x for x in value]))
+    return not all([isinstance(x, str) for x in value])
 
 
 class TestLocaleInfo(BaseTestCase):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dateparser-1.1.6/tests/test_languages.py 
new/dateparser-1.1.7/tests/test_languages.py
--- old/dateparser-1.1.6/tests/test_languages.py        2023-01-12 
10:09:13.000000000 +0100
+++ new/dateparser-1.1.7/tests/test_languages.py        2023-02-02 
14:04:30.000000000 +0100
@@ -131,9 +131,13 @@
         # Tagalog
         param('tl', "Biyernes Hulyo 3, 2015", "friday july 3 2015"),
         param('tl', "Pebrero 5, 2015 7:00 pm", "february 5 2015 7:00 pm"),
+
         # Indonesian
         param('id', "06 Sep 2015", "06 september 2015"),
         param('id', "07 Feb 2015 20:15", "07 february 2015 20:15"),
+        param('id', "Minggu, 18 Mar 2018 07:30", "sunday 18 march 2018 07:30"),
+        param('id', "3 minggu yang lalu", "3 week ago"),
+        param('id', "5 minggu", "5 week"),
 
         # Miscellaneous
         param('en', "2014-12-12T12:33:39-08:00", "2014-12-12 12:33:39-08:00"),

Reply via email to