PATH:
opt
/
imunify360
/
venv
/
lib
/
python3.11
/
site-packages
/
setuptools
from functools import lru_cache from typing import Callable, Iterable, Iterator, TypeVar, Union, overload import setuptools.extern.jaraco.text as text from setuptools.extern.packaging.requirements import Requirement _T = TypeVar("_T") _StrOrIter = Union[str, Iterable[str]] parse_req: Callable[[str], Requirement] = lru_cache()(Requirement) # Setuptools parses the same requirement many times # (e.g. first for validation than for normalisation), # so it might be worth to cache. def parse_strings(strs: _StrOrIter) -> Iterator[str]: """ Yield requirement strings for each specification in `strs`. `strs` must be a string, or a (possibly-nested) iterable thereof. """ return text.join_continuation(map(text.drop_comment, text.yield_lines(strs))) @overload def parse(strs: _StrOrIter) -> Iterator[Requirement]: ... @overload def parse(strs: _StrOrIter, parser: Callable[[str], _T]) -> Iterator[_T]: ... def parse(strs, parser=parse_req): """ Replacement for ``pkg_resources.parse_requirements`` that uses ``packaging``. """ return map(parser, parse_strings(strs))
[-] errors.py
[edit]
[-] sandbox.py
[edit]
[-] _path.py
[edit]
[-] depends.py
[edit]
[-] _reqs.py
[edit]
[-] cli.exe
[edit]
[-] cli-64.exe
[edit]
[+]
..
[-] gui-arm64.exe
[edit]
[-] warnings.py
[edit]
[-] gui.exe
[edit]
[+]
extern
[-] gui-64.exe
[edit]
[-] script.tmpl
[edit]
[-] package_index.py
[edit]
[+]
_distutils
[-] windows_support.py
[edit]
[-] modified.py
[edit]
[-] glob.py
[edit]
[-] _imp.py
[edit]
[-] wheel.py
[edit]
[-] launch.py
[edit]
[-] dist.py
[edit]
[+]
_vendor
[-] cli-32.exe
[edit]
[+]
__pycache__
[-] py312compat.py
[edit]
[-] installer.py
[edit]
[-] msvc.py
[edit]
[-] archive_util.py
[edit]
[-] _normalization.py
[edit]
[-] discovery.py
[edit]
[-] monkey.py
[edit]
[+]
config
[-] _entry_points.py
[edit]
[-] version.py
[edit]
[-] _core_metadata.py
[edit]
[-] _itertools.py
[edit]
[-] logging.py
[edit]
[-] gui-32.exe
[edit]
[-] unicode_utils.py
[edit]
[-] namespaces.py
[edit]
[-] build_meta.py
[edit]
[-] __init__.py
[edit]
[-] cli-arm64.exe
[edit]
[+]
command
[-] script (dev).tmpl
[edit]
[-] _importlib.py
[edit]
[-] dep_util.py
[edit]
[-] extension.py
[edit]