| """A simple test helper""" | |
| def pip_parse( | |
| *, | |
| hub_name, | |
| python_version = None, | |
| add_libdir_to_library_search_path = False, | |
| auth_patterns = {}, | |
| download_only = False, | |
| enable_implicit_namespace_pkgs = False, | |
| environment = {}, | |
| envsubst = [], | |
| experimental_extra_index_urls = [], | |
| experimental_index_url = "", | |
| experimental_requirement_cycles = {}, | |
| extra_hub_aliases = {}, | |
| extra_pip_args = [], | |
| isolated = True, | |
| netrc = None, | |
| parse_all_requirements_files = True, | |
| pip_data_exclude = None, | |
| pyproject_toml = None, | |
| python_interpreter = None, | |
| python_interpreter_target = None, | |
| quiet = True, | |
| requirements_by_platform = {}, | |
| requirements_darwin = None, | |
| requirements_linux = None, | |
| requirements_lock = None, | |
| requirements_windows = None, | |
| target_platforms = [], | |
| simpleapi_skip = [], | |
| timeout = 600, | |
| uv_lock = None, | |
| whl_modifications = {}, | |
| **kwargs): | |
| """A simple helper for testing to simulate the PyPI extension parse tag class""" | |
| return struct( | |
| auth_patterns = auth_patterns, | |
| add_libdir_to_library_search_path = add_libdir_to_library_search_path, | |
| download_only = download_only, | |
| enable_implicit_namespace_pkgs = enable_implicit_namespace_pkgs, | |
| environment = environment, | |
| envsubst = envsubst, | |
| experimental_extra_index_urls = experimental_extra_index_urls, | |
| experimental_index_url = experimental_index_url, | |
| experimental_requirement_cycles = experimental_requirement_cycles, | |
| target_platforms = target_platforms, | |
| extra_hub_aliases = extra_hub_aliases, | |
| extra_pip_args = extra_pip_args, | |
| hub_name = hub_name, | |
| isolated = isolated, | |
| netrc = netrc, | |
| parse_all_requirements_files = parse_all_requirements_files, | |
| pip_data_exclude = pip_data_exclude, | |
| pyproject_toml = pyproject_toml, | |
| python_interpreter = python_interpreter, | |
| python_interpreter_target = python_interpreter_target, | |
| python_version = python_version, | |
| quiet = quiet, | |
| requirements_by_platform = requirements_by_platform, | |
| requirements_darwin = requirements_darwin, | |
| requirements_linux = requirements_linux, | |
| requirements_lock = requirements_lock, | |
| requirements_windows = requirements_windows, | |
| timeout = timeout, | |
| uv_lock = uv_lock, | |
| whl_modifications = whl_modifications, | |
| parallel_download = False, | |
| experimental_index_url_overrides = {}, | |
| simpleapi_skip = simpleapi_skip, | |
| **kwargs | |
| ) |