From 0a1891c1ce588ed24c7b51c9ae353bd6a55eacc8 Mon Sep 17 00:00:00 2001 From: Mohamed Feddad Date: Sun, 13 Sep 2020 20:00:55 +0300 Subject: [PATCH] Add hook for flask_restx Resolves #47 --- news/48.new.rst | 1 + .../hooks/stdhooks/hook-flask_restx.py | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 news/48.new.rst create mode 100644 src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-flask_restx.py diff --git a/news/48.new.rst b/news/48.new.rst new file mode 100644 index 00000000..ce3b799f --- /dev/null +++ b/news/48.new.rst @@ -0,0 +1 @@ +Add a hook for `flask_restx `_. diff --git a/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-flask_restx.py b/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-flask_restx.py new file mode 100644 index 00000000..bb0e63f9 --- /dev/null +++ b/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-flask_restx.py @@ -0,0 +1,13 @@ +# ----------------------------------------------------------------------------- +# 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) +# ----------------------------------------------------------------------------- +from PyInstaller.utils.hooks import collect_data_files + +datas = collect_data_files('flask_restx', include_py_files=True)