|
|
@ -263,7 +263,7 @@ def command_sanity(args: SanityConfig) -> None:
|
|
|
|
virtualenv_python = create_sanity_virtualenv(args, test_profile.python, test.name)
|
|
|
|
virtualenv_python = create_sanity_virtualenv(args, test_profile.python, test.name)
|
|
|
|
|
|
|
|
|
|
|
|
if virtualenv_python:
|
|
|
|
if virtualenv_python:
|
|
|
|
virtualenv_yaml = check_sanity_virtualenv_yaml(virtualenv_python)
|
|
|
|
virtualenv_yaml = args.explain or check_sanity_virtualenv_yaml(virtualenv_python)
|
|
|
|
|
|
|
|
|
|
|
|
if test.require_libyaml and not virtualenv_yaml:
|
|
|
|
if test.require_libyaml and not virtualenv_yaml:
|
|
|
|
result = SanitySkipped(test.name)
|
|
|
|
result = SanitySkipped(test.name)
|
|
|
@ -1179,18 +1179,21 @@ def create_sanity_virtualenv(
|
|
|
|
|
|
|
|
|
|
|
|
run_pip(args, virtualenv_python, commands, None) # create_sanity_virtualenv()
|
|
|
|
run_pip(args, virtualenv_python, commands, None) # create_sanity_virtualenv()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if not args.explain:
|
|
|
|
write_text_file(meta_install, virtualenv_install)
|
|
|
|
write_text_file(meta_install, virtualenv_install)
|
|
|
|
|
|
|
|
|
|
|
|
# false positive: pylint: disable=no-member
|
|
|
|
# false positive: pylint: disable=no-member
|
|
|
|
if any(isinstance(command, PipInstall) and command.has_package('pyyaml') for command in commands):
|
|
|
|
if any(isinstance(command, PipInstall) and command.has_package('pyyaml') for command in commands):
|
|
|
|
virtualenv_yaml = yamlcheck(virtualenv_python)
|
|
|
|
virtualenv_yaml = yamlcheck(virtualenv_python, args.explain)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
virtualenv_yaml = None
|
|
|
|
virtualenv_yaml = None
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if not args.explain:
|
|
|
|
write_json_file(meta_yaml, virtualenv_yaml)
|
|
|
|
write_json_file(meta_yaml, virtualenv_yaml)
|
|
|
|
|
|
|
|
|
|
|
|
created_venvs.append(f'{label}-{python.version}')
|
|
|
|
created_venvs.append(f'{label}-{python.version}')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if not args.explain:
|
|
|
|
# touch the marker to keep track of when the virtualenv was last used
|
|
|
|
# touch the marker to keep track of when the virtualenv was last used
|
|
|
|
pathlib.Path(virtualenv_marker).touch()
|
|
|
|
pathlib.Path(virtualenv_marker).touch()
|
|
|
|
|
|
|
|
|
|
|
|