Skip to content

Commit

Permalink
hooks: add hook for LaoNLP
Browse files Browse the repository at this point in the history
  • Loading branch information
BLKSerene authored and bwoodsend committed Sep 24, 2023
1 parent 3a94e85 commit 35250e4
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions news/644.new.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add hook for ``LaoNLP``.
1 change: 1 addition & 0 deletions requirements-test-libraries.txt
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ sudachidict-core==20230711
sudachidict-small==20230711
sudachidict-full==20230711
wxPython==4.2.1; sys_platform == 'darwin' or sys_platform == 'win32' # PyPI provides binary wheels for Windows and macOS
laonlp==1.1.2

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

Expand Down
15 changes: 15 additions & 0 deletions src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-laonlp.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# ------------------------------------------------------------------
# Copyright (c) 2023 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.GPL.txt, distributed with
# this software.
#
# SPDX-License-Identifier: GPL-2.0-or-later
# ------------------------------------------------------------------

from PyInstaller.utils.hooks import collect_data_files

datas = collect_data_files('laonlp')
7 changes: 7 additions & 0 deletions src/_pyinstaller_hooks_contrib/tests/test_libraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -1835,3 +1835,10 @@ def test_sudachipy(pyi_builder):
Dictionary(dict_type='core').create()
Dictionary(dict_type='full').create()
""")


@importorskip('laonlp')
def test_laonlp(pyi_builder):
pyi_builder.test_source("""
import laonlp
""")

0 comments on commit 35250e4

Please sign in to comment.