/
usr
/
lib
/
imh-ultrastack-common
/
venv
/
lib
/
python3.13
/
site-packages
/
setuptools
/
/usr/lib/imh-ultrastack-common/venv/lib/python3.13/site-packages/setuptools
mkdir
upload
Name
Size
Mode
Actions
command/
-
0755
rm
compat/
-
0755
rm
config/
-
0755
rm
tests/
-
0755
rm
_distutils/
-
0755
rm
_vendor/
-
0755
rm
__pycache__/
-
0755
rm
archive_util.py
7356
0644
edit
dl
rm
build_meta.py
20234
0644
edit
dl
rm
cli-32.exe
11776
0644
edit
dl
rm
cli-64.exe
14336
0644
edit
dl
rm
cli-arm64.exe
13824
0644
edit
dl
rm
cli.exe
11776
0644
edit
dl
rm
depends.py
5965
0644
edit
dl
rm
discovery.py
21286
0644
edit
dl
rm
dist.py
45184
0644
edit
dl
rm
errors.py
3024
0644
edit
dl
rm
extension.py
6818
0644
edit
dl
rm
glob.py
6062
0644
edit
dl
rm
gui-32.exe
11776
0644
edit
dl
rm
gui-64.exe
14336
0644
edit
dl
rm
gui-arm64.exe
13824
0644
edit
dl
rm
gui.exe
11776
0644
edit
dl
rm
installer.py
5184
0644
edit
dl
rm
launch.py
820
0644
edit
dl
rm
launcher manifest.xml
628
0644
edit
dl
rm
logging.py
1261
0644
edit
dl
rm
modified.py
568
0644
edit
dl
rm
monkey.py
3733
0644
edit
dl
rm
msvc.py
42909
0644
edit
dl
rm
namespaces.py
3045
0644
edit
dl
rm
script (dev).tmpl
218
0644
edit
dl
rm
script.tmpl
138
0644
edit
dl
rm
unicode_utils.py
3189
0644
edit
dl
rm
version.py
161
0644
edit
dl
rm
warnings.py
3796
0644
edit
dl
rm
wheel.py
9532
0644
edit
dl
rm
windows_support.py
726
0644
edit
dl
rm
_core_metadata.py
11978
0644
edit
dl
rm
_discovery.py
836
0644
edit
dl
rm
_entry_points.py
2468
0644
edit
dl
rm
_imp.py
2435
0644
edit
dl
rm
_importlib.py
223
0644
edit
dl
rm
_itertools.py
657
0644
edit
dl
rm
_normalization.py
5798
0644
edit
dl
rm
_path.py
2976
0644
edit
dl
rm
_reqs.py
1380
0644
edit
dl
rm
_scripts.py
11247
0644
edit
dl
rm
_shutil.py
1578
0644
edit
dl
rm
_static.py
4855
0644
edit
dl
rm
__init__.py
9521
0644
edit
dl
rm
Edit:
/usr/lib/imh-ultrastack-common/venv/lib/python3.13/site-packages/setuptools/_entry_points.py
(2468B)
import functools import itertools import operator from jaraco.functools import pass_none from jaraco.text import yield_lines from more_itertools import consume from ._importlib import metadata from ._itertools import ensure_unique from .errors import OptionError def ensure_valid(ep): """ Exercise one of the dynamic properties to trigger the pattern match. This function is deprecated in favor of importlib_metadata 8.7 and Python 3.14 importlib.metadata, which validates entry points on construction. """ try: ep.extras except (AttributeError, AssertionError) as ex: # Why both? See https://github.com/python/importlib_metadata/issues/488 msg = ( f"Problems to parse {ep}.\nPlease ensure entry-point follows the spec: " "https://packaging.python.org/en/latest/specifications/entry-points/" ) raise OptionError(msg) from ex def load_group(value, group): """ Given a value of an entry point or series of entry points, return each as an EntryPoint. """ # normalize to a single sequence of lines lines = yield_lines(value) text = f'[{group}]\n' + '\n'.join(lines) return metadata.EntryPoints._from_text(text) def by_group_and_name(ep): return ep.group, ep.name def validate(eps: metadata.EntryPoints): """ Ensure entry points are unique by group and name and validate each. """ consume(map(ensure_valid, ensure_unique(eps, key=by_group_and_name))) return eps @functools.singledispatch def load(eps): """ Given a Distribution.entry_points, produce EntryPoints. """ groups = itertools.chain.from_iterable( load_group(value, group) for group, value in eps.items() ) return validate(metadata.EntryPoints(groups)) @load.register(str) def _(eps): r""" >>> ep, = load('[console_scripts]\nfoo=bar') >>> ep.group 'console_scripts' >>> ep.name 'foo' >>> ep.value 'bar' """ return validate(metadata.EntryPoints(metadata.EntryPoints._from_text(eps))) load.register(type(None), lambda x: x) @pass_none def render(eps: metadata.EntryPoints): by_group = operator.attrgetter('group') groups = itertools.groupby(sorted(eps, key=by_group), by_group) return '\n'.join(f'[{group}]\n{render_items(items)}\n' for group, items in groups) def render_items(eps): return '\n'.join(f'{ep.name} = {ep.value}' for ep in sorted(eps))
Save
cmd:
run