From 2b4e3f3aeff4c9aa590e94ee6f9f549076d06a59 Mon Sep 17 00:00:00 2001 From: Joey Vagedes Date: Thu, 17 Aug 2023 11:33:49 -0700 Subject: [PATCH] edk2toolext.capsule: add __init__.py (#628) __init__.py is missing from edk2toolext/capsule, which causes the module to not be found on local edit installs of the project (i.e. `pip install -e .`). This commit adds in the expected file. --- edk2toolext/capsule/__init__.py | 9 +++++++++ edk2toolext/capsule/capsule_tool.py | 1 + edk2toolext/capsule/signing_helper.py | 3 ++- 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 edk2toolext/capsule/__init__.py diff --git a/edk2toolext/capsule/__init__.py b/edk2toolext/capsule/__init__.py new file mode 100644 index 00000000..50405789 --- /dev/null +++ b/edk2toolext/capsule/__init__.py @@ -0,0 +1,9 @@ +## +# Copyright (c) Microsoft Corporation +# +# SPDX-License-Identifier: BSD-2-Clause-Patent +## +"""This file exists to satisfy pythons packaging requirements. + +Read more: https://docs.python.org/3/reference/import.html#regular-packages +""" diff --git a/edk2toolext/capsule/capsule_tool.py b/edk2toolext/capsule/capsule_tool.py index 0c8c86c1..16f466c6 100644 --- a/edk2toolext/capsule/capsule_tool.py +++ b/edk2toolext/capsule/capsule_tool.py @@ -16,6 +16,7 @@ import sys import yaml + from edk2toolext.capsule import capsule_helper, signing_helper TOOL_DESCRIPTION = """ diff --git a/edk2toolext/capsule/signing_helper.py b/edk2toolext/capsule/signing_helper.py index 675996cf..5618aa3d 100644 --- a/edk2toolext/capsule/signing_helper.py +++ b/edk2toolext/capsule/signing_helper.py @@ -18,9 +18,10 @@ import importlib -from edk2toolext.capsule import signtool_signer from edk2toollib.utility_functions import import_module_by_file_name +from edk2toolext.capsule import signtool_signer + # Valid types. PYOPENSSL_SIGNER = 'pyopenssl' SIGNTOOL_SIGNER = 'signtool'