Files
old-nlp/venv/lib/python3.7/site-packages/wheel/__pycache__/metadata.cpython-37.pyc

47 lines
3.6 KiB
Plaintext
Raw Normal View History

2019-10-20 13:16:49 +02:00
B
<00>$<24>][<00>@sndZddlZddlZddlZddlZddlmZe<03>d<05>Z dd<07>Z
dd <09>Z d
d <0B>Z d d <0A>Z dd<0F>Zdd<11>ZdS)z2
Tools for converting old- to new-style metadata.
<EFBFBD>N<>)<01> read_pkg_infozF^(?P<package>.*?)(;\s*(?P<condition>.*?)(extra == '(?P<extra>.*?)')?)$cCsVt|dd<02>rd|jSg}x |jD]\}}|<01>||<00>q"W|sDdSdd<06>t|<01><01>S)zFReturn the version specifier for a requirement in PEP 345/566 fashion.<2E>urlNz @ <20>z (%s)<29>,)<06>getattrr<00>specs<63>append<6E>join<69>sorted)<04> requirementZ requires_dist<73>op<6F>ver<65>r<00>1/tmp/pip-install-zytfk_me/wheel/wheel/metadata.py<70>requires_to_requires_dists 
rccsRxL|D]D}tj<01>|<01>}t|<02>}d<01>t|j<06><01>}|r:d|}|j||VqWdS)z=Yield Requires-Dist: strings for parsed requirements strings.rz[%s]N)<08> pkg_resources<65> Requirement<6E>parserr
r <00>extras<61> project_name)<05> requirements<74>reqZparsed_requirement<6E>specrrrr<00>convert_requirements s
 rccs<>x<>|<00><00>D]<5D>\}}d}|pd}d|kr6|<01>dd<03>\}}t<02>|<01>}|rjd|fV|r^d|d}|d|7}|rvd|}xt|<02>D]}d ||fVq<>Wq
Wd
S) a,
Convert requirements from a setup()-style dictionary to ('Requires-Dist', 'requirement')
and ('Provides-Extra', 'extra') tuples.
extras_require is a dictionary of {extra: [requirements]} as passed to setup(),
using the empty extra {'': [requirements]} to hold install_requires.
r<00>:rzProvides-Extra<72>(z) and z extra == '%s'z ; z Requires-DistN)<05>items<6D>splitr<00>
safe_extrar)Zextras_require<72>extra<72>depends<64> conditionZnew_reqrrr<00>generate_requirements+s

  r#c Cs<>t|<01>}|<02>dd<02>|d=|d=tj<03>|d<05>}tj<03>|<03>r<>t|<03><01>}|<04><07>}WdQRXtt <09>
|<05>dd<08>d <09>}xB|D]:\}}x0t ||i<01>D] \} }
| |
f|<02> <0C>kr<>|
|| <q<>WqrW|d
} | r<>|<02> t|<02><01>|d
=|S) zN
Convert .egg-info directory with PKG-INFO to the Metadata 2.1 format
zMetadata-Versionz2.1zProvides-Extraz Requires-Distz requires.txtNcSs |dp
dS)Nrrr)<01>xrrr<00><lambda>V<00>z%pkginfo_to_metadata.<locals>.<lambda>)<01>key<65> Description)r<00>replace_header<65>os<6F>pathr
<00>exists<74>open<65>readr r<00>split_sectionsr#r<00> set_payload<61>dedent_description) <0C> egg_info_pathZ pkginfo_path<74>pkg_infoZ requires_pathZ requires_file<6C>requiresZparsed_requirementsr <00>reqsr'<00>value<75> descriptionrrr<00>pkginfo_to_metadataGs&  

 r8cCsj||}|<01><00>}t|t<02>sft|d<01>s,t|<02>Sx8|<00><04>D],}|d<00><00>|kr6|d<00>dd<05><02>d<06>}Pq6W|S)z<Hack to coax Unicode out of an email Message() - Python 3.3+<2B> raw_itemsrr<00>ascii<69>surrogateescapezutf-8)<07>lower<65>
isinstance<EFBFBD>str<74>hasattrr9<00>encode<64>decode)r3<00>field<6C>text<78>itemrrr<00>pkginfo_unicodeds

rEc
Csr|d}d}t|t<01>s$d}t|d<01>}|<01><03>}d<04>|d<00><05>t<06>d<04>|dd<07><00><01>df<03>}|rn|<04>d<08><01> d d
<EFBFBD>}|S) z@
Dedent and convert pkg_info['Description'] to Unicode.
r(FT<46>
rrN<>utf8r:r;)
r=r>rE<00>
splitlinesr
<00>lstrip<69>textwrap<61>dedentr@rA)r3r7Z
surrogatesZdescription_linesZdescription_dedentrrrr1ts


r1)<10>__doc__<5F>os.pathr*<00>rerJrZpkginfor<00>compileZEXTRA_RErrr#r8rEr1rrrr<00><module>s