Hello community,

here is the log from the commit of package python-python-bidi for 
openSUSE:Factory checked in at 2019-07-22 17:20:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-python-bidi (Old)
 and      /work/SRC/openSUSE:Factory/.python-python-bidi.new.4126 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-python-bidi"

Mon Jul 22 17:20:18 2019 rev:3 rq:717599 version:0.4.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-python-bidi/python-python-bidi.changes    
2018-12-24 11:42:32.333391109 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-python-bidi.new.4126/python-python-bidi.changes
  2019-07-22 17:20:19.545895534 +0200
@@ -1,0 +2,6 @@
+Mon Jul 22 13:25:46 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 0.4.2:
+  * Merged Fix for mixed RTL and numbers, Thanks Just van Rossum
+
+-------------------------------------------------------------------

Old:
----
  python-bidi-0.4.0.tar.gz

New:
----
  python-bidi-0.4.2.tar.gz

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

Other differences:
------------------
++++++ python-python-bidi.spec ++++++
--- /var/tmp/diff_new_pack.19nkY3/_old  2019-07-22 17:20:20.025895402 +0200
+++ /var/tmp/diff_new_pack.19nkY3/_new  2019-07-22 17:20:20.025895402 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-python-bidi
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,22 +18,21 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-python-bidi
-Version:        0.4.0
+Version:        0.4.2
 Release:        0
 Summary:        BiDi layout algorithm
 License:        LGPL-3.0-only
 Group:          Development/Languages/Python
-Url:            https://github.com/MeirKriheli/python-bidi
+URL:            https://github.com/MeirKriheli/python-bidi
 Source:         
https://files.pythonhosted.org/packages/source/p/python-bidi/python-bidi-%{version}.tar.gz
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires:       python-six
+BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module six}
 # /SECTION
-BuildRequires:  fdupes
-Requires:       python-six
-BuildArch:      noarch
-
 %python_subpackages
 
 %description

++++++ python-bidi-0.4.0.tar.gz -> python-bidi-0.4.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-bidi-0.4.0/AUTHORS.rst 
new/python-bidi-0.4.2/AUTHORS.rst
--- old/python-bidi-0.4.0/AUTHORS.rst   2015-09-15 20:55:41.000000000 +0200
+++ new/python-bidi-0.4.2/AUTHORS.rst   2019-07-04 12:53:00.000000000 +0200
@@ -17,4 +17,5 @@
 Contributors
 ------------
 
-None yet. Why not be the first?
+* Just van Rossum - https://github.com/justvanrossum
+* Jakub Wilk <[email protected]>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-bidi-0.4.0/CHANGELOG.rst 
new/python-bidi-0.4.2/CHANGELOG.rst
--- old/python-bidi-0.4.0/CHANGELOG.rst 2015-09-15 20:38:29.000000000 +0200
+++ new/python-bidi-0.4.2/CHANGELOG.rst 2019-07-04 12:52:25.000000000 +0200
@@ -1,8 +1,19 @@
 .. :changelog:
 
+0.4.2
+-----
+
+* Type Fixes, thanks jwilk
+
+
 History
 =========
 
+0.4.1
+-----
+
+* Merged Fix for mixed RTL and numbers, Thanks Just van Rossum
+
 0.4.0
 -----
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-bidi-0.4.0/PKG-INFO 
new/python-bidi-0.4.2/PKG-INFO
--- old/python-bidi-0.4.0/PKG-INFO      2015-09-15 21:07:41.000000000 +0200
+++ new/python-bidi-0.4.2/PKG-INFO      2019-07-04 12:54:13.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: python-bidi
-Version: 0.4.0
+Version: 0.4.2
 Summary: Pure python implementation of the BiDi layout algorithm
 Home-page: https://github.com/MeirKriheli/python-bidi
 Author: Meir Kriheli
@@ -30,12 +30,12 @@
         
         **Required arguments:**
         
-        * ``unicode_or_str``: The orginal unicode or string (i.e: storage). If 
it's a string
+        * ``unicode_or_str``: The original unicode or string (i.e.: storage). 
If it's a string
           use the optional argument ``encoding`` to specify it's encoding.
         
         **Optional arguments:**
         
-        * ``encoding``: If unicode_or_str is a string, specifies the encdoing. 
The
+        * ``encoding``: If unicode_or_str is a string, specifies the encoding. 
The
           algorithm uses unicodedata_ which requires unicode. This encoding 
will be
           used to decode and encode back to string before returning
           (default: "utf-8").
@@ -108,9 +108,20 @@
         
         
         
+        0.4.2
+        -----
+        
+        * Type Fixes, thanks jwilk
+        
+        
         History
         =========
         
+        0.4.1
+        -----
+        
+        * Merged Fix for mixed RTL and numbers, Thanks Just van Rossum
+        
         0.4.0
         -----
         
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-bidi-0.4.0/README.rst 
new/python-bidi-0.4.2/README.rst
--- old/python-bidi-0.4.0/README.rst    2015-09-15 20:52:19.000000000 +0200
+++ new/python-bidi-0.4.2/README.rst    2019-07-04 12:51:15.000000000 +0200
@@ -22,12 +22,12 @@
 
 **Required arguments:**
 
-* ``unicode_or_str``: The orginal unicode or string (i.e: storage). If it's a 
string
+* ``unicode_or_str``: The original unicode or string (i.e.: storage). If it's 
a string
   use the optional argument ``encoding`` to specify it's encoding.
 
 **Optional arguments:**
 
-* ``encoding``: If unicode_or_str is a string, specifies the encdoing. The
+* ``encoding``: If unicode_or_str is a string, specifies the encoding. The
   algorithm uses unicodedata_ which requires unicode. This encoding will be
   used to decode and encode back to string before returning
   (default: "utf-8").
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-bidi-0.4.0/bidi/__init__.py 
new/python-bidi-0.4.2/bidi/__init__.py
--- old/python-bidi-0.4.0/bidi/__init__.py      2015-09-15 20:36:55.000000000 
+0200
+++ new/python-bidi-0.4.2/bidi/__init__.py      2019-07-04 12:51:48.000000000 
+0200
@@ -22,7 +22,7 @@
 http://www.unicode.org/unicode/reports/tr9/
 """
 
-VERSION = '0.4.0'
+VERSION = '0.4.2'
 
 
 def main():
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-bidi-0.4.0/bidi/algorithm.py 
new/python-bidi-0.4.2/bidi/algorithm.py
--- old/python-bidi-0.4.0/bidi/algorithm.py     2015-09-15 19:22:04.000000000 
+0200
+++ new/python-bidi-0.4.2/bidi/algorithm.py     2019-07-04 12:51:15.000000000 
+0200
@@ -15,7 +15,7 @@
 
 # Copyright (C) 2008-2010 Yaacov Zamir <kzamir_a_walla.co.il>,
 # Copyright (C) 2010-2015 Meir kriheli <[email protected]>.
-"bidirectional alogrithm implementation"
+"bidirectional algorithm implementation"
 import sys
 
 import inspect
@@ -308,7 +308,7 @@
 
 
 def resolve_weak_types(storage, debug=False):
-    """Reslove weak type rules W1 - W3.
+    """Resolve weak type rules W1 - W3.
 
     See: http://unicode.org/reports/tr9/#Resolving_Weak_Types
 
@@ -503,7 +503,7 @@
                 else:
                     _end = run_idx
             else:
-                if _end:
+                if _end is not None:
                     chars[_start:+_end+1] = \
                             reversed(chars[_start:+_end+1])
                     _start = _end = None
@@ -542,7 +542,7 @@
     max_len = len(chars)
 
     # L2 should be per line
-    # Calculates highest level and loweset odd level on the fly.
+    # Calculates highest level and lowest odd level on the fly.
 
     line_start = line_end = 0
     highest_level = 0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-bidi-0.4.0/python_bidi.egg-info/PKG-INFO 
new/python-bidi-0.4.2/python_bidi.egg-info/PKG-INFO
--- old/python-bidi-0.4.0/python_bidi.egg-info/PKG-INFO 2015-09-15 
21:07:41.000000000 +0200
+++ new/python-bidi-0.4.2/python_bidi.egg-info/PKG-INFO 2019-07-04 
12:54:13.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: python-bidi
-Version: 0.4.0
+Version: 0.4.2
 Summary: Pure python implementation of the BiDi layout algorithm
 Home-page: https://github.com/MeirKriheli/python-bidi
 Author: Meir Kriheli
@@ -30,12 +30,12 @@
         
         **Required arguments:**
         
-        * ``unicode_or_str``: The orginal unicode or string (i.e: storage). If 
it's a string
+        * ``unicode_or_str``: The original unicode or string (i.e.: storage). 
If it's a string
           use the optional argument ``encoding`` to specify it's encoding.
         
         **Optional arguments:**
         
-        * ``encoding``: If unicode_or_str is a string, specifies the encdoing. 
The
+        * ``encoding``: If unicode_or_str is a string, specifies the encoding. 
The
           algorithm uses unicodedata_ which requires unicode. This encoding 
will be
           used to decode and encode back to string before returning
           (default: "utf-8").
@@ -108,9 +108,20 @@
         
         
         
+        0.4.2
+        -----
+        
+        * Type Fixes, thanks jwilk
+        
+        
         History
         =========
         
+        0.4.1
+        -----
+        
+        * Merged Fix for mixed RTL and numbers, Thanks Just van Rossum
+        
         0.4.0
         -----
         
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-bidi-0.4.0/python_bidi.egg-info/requires.txt 
new/python-bidi-0.4.2/python_bidi.egg-info/requires.txt
--- old/python-bidi-0.4.0/python_bidi.egg-info/requires.txt     2015-09-15 
21:07:41.000000000 +0200
+++ new/python-bidi-0.4.2/python_bidi.egg-info/requires.txt     2019-07-04 
12:54:13.000000000 +0200
@@ -1 +1 @@
-six
\ No newline at end of file
+six
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-bidi-0.4.0/setup.cfg 
new/python-bidi-0.4.2/setup.cfg
--- old/python-bidi-0.4.0/setup.cfg     2015-09-15 21:07:41.000000000 +0200
+++ new/python-bidi-0.4.2/setup.cfg     2019-07-04 12:54:13.000000000 +0200
@@ -3,6 +3,5 @@
 
 [egg_info]
 tag_build = 
-tag_svn_revision = 0
 tag_date = 0
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-bidi-0.4.0/setup.py 
new/python-bidi-0.4.2/setup.py
--- old/python-bidi-0.4.0/setup.py      2015-09-15 21:02:56.000000000 +0200
+++ new/python-bidi-0.4.2/setup.py      2019-07-04 12:51:40.000000000 +0200
@@ -20,7 +20,7 @@
 
 setup(
     name="python-bidi",
-    version="0.4.0",
+    version="0.4.2",
     url='https://github.com/MeirKriheli/python-bidi',
     description='Pure python implementation of the BiDi layout algorithm',
     long_description=readme + '\n\n' + history,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-bidi-0.4.0/tests/test_bidi.py 
new/python-bidi-0.4.2/tests/test_bidi.py
--- old/python-bidi-0.4.0/tests/test_bidi.py    2015-09-15 19:07:03.000000000 
+0200
+++ new/python-bidi-0.4.2/tests/test_bidi.py    2019-07-04 12:51:15.000000000 
+0200
@@ -74,7 +74,7 @@
     def test_override_base_dir(self):
         """Tests overriding the base paragraph direction"""
 
-        # normaly the display should be :MOLAHS be since we're overriding the
+        # normally the display should be :MOLAHS be since we're overriding the
         # base dir the colon should be at the end of the display
         storage = u'SHALOM:'
         display = u'MOLAHS:'
@@ -83,7 +83,7 @@
                          display)
 
     def test_output_encoding(self):
-        """Make sure the display is in the same encdoing as the incoming 
text"""
+        """Make sure the display is in the same encoding as the incoming 
text"""
 
         storage = six.b('\xf9\xec\xe5\xed')  # Hebrew word shalom in cp1255
         display = six.b('\xed\xe5\xec\xf9')
@@ -108,7 +108,7 @@
             # (u'AN ARABIC _l_o 123-456 NICE ONE!',
             #  u'!ENO ECIN 456-123  CIBARA NA'),
             (u'AN ARABIC _l _o 123-456 PAIR', u'RIAP   123-456 CIBARA NA'),
-            (u'this bug 67_r_o89 catched!', u'this bug 6789 catched!'),
+            (u'this bug 67_r_o89 caught!', u'this bug 6789 caught!'),
         )
 
         # adopt fribidi's CapRtl encoding
@@ -128,6 +128,17 @@
                 storage = storage.replace(key, val)
             self.assertEqual(get_display(storage, upper_is_rtl=True), display)
 
+    def test_mixed_hebrew_numbers_issue10(self):
+        """Test for the case reported in
+        https://github.com/MeirKriheli/python-bidi/issues/10
+        """
+        tests = (
+            (u'1 2 3 \u05E0\u05D9\u05E1\u05D9\u05D5\u05DF', 
u'\u05DF\u05D5\u05D9\u05E1\u05D9\u05E0 3 2 1'),
+            (u'1 2 3 123 \u05E0\u05D9\u05E1\u05D9\u05D5\u05DF', 
u'\u05DF\u05D5\u05D9\u05E1\u05D9\u05E0 123 3 2 1'),
+        )
+        for storage, display in tests:
+            self.assertEqual(get_display(storage), display)
+
 
 if __name__ == '__main__':
     unittest.main()


Reply via email to