From 2218917d87e9eb8b90488f9a8f7d7e108a2e5019 Mon Sep 17 00:00:00 2001 From: bwoodsend Date: Wed, 15 Jul 2020 08:57:32 +0100 Subject: [PATCH] Add hook for dask --- news/12.new.rst | 1 + .../hooks/stdhooks/hook-dask.py | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 news/12.new.rst create mode 100644 src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-dask.py diff --git a/news/12.new.rst b/news/12.new.rst new file mode 100644 index 00000000..aa69918f --- /dev/null +++ b/news/12.new.rst @@ -0,0 +1 @@ +Add hook for ``dask``, which includes .yaml data files. diff --git a/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-dask.py b/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-dask.py new file mode 100644 index 00000000..6fca2275 --- /dev/null +++ b/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-dask.py @@ -0,0 +1,18 @@ +#----------------------------------------------------------------------------- +# Copyright (c) 2005-2020, PyInstaller Development Team. +# +# Distributed under the terms of the GNU General Public License (version 2 +# or later) with exception for distributing the bootloader. +# +# The full license is in the file COPYING.txt, distributed with this software. +# +# SPDX-License-Identifier: (GPL-2.0-or-later WITH Bootloader-exception) +#----------------------------------------------------------------------------- + +""" +Collects in-repo dask.yaml and dask-schema.yaml data files. +""" + +from PyInstaller.utils.hooks import collect_data_files + +datas = collect_data_files('dask', includes=['*.yml', '*.yaml'])