diff options
author | Cristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2022-03-30 20:48:56 +0200 |
---|---|---|
committer | Cristián Maureira-Fredes <cristian.maureira-fredes@qt.io> | 2022-04-02 16:43:59 +0200 |
commit | f9460f25543135e9b436285cbf25e30dc22c57a8 (patch) | |
tree | b1f67f0b2cd7737004541eab9d97143a8e3b9bce /testing/wheel_tester.py | |
parent | 63b7c084faa1ef42ac22d94ad2832903caf954aa (diff) |
flake8: fix style issues on testing
Change-Id: I4e3e922ff95040999bc3bb1463c2e29783d5ee14
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'testing/wheel_tester.py')
-rw-r--r-- | testing/wheel_tester.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/testing/wheel_tester.py b/testing/wheel_tester.py index c97647861..160ef7d37 100644 --- a/testing/wheel_tester.py +++ b/testing/wheel_tester.py @@ -52,11 +52,12 @@ Make sure that some generated wheels already exist in the dist/ directory (e.g. setup.py bdist_wheel was already executed). """ -from argparse import ArgumentParser, RawTextHelpFormatter -from pathlib import Path import os +import platform import sys import tempfile +from argparse import ArgumentParser, RawTextHelpFormatter +from pathlib import Path try: this_file = __file__ @@ -67,17 +68,16 @@ this_dir = os.path.dirname(this_file) setup_script_dir = os.path.abspath(os.path.join(this_dir, "..")) sys.path.append(setup_script_dir) -from build_scripts.utils import find_files_using_glob -from build_scripts.utils import find_glob_in_path -from build_scripts.utils import run_process, run_process_output -from build_scripts.utils import rmtree from setuptools._distutils import log -import platform + +from build_scripts.utils import (find_files_using_glob, find_glob_in_path, + rmtree, run_process, run_process_output) log.set_verbosity(1) NEW_WHEELS = False + def find_executable(executable, command_line_value): value = command_line_value option_str = f"--{executable}" @@ -242,7 +242,7 @@ def run_ninja(): args = ["ninja"] exit_code = run_process(args) if exit_code: - raise RuntimeError(f"Failure while running {executable}.") + raise RuntimeError(f"Failure while running {' '.join(args)}.") log.info("") @@ -250,7 +250,7 @@ def run_ninja_install(): args = ["ninja", "install"] exit_code = run_process(args) if exit_code: - raise RuntimeError(f"Failed while running {executable} install.") + raise RuntimeError(f"Failed while running {' '.join(args)} install.") log.info("") |