_iJddlZddlZddlZddlmZddlmZddlmZddl m Z ddl m Z ddl mZd Zd Zd Zd e j$fd Zej(dZej-edZej-edded e j$fdZdZy)N) OptionError) yield_lines) pass_none)metadata) ensure_unique)consumecd |jy#t$r}d|d}t||d}~wwxYw)zR Exercise one of the dynamic properties to trigger the pattern match. zProblems to parse zq. Please ensure entry-point follows the spec: https://packaging.python.org/en/latest/specifications/entry-points/N)extrasAttributeErrorr)epexmsgs /builddir/build/BUILDROOT/alt-python312-setuptools-69.0.2-3.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/setuptools/_entry_points.py ensure_validr sE ' ' %R R #B& 's  /*/ct|}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_grouprs@  E ugS>DIIe, ,D    * *4 00c2|j|jfSN)rname)r s rby_group_and_namer"'s 88RWW repsc Vtttt|t|S)zM Ensure entry points are unique by group and name and validate each. key)r maprrr"r#s rvalidater)+s  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..8s+5@\UE 5% [s) itertoolschain from_iterableitemsr)rr)r#groupss rloadr33sC __ * *+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_r5>s+ H(()=)=)H)H)MN OOrc|Sr )xs rr9LsArctjd}tjt |||}dj d|DS)Nrr%rc3FK|]\}}d|dt|dyw)rrrN) render_items)r,rr1s rr-zrender..Ts*Vv|ueqs<#6"7r:vs!)operator attrgetterr.groupbysortedr)r#by_groupr2s rrenderrBOs@""7+H   vcx8( CF 99VvV VVrcDdjdt|DS)Nrc3RK|]}|jd|j!yw)z = N)r!r)r,r s rr-zrender_items..Xs$E2yBHH:.s%')rr@r(s rr<r<Ws 99EE EEr) functoolsr=r.errorsrextern.jaraco.textrextern.jaraco.functoolsr _importlibr _itertoolsrextern.more_itertoolsr rrr"rr)singledispatchr3registerstrr5typerBr<r7rrrPs+. %* '1(&& 22s P P d4j+& W$$W WFr