diff --git a/news/684.new.rst b/news/684.new.rst new file mode 100644 index 00000000..5168d575 --- /dev/null +++ b/news/684.new.rst @@ -0,0 +1 @@ +Add hook for ``PyTaskbar`` diff --git a/requirements-test-libraries.txt b/requirements-test-libraries.txt index 6005ab7a..76446010 100644 --- a/requirements-test-libraries.txt +++ b/requirements-test-libraries.txt @@ -188,5 +188,8 @@ pymediainfo==6.1.0; sys_platform == 'darwin' or sys_platform == 'win32' # the required library can be installed with "brew install labstreaminglayer/tap/lsl" on macOS, or with "conda install liblsl" on any platform pylsl==1.16.2; sys_platform == "darwin" +# PyTaskbarProgress only runs on Windows +PyTaskbarProgress==0.0.8; sys_platform == 'win32' + # Include the requirements for testing -r requirements-test.txt diff --git a/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-PyTaskbar.py b/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-PyTaskbar.py new file mode 100644 index 00000000..a222da62 --- /dev/null +++ b/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-PyTaskbar.py @@ -0,0 +1,14 @@ +# ------------------------------------------------------------------ +# 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.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("PyTaskbar") diff --git a/src/_pyinstaller_hooks_contrib/tests/test_libraries.py b/src/_pyinstaller_hooks_contrib/tests/test_libraries.py index ec776202..6b29afa6 100644 --- a/src/_pyinstaller_hooks_contrib/tests/test_libraries.py +++ b/src/_pyinstaller_hooks_contrib/tests/test_libraries.py @@ -1866,3 +1866,11 @@ def test_seedir(pyi_builder): pyi_builder.test_source(""" import seedir """) + + +@importorskip('PyTaskbar') +@pytest.mark.skipif(not is_win, reason='PyTaskbar is supported only on Windows') +def test_PyTaskbar(pyi_builder): + pyi_builder.test_source(""" + import PyTaskbar + """)