Skip to content

Commit f0344ee

Browse files
Add hook for selectolax (#841)
1 parent a715a66 commit f0344ee

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# ------------------------------------------------------------------
2+
# Copyright (c) 2024 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("selectolax")

news/841.new.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add hook for ``selectolax`` to collect its data files.

requirements-test-libraries.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ pysaml2==7.3.0; python_version < '3.9' # pyup: ignore
238238
toga==0.4.8; python_version >= '3.9'
239239
numbers-parser==4.14.2; python_version >= '3.9'
240240
h3==4.1.2
241+
selectolax==0.3.27
241242

242243
# ------------------- Platform (OS) specifics
243244

tests/test_libraries.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2339,3 +2339,10 @@ def test_h3(pyi_builder):
23392339
pyi_builder.test_source("""
23402340
import h3
23412341
""")
2342+
2343+
2344+
@importorskip('selectolax')
2345+
def test_selectolax(pyi_builder):
2346+
pyi_builder.test_source("""
2347+
import selectolax
2348+
""")

0 commit comments

Comments
 (0)