From 0a1891c1ce588ed24c7b51c9ae353bd6a55eacc8 Mon Sep 17 00:00:00 2001 From: Mohamed Feddad Date: Sun, 13 Sep 2020 20:00:55 +0300 Subject: [PATCH 1/3] 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) From 95f87e90c0633821fffef286f240fadfd684bd85 Mon Sep 17 00:00:00 2001 From: Mohamed Feddad Date: Sun, 13 Sep 2020 21:49:25 +0300 Subject: [PATCH 2/3] Remove unneeded include_py_files arguement. --- .../hooks/stdhooks/hook-flask_restx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-flask_restx.py b/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-flask_restx.py index bb0e63f9..4d2faaed 100644 --- a/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-flask_restx.py +++ b/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-flask_restx.py @@ -10,4 +10,4 @@ # ----------------------------------------------------------------------------- from PyInstaller.utils.hooks import collect_data_files -datas = collect_data_files('flask_restx', include_py_files=True) +datas = collect_data_files('flask_restx') From db235302beb5251d7dfdb33d435af51740d50f07 Mon Sep 17 00:00:00 2001 From: Mohamed Feddad Date: Sun, 13 Sep 2020 21:51:57 +0300 Subject: [PATCH 3/3] Update change log description. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Brénainn Woodsend <30940778+bwoodsend@users.noreply.github.com> --- news/48.new.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/news/48.new.rst b/news/48.new.rst index ce3b799f..7ef50f49 100644 --- a/news/48.new.rst +++ b/news/48.new.rst @@ -1 +1 @@ -Add a hook for `flask_restx `_. +Add a hook for `flask_restx `_ which contains template data files.