From 179263c8b89dc79c853b3f4c8511eda5c04eba16 Mon Sep 17 00:00:00 2001 From: Attila Gombos Date: Tue, 6 Aug 2024 12:06:20 +0200 Subject: [PATCH] Update mypy config, README.md and add extra logging --- python/README.md | 3 ++- python/pack_python | 4 ++++ python/setup.cfg | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/python/README.md b/python/README.md index eefe362..9ee0a7b 100644 --- a/python/README.md +++ b/python/README.md @@ -40,7 +40,8 @@ $ sudo gem install -N fpm ### dh-virtualenv ```bash -sudo apt-get install debhelper devscripts equivs dh-virtualenv dh-python python3-virtualenv python3-all python3-stdeb +$ sudo apt-get install debhelper devscripts equivs dh-virtualenv dh-python python3-virtualenv python3-all +$ pip install stdeb ``` ## Configuration diff --git a/python/pack_python b/python/pack_python index 7eb040f..e0e19a3 100755 --- a/python/pack_python +++ b/python/pack_python @@ -46,12 +46,16 @@ def main() -> None: script_file = f"{scripts_dir}/pack_{script}" if exists(script_file): + print(f"Running packaging script for {script}: {script_file}", file=sys.stderr) + command = [script_file, workspace_dir] if arg_string := configuration.get(script): command.extend(_split_arguments(arg_string)) _run_script(arguments, command) + else: + print(f"Packaging script for {script} not found: {script_file}", file=sys.stderr) def _run_script(arguments: Namespace, command: list[str]) -> None: diff --git a/python/setup.cfg b/python/setup.cfg index 4093115..7131c3e 100755 --- a/python/setup.cfg +++ b/python/setup.cfg @@ -1,5 +1,5 @@ [mypy] -files = pack_python, wheel, fpm-deb, dh-virtualenv, pack_common.py +files = pack_python, pack_wheel, pack_fpm-deb, pack_dh-virtualenv, pack_common.py strict = True scripts_are_modules = True