bg VddlZddlZddlZddlmZddlmZddlmZddl m Z ddl m Z ddl mZd Zd Zd Zd e jfd ZejdZeedZeedded e jfdZdZdS)N) pass_none) yield_lines)consume)metadata) ensure_unique) OptionErrorct |jdS#ttf$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)extrasAttributeErrorAssertionErrorr )epexmsgs O/opt/cloudlinux/venv/lib64/python3.11/site-packages/setuptools/_entry_points.py ensure_validrsg ' N +''' R R R R #B& 's 727ct|}d|dd|z}tj|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_grouprsF   E u>>>DIIe,, ,D   * *4 0 00c|j|jfSN)rname)rs rby_group_and_namer#)s 8RW repsc rtttt|t|S)zM Ensure entry points are unique by group and name and validate each. key)rmaprrr#r$s rvalidater*-s/ C mC5FGGG H HIII Jrctjd|D}t t j|S)zA Given a Distribution.entry_points, produce EntryPoints. c3<K|]\}}t||VdSr!)r).0rrs r zload..:sA++%1UE 5%  ++++++r) itertoolschain from_iterableitemsr*rr)r$groupss rloadr45sZ _ * *++58YY[[+++F H(00 1 11rc~ttjtj|S)z >>> ep, = load('[console_scripts]\nfoo=bar') >>> ep.group 'console_scripts' >>> ep.name 'foo' >>> ep.value 'bar' )r*rrrr)s r_r6@s. H()=)H)H)M)MNN O OOrc|Sr!)xs rr:NsArctjd}tjt |||}dd|DS)Nrr&rc3HK|]\}}d|dt|dVdS)rrrN) render_items)r-rr2s rr.zrender..VsBVV|ue:::<#6#6:::VVVVVVr)operator attrgetterr/groupbysortedr)r$by_groupr3s rrenderrCQsR"7++H  vcx888( C CF 99VVvVVV V VVrcZddt|DS)Nrc38K|]}|jd|jVdS)z = N)r"r)r-rs rr.zrender_items..Zs4EE2..BH..EEEEEEr)rrAr)s rr=r=Ys) 99EEEEE E EEr) functoolsr/r>jaraco.functoolsr jaraco.textrmore_itertoolsr _importlibr _itertoolsrerrorsr rrr#rr*singledispatchr4registerstrr6typerCr=r8rrrQs&&&&&&######"""""" %%%%%% ' ' ' 111(& 222s P P P dd4jj++&&& W$WWW WFFFFFr