14
0
forked from pool/python-emoji

Accepting request 920055 from home:theMarix:branches:devel:languages:python

- Update to 1.5.0
  * Emojis of English version updated to the Emoji Charts v14.0
- Drop obsolete `fix-python2.patch` that has been merged upstream.

OBS-URL: https://build.opensuse.org/request/show/920055
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-emoji?expand=0&rev=23
This commit is contained in:
2021-09-18 16:16:50 +00:00
committed by Git OBS Bridge
parent 12435d22a2
commit e2dc0d17d0
5 changed files with 11 additions and 27 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:21257f311e24468031e85685867c00b87249dc7612b82dc763a771ba5fb00c01
size 184985

3
emoji-1.5.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2eddd062f940924fb25a3108d84d77dc571927d91a419b4c30f37e253c791b19
size 185955

View File

@@ -1,22 +0,0 @@
From: Matthias Bach <marix@marix.org>
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(

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sat Sep 18 10:19:22 UTC 2021 - Matthias Bach <marix@marix.org> - 1.5.0
- Update to 1.5.0
* Emojis of English version updated to the Emoji Charts v14.0
- Drop obsolete `fix-python2.patch` that has been merged upstream.
-------------------------------------------------------------------
Wed Aug 4 19:23:18 UTC 2021 - Matthias Bach <marix@marix.org> - 1.4.2

View File

@@ -18,14 +18,13 @@
Name: python-emoji
Version: 1.4.2
Version: 1.5.0
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
Patch1: fix-python2.patch
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes