Skip to content

Commit 321742a

Browse files
authored
Add hook for emoji (#891)
1 parent dafa1a7 commit 321742a

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed

Diff for: _pyinstaller_hooks_contrib/stdhooks/hook-emoji.py

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# ------------------------------------------------------------------
2+
# Copyright (c) 2025 PyInstaller Development Team.
3+
#
4+
# This file is distributed under the terms of the GNU General Public
5+
# License (version 2.0 or later).
6+
#
7+
# The full license is available in LICENSE, distributed with
8+
# this software.
9+
#
10+
# SPDX-License-Identifier: GPL-2.0-or-later
11+
# ------------------------------------------------------------------
12+
13+
from PyInstaller.utils.hooks import collect_data_files
14+
15+
datas = collect_data_files('emoji')

Diff for: news/891.new.rst

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add hook for ``emoji``.

Diff for: requirements-test-libraries.txt

+1
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ h3==4.2.2
251251
selectolax==0.3.28
252252
ruamel.yaml.string==0.1.1
253253
niquests==3.13.1
254+
emoji==2.14.1
254255

255256
# ------------------- Platform (OS) specifics
256257

Diff for: tests/test_libraries.py

+7
Original file line numberDiff line numberDiff line change
@@ -2660,3 +2660,10 @@ def test_niquests(pyi_builder):
26602660
except (niquests.ConnectionError, niquests.Timeout):
26612661
pass
26622662
""")
2663+
2664+
2665+
@importorskip('emoji')
2666+
def test_emoji(pyi_builder):
2667+
pyi_builder.test_source("""
2668+
import emoji
2669+
""")

0 commit comments

Comments
 (0)