PATH: //proc/thread-self/root/opt/cloudlinux/venv/lib/python3.11/site-packages/setuptools
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 __init__.py
↓
X
📁 __pycache__/
X
📄 _core_metadata.py
↓
X
📁 _distutils/
X
📄 _entry_points.py
↓
X
📄 _imp.py
↓
X
📄 _importlib.py
↓
X
📄 _itertools.py
↓
X
📄 _normalization.py
↓
X
📄 _path.py
↓
X
📄 _reqs.py
↓
X
📄 _shutil.py
↓
X
📄 _static.py
↓
X
📁 _vendor/
X
📄 archive_util.py
↓
X
📄 build_meta.py
↓
X
📄 cli-32.exe
↓
X
📄 cli-64.exe
↓
X
📄 cli-arm64.exe
↓
X
📄 cli.exe
↓
X
📁 command/
X
📁 compat/
X
📁 config/
X
📄 depends.py
↓
X
📄 discovery.py
↓
X
📄 dist.py
↓
X
📄 errors.py
↓
X
📄 extension.py
↓
X
📄 glob.py
↓
X
📄 gui-32.exe
↓
X
📄 gui-64.exe
↓
X
📄 gui-arm64.exe
↓
X
📄 gui.exe
↓
X
📄 installer.py
↓
X
📄 launch.py
↓
X
📄 logging.py
↓
X
📄 modified.py
↓
X
📄 monkey.py
↓
X
📄 msvc.py
↓
X
📄 namespaces.py
↓
X
📄 package_index.py
↓
X
📄 sandbox.py
↓
X
📄 script (dev).tmpl
↓
X
📄 script.tmpl
↓
X
📁 tests/
X
📄 unicode_utils.py
↓
X
📄 version.py
↓
X
📄 warnings.py
↓
X
📄 wheel.py
↓
X
📄 windows_support.py
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: _reqs.py
from __future__ import annotations from collections.abc import Iterable, Iterator from functools import lru_cache from typing import TYPE_CHECKING, Callable, TypeVar, Union, overload import jaraco.text as text from packaging.requirements import Requirement if TYPE_CHECKING: from typing_extensions import TypeAlias _T = TypeVar("_T") _StrOrIter: TypeAlias = 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))) # These overloads are only needed because of a mypy false-positive, pyright gets it right # https://github.com/python/mypy/issues/3737 @overload def parse(strs: _StrOrIter) -> Iterator[Requirement]: ... @overload def parse(strs: _StrOrIter, parser: Callable[[str], _T]) -> Iterator[_T]: ... def parse(strs: _StrOrIter, parser: Callable[[str], _T] = parse_req) -> Iterator[_T]: # type: ignore[assignment] """ Replacement for ``pkg_resources.parse_requirements`` that uses ``packaging``. """ return map(parser, parse_strings(strs))
SIMPAN PERUBAHAN