Skip to content

Commit

Permalink
Add hook for selectolax (#841)
Browse files Browse the repository at this point in the history
  • Loading branch information
baseplate-admin authored Dec 23, 2024
1 parent a715a66 commit f0344ee
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
15 changes: 15 additions & 0 deletions _pyinstaller_hooks_contrib/stdhooks/hook-selectolax.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# ------------------------------------------------------------------
# Copyright (c) 2024 PyInstaller Development Team.
#
# This file is distributed under the terms of the GNU General Public
# License (version 2.0 or later).
#
# The full license is available in LICENSE, distributed with
# this software.
#
# SPDX-License-Identifier: GPL-2.0-or-later
# ------------------------------------------------------------------

from PyInstaller.utils.hooks import collect_data_files

datas = collect_data_files("selectolax")
1 change: 1 addition & 0 deletions news/841.new.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add hook for ``selectolax`` to collect its data files.
1 change: 1 addition & 0 deletions requirements-test-libraries.txt
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ pysaml2==7.3.0; python_version < '3.9' # pyup: ignore
toga==0.4.8; python_version >= '3.9'
numbers-parser==4.14.2; python_version >= '3.9'
h3==4.1.2
selectolax==0.3.27

# ------------------- Platform (OS) specifics

Expand Down
7 changes: 7 additions & 0 deletions tests/test_libraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -2339,3 +2339,10 @@ def test_h3(pyi_builder):
pyi_builder.test_source("""
import h3
""")


@importorskip('selectolax')
def test_selectolax(pyi_builder):
pyi_builder.test_source("""
import selectolax
""")

0 comments on commit f0344ee

Please sign in to comment.