K i JddlZddlZddlZddlmZddlmZddlmZddl m Z ddl m Z ddl mZd Zd Zd Zd e j$fd Zej(dZej-edZej-edded e j$fdZdZy)N) pass_none) yield_lines)consume)metadata) ensure_unique) OptionErrorcp |jy#ttf$r}d|d}t||d}~wwxYw)z 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. zProblems to parse zq. Please ensure entry-point follows the spec: https://packaging.python.org/en/latest/specifications/entry-points/N)extrasAttributeErrorAssertionErrorr )epexmsgs ^/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/setuptools/_entry_points.py ensure_validrsL' N +'!%R R #B& 's 505ct|}d|ddj|z}tjj |S)zf Given a value of an entry point or series of entry points, return each as an EntryPoint. []  )rjoinr EntryPoints _from_text)valuegrouplinestexts r load_groupr"s@  E ugS>DIIe, ,D    * *4 00c2|j|jfSN)rname)rs rby_group_and_namer#-s 88RWW repsc Vtttt|t|S)zM Ensure entry points are unique by group and name and validate each. key)rmaprrr#r$s rvalidater*1s  C mC5FG HI Jrctjjd|jD}t t j |S)zA Given a Distribution.entry_points, produce EntryPoints. c3:K|]\}}t||ywr!)r).0rrs r zload..>s +%1UE 5% +s) itertoolschain from_iterableitemsr*rr)r$groupss rloadr49sC __ * *+58YY[+F H((0 11rcxttjtjj|S)z >>> ep, = load('[console_scripts]\nfoo=bar') >>> ep.group 'console_scripts' >>> ep.name 'foo' >>> ep.value 'bar' )r*rrrr)s r_r6Ds+ H(()=)=)H)H)MN OOrc|Sr!)xs rr:RsArctjd}tjt |||}dj d|DS)Nrr&rc3FK|]\}}d|dt|dyw)rrrN) render_items)r-rr2s rr.zrender..Zs)V|ueqs<#6"7r:Vs!)operator attrgetterr/groupbysortedr)r$by_groupr3s rrenderrCUs@""7+H   vcx8( CF 99VvV VVrcDdjdt|DS)Nrc3RK|]}|jd|j!yw)z = N)r"r)r-rs rr.zrender_items..^s#E2yBHH:.Es%')rrAr)s rr=r=]s 99EE EEr) functoolsr/r>jaraco.functoolsr jaraco.textrmore_itertoolsr _importlibr _itertoolsrerrorsr rrr#rr*singledispatchr4registerstrr6typerCr=r8rrrQs&#" %'(1(&& 22s P P d4j+& W$$W WFr