_d @ FddlZddlZddlZddlZddlZddlZddlZddlmZm Z m Z m Z m Z m Z ejdk\rddlmZnej rddlmZn ddlmZGdded Zhd Zhd Zd ede efdZd e edeeeffdZdej2j4de eefdefdZidddddddddddddddd d!d!d"d"d#d#d$d%d&d'd(d(d)d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9 Zd e eefde eeee efffd:Zy#e$r GddZYwxYw);N)DictListOptionalTupleUnioncast)) TypedDictceZdZdZy)r cy)N)_args_kwargss G/usr/lib/python3/dist-packages/setuptools/_vendor/packaging/metadata.py__init_subclass__zTypedDict.__init_subclass__sN)__name__ __module__ __qualname__rrrrr r srr ceZdZUdZeed<eed<eed<eeed<eed<eed<eeed<eed <eed <eed <eed <eeed <eed<eeed<eeed<eeed<eeed<eed<eed<eeed<eeed<eeed<eed<eeed<eeefed<eed<eeed<eeed<y) RawMetadataaqA dictionary of raw core metadata. Each field in core metadata maps to a key of this dictionary (when data is provided). The key is lower-case and underscores are used instead of dashes compared to the equivalent core metadata field. Any core metadata field that can be specified multiple times or can hold multiple values in a single field have a key with a plural name. Core metadata fields that can be specified multiple times are stored as a list or dict depending on which is appropriate for the field. Any fields which hold multiple values in a single field are stored as a list. metadata_versionnameversion platformssummary descriptionkeywords home_pageauthor author_emaillicensesupported_platforms download_url classifiersrequiresprovides obsoletes maintainermaintainer_email requires_dist provides_distobsoletes_distrequires_pythonrequires_external project_urlsdescription_content_typeprovides_extradynamicN)rrr__doc__str__annotations__rrrrrrrs  I LCy L3iN K Lc"c3i3iCyO99ICy sCx. "!I#YrrF)total>rr!r#rrr r*rr"r%r/r+rr2> r4r(r'r)rr&r-r,r.r3r0r$datareturncf|jdDcgc]}|jc}Scc}w)zCSplit a string of comma-separate keyboards into a list of keywords.,)splitstrip)r9ks r_parse_keywordsr@s$#zz# /!AGGI // /s.c i}|D]s}|jddDcgc]}|j}}|jdgtddt |z z|\}}||vr t d|||<u|Scc}w)z?Parse a list of label/URL string pairings separated by a comma.r<rz duplicate labels in project urls)r=r>extendmaxlenKeyError)r9urlspairppartslabelurls r_parse_project_urlsrOs D $%)JJsA$67q77 bTSAE N345 s D==> >U A D K!8sA=msgsourcect|tr|j}|S|jd} |jddS#t$r t dwxYw)zGet the body of the message.Tdecodeutf8strictzpayload in an invalid encoding) isinstancer6 get_payloadrTUnicodeDecodeError ValueError)rPrQpayloadbpayloads r _get_payloadr]sb&#(///6 ???684 4! ?=> > ?s AAr!z author-emailr" classifierr&rzdescription-content-typer2z download-urlr%r4z home-pager rr#r*zmaintainer-emailr+zmetadata-versionrrr)zobsoletes-distr.platformrr1r(r-r3r'r,r0r/rr$r) z project-urlr(z provides-distzprovides-extrar'z requires-distzrequires-externalzrequires-pythonrzsupported-platformrc i}i}t|trHtjj tj j j|}nGtjjtj j j|}t|jD]}|j}|j|}g}d}|D]}t|tjjtfsJt|tjjrg} tjj!|D]-\} } | j#ddd} | j'| | f/|j'ttjj)| |j'||s|||<#t*j-|} | |||<A| t.vrt1|dk(r |d|| <a| t2vr||| <p| d k(r!t1|dk(rt5|d|| <| d k(r t7||| <|||< t;||} | rfd |vrCt=t|j?d }|jAd gjC|| gnd |vr|d j'| n| |d < t=tJ||fS#t$$rd} d}YwxYw#t8$r |||<Y`wxYw#tD$rB|jAd gj'|jGt|tH YwxYw) aParse a distribution's metadata. This function returns a two-item tuple of dicts. The first dict is of recognized fields from the core metadata specification. Fields that can be parsed and translated into Python's built-in types are converted appropriately. All other fields are left as-is. Fields that are allowed to appear multiple times are stored as lists. The second dict contains all other fields from the metadata. This includes any unrecognized fields. It also includes any fields which are expected to be parsed into a built-in type but were not formatted appropriately. Finally, any fields that are expected to appear only once but are repeated are included in this dict. )policyTrUrVlatin1FrBrrr1rrS)&rWr6emailparserParserracompat32parsestr BytesParser parsebytes frozensetkeyslowerget_allheaderHeader decode_headerrTrYappend make_header_EMAIL_TO_RAW_MAPPINGget_STRING_FIELDSrG_LIST_STRING_FIELDSr@rOrHr]rpop setdefaultrErZrXbytesr)r9rawunparsedparsedrheadersvaluevalid_encodinghchunksbinencodingraw_namer[description_headers r parse_emailrsK =?C%'H$$$ELL,A,A$BKKDQ))1F1F)GRRSWX &++-(t#zz| ..&# Aa%,,"5"5s!;< <<!U\\001=?%*\\%?%?%B 3MC* 684 $*MM3/2 3 S!9!9&!ABC QG# P"HTN (,,T2  #HTN  ~ %#e*/!!HCM, ,!CM  #E a+E!H5CM ' ' 3E :H #HTNit#t-vt, #%)#sww}/E%F"##M26=='1(*'..w7%,M"  S !8 ++Q./#+)./J '!& '  M2.55   ju&=  >  s7#K8L 2 L!8 L L LL!AM,+M,)email.feedparserrc email.header email.message email.parser email.policysystypingrrrrrr version_infor TYPE_CHECKINGtyping_extensions ImportErrorrrurvr6r@rOmessageMessageryr]rsrrrrrs ;;v  /  3<)5<F"  0#0$s)0 %d3i%DcN%P?emm++?U5#:5F?3?: hN-=   :  N y y,** F &!" #$"$&$,(/9@m,eE3J'm,E+tCcN?S2S,Tm,s    sDD D