Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-emoji for openSUSE:Factory 
checked in at 2021-08-06 22:44:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-emoji (Old)
 and      /work/SRC/openSUSE:Factory/.python-emoji.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-emoji"

Fri Aug  6 22:44:48 2021 rev:10 rq:910392 version:1.4.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-emoji/python-emoji.changes        
2021-02-19 23:44:52.271340208 +0100
+++ /work/SRC/openSUSE:Factory/.python-emoji.new.1899/python-emoji.changes      
2021-08-06 22:45:28.569996588 +0200
@@ -1,0 +2,11 @@
+Wed Aug  4 19:23:18 UTC 2021 - Matthias Bach <[email protected]> - 1.4.2
+
+- Update to 1.4.2
+  * Added support for German naming of emojis.
+  * Added support for French naming of emojis.
+  * Added new function `replace_emoji` which strips emojis from
+    output.
+- Add patch `fix-python2.patch`: Fixes unicode emoji names on Python
+  2.
+
+-------------------------------------------------------------------

Old:
----
  emoji-1.2.0.tar.gz

New:
----
  emoji-1.4.2.tar.gz
  fix-python2.patch

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

Other differences:
------------------
++++++ python-emoji.spec ++++++
--- /var/tmp/diff_new_pack.hBOSQ2/_old  2021-08-06 22:45:29.073995693 +0200
+++ /var/tmp/diff_new_pack.hBOSQ2/_new  2021-08-06 22:45:29.077995686 +0200
@@ -18,14 +18,14 @@
 
 
 Name:           python-emoji
-Version:        1.2.0
+Version:        1.4.2
 Release:        0
 Summary:        Emoji for Python
 License:        BSD-3-Clause
 Group:          Development/Languages/Python
 URL:            https://github.com/carpedm20/emoji/
 Source:         
https://files.pythonhosted.org/packages/source/e/emoji/emoji-%{version}.tar.gz
-# https://github.com/carpedm20/emoji/pull/118
+Patch1:         fix-python2.patch
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
@@ -47,7 +47,7 @@
 By default, the language is English (``language='en'``) but Spanish 
(``'es'``), Portuguese (``'pt'``) and Italian (``'it'``) are also supported.
 
 %prep
-%setup -q -n emoji-%{version}
+%autosetup -n emoji-%{version} -p1
 
 %build
 %python_build

++++++ emoji-1.2.0.tar.gz -> emoji-1.4.2.tar.gz ++++++
++++ 7418 lines of diff (skipped)

++++++ fix-python2.patch ++++++
From: Matthias Bach <[email protected]>
Date: 2021-07-31 11:57:53 2021 +0200
Subject: Fix matching of non-ASCII emoji names on Python 2
References: https://github.com/carpedm20/emoji/pull/181
Upstream: merged

A fix to get the tests passing for the French language in 1.4.1 sadly was 
incomplete and only worked for Python 3. This extends the patch to also work on 
Python 2.


diff --git a/emoji/core.py b/emoji/core.py
index 7221937..ade232e 100644
--- a/emoji/core.py
+++ b/emoji/core.py
@@ -55,7 +55,7 @@ def emojize(
         Python is fun ?????? #red heart, not black heart
     """
     EMOJI_UNICODE = unicode_codes.EMOJI_UNICODE[language]
-    pattern = re.compile(u'(%s[\\w\\-&.?????????()!#*+????,/]+%s)' % 
delimiters)
+    pattern = re.compile(u'(%s[\\w\\-&.?????????()!#*+????,/]+%s)' % 
delimiters, flags=re.UNICODE)
 
     def replace(match):
         mg = match.group(1).replace(delimiters[0], _DEFAULT_DELIMITER).replace(

Reply via email to