def _validate_whl_extension(ext_file): tmp_dir = tempfile.mkdtemp() zip_ref = zipfile.ZipFile(ext_file, 'r') zip_ref.extractall(tmp_dir) zip_ref.close() azext_metadata = WheelExtension.get_azext_metadata(tmp_dir) shutil.rmtree(tmp_dir) _validate_whl_cli_compat(azext_metadata)
def _validate_whl_extension(ext_file): tmp_dir = tempfile.mkdtemp() zip_ref = zipfile.ZipFile(ext_file, 'r') zip_ref.extractall(tmp_dir) zip_ref.close() azext_metadata = WheelExtension.get_azext_metadata(tmp_dir) rmtree_with_retry(tmp_dir) check_version_compatibility(azext_metadata)
def _validate_whl_extension(ext_file): tmp_dir = tempfile.mkdtemp() zip_ref = zipfile.ZipFile(ext_file, 'r') zip_ref.extractall(tmp_dir) zip_ref.close() azext_metadata = WheelExtension.get_azext_metadata(tmp_dir) shutil.rmtree(tmp_dir) _validate_whl_cli_compat(azext_metadata)