efVddlZddlZddlZddlmZddlmZddlmZddl m Z ddl m Z ddl mZd Zd Zd Zd e jfd ZejdZeedZeedded e jfdZdZdS)N) OptionError) yield_lines) pass_none)metadata) ensure_unique)consumecf |jdS#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 x/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/setuptools/_entry_points.py ensure_validr sb ' ''' R R R R #B& 's 0+0ct|}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)r s rby_group_and_namer"'s 8RW repsc rtttt|t|S)zM Ensure entry points are unique by group and name and validate each. key)r maprrr"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..8sA++%1UE 5%  ++++++r) itertoolschain from_iterableitemsr)rr)r#groupss rloadr33sZ _ * *++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_r5>s. H()=)H)H)M)MNN O OOrc|Sr )xs rr9LsArctjd}tjt |||}dd|DS)Nrr%rc3HK|]\}}d|dt|dVdS)rrrN) render_items)r,rr1s rr-zrender..TsBVV|ue:::<#6#6:::VVVVVVr)operator attrgetterr.groupbysortedr)r#by_groupr2s rrenderrBOsR"7++H  vcx888( C CF 99VVvVVV V VVrcZddt|DS)Nrc38K|]}|jd|jVdS)z = N)r!r)r,r s rr-zrender_items..Xs4EE2..BH..EEEEEEr)rr@r(s rr<r<Ws) 99EEEEE E EEr) functoolsr=r.errorsrextern.jaraco.textrextern.jaraco.functoolsr _importlibr _itertoolsrextern.more_itertoolsr rrr"rr)singledispatchr3registerstrr5typerBr<r7rrrPs++++++...... %%%%%%****** ' ' '111(& 222s P P P dd4jj++&&& W$WWW WFFFFFr