aboutsummaryrefslogtreecommitdiffstats
path: root/packaging-tools/bld_module.py
diff options
context:
space:
mode:
authorPatrik Teivonen <patrik.teivonen@qt.io>2022-09-01 11:41:55 +0300
committerPatrik Teivonen <patrik.teivonen@qt.io>2022-09-07 21:12:04 +0000
commitfc4d871b3760766ddf192f5d3f61877acba8ca7a (patch)
tree6ca3b99094a9cc9b5cb3e332b9a239e40827e54e /packaging-tools/bld_module.py
parent03ca8c3c145fa8a01235d15f9532714fa09d5b4b (diff)
pep8-naming: N803 argument name should be lowercase (function arguments)
Enable this check and rename function arguments to be PEP8 compliant. Change-Id: Ia75f66decdab75197335b1cff5f87c6f25b0d259 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
Diffstat (limited to 'packaging-tools/bld_module.py')
-rwxr-xr-xpackaging-tools/bld_module.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/packaging-tools/bld_module.py b/packaging-tools/bld_module.py
index c80854d23..624dff1a5 100755
--- a/packaging-tools/bld_module.py
+++ b/packaging-tools/bld_module.py
@@ -307,16 +307,16 @@ def main() -> None:
generateCommand.append(os.environ["EXTRA_QMAKE_ARGS"])
generateCommand.append(qtModuleProFile)
- run_command(generateCommand, currentWorkingDirectory=qtModuleBuildDirectory, extra_environment=environment)
+ run_command(generateCommand, cwd=qtModuleBuildDirectory, extra_environment=environment)
- ret = run_build_command(currentWorkingDirectory=qtModuleBuildDirectory, callerArguments=callerArguments)
+ ret = run_build_command(cwd=qtModuleBuildDirectory, caller_arguments=callerArguments)
if ret:
raise RuntimeError(f"Failure running the last command: {ret}")
ret = run_install_command(
['install', 'INSTALL_ROOT=' + qtModuleInstallDirectory],
- currentWorkingDirectory=qtModuleBuildDirectory,
- callerArguments=callerArguments, extra_environment=environment
+ cwd=qtModuleBuildDirectory,
+ caller_arguments=callerArguments, extra_environment=environment
)
if ret:
raise RuntimeError(f"Failure running the last command: {ret}")
@@ -333,16 +333,16 @@ def main() -> None:
if callerArguments.makeDocs:
# build docs first
ret = run_install_command(
- 'docs', currentWorkingDirectory=qtModuleBuildDirectory,
- callerArguments=callerArguments, extra_environment=environment
+ 'docs', cwd=qtModuleBuildDirectory,
+ caller_arguments=callerArguments, extra_environment=environment
)
if ret:
raise RuntimeError(f"Failure running the last command: {ret}")
# then make install those
ret = run_install_command(
['install_docs', 'INSTALL_ROOT=' + qtModuleInstallDirectory],
- currentWorkingDirectory=qtModuleBuildDirectory,
- callerArguments=callerArguments, extra_environment=environment
+ cwd=qtModuleBuildDirectory,
+ caller_arguments=callerArguments, extra_environment=environment
)
if ret:
raise RuntimeError(f"Failure running the last command: {ret}")
@@ -351,7 +351,7 @@ def main() -> None:
archive_name = callerArguments.module_name + '-' + os.environ['LICENSE'] + '-doc-' + os.environ['MODULE_VERSION'] + '.7z'
ret = run_command(
['7z', 'a', os.path.join('doc_archives', archive_name), doc_dir],
- currentWorkingDirectory=os.path.dirname(os.path.realpath(__file__))
+ cwd=os.path.dirname(os.path.realpath(__file__))
)
if ret:
raise RuntimeError(f"Failure running the last command: {ret}")
@@ -379,7 +379,7 @@ def main() -> None:
archive_cmd.append(os.path.join(dir_to_archive, '*'))
else:
archive_cmd.append(dir_to_archive)
- ret = run_command(archive_cmd, currentWorkingDirectory=os.path.dirname(os.path.realpath(__file__)))
+ ret = run_command(archive_cmd, cwd=os.path.dirname(os.path.realpath(__file__)))
if ret:
raise RuntimeError(f"Failure running the last command: {ret}")