Files
cms-website/.deps_siteforge_v812/packaging/__pycache__/metadata.cpython-312.pyc
T

139 lines
27 KiB
Plaintext
Raw Normal View History

Ë
êÅÙj³‡ãó¦—ddlmZddlZddlZddlZddlZddlZddlZddl Z ddl
Z
ddl
m Z m Z m
Z
mZmZmZddlmZmZmZmZddlmZddlmZe
j2d«Ze j6d k\reZn Gd
„d e«ZGd „d
e«ZGd„ded¬«Z hd£Z!hd£Z"dhZ#dFd„Z$dGd„Z%dHd„Z&idd“dd“dd“dd“dd“d d!“d"d"“d#d$“d%d%“d&d&“d'd(“d)d*“d+d+“d,d-“d.d/“d0d0“d1d1“d2d3dd4d5d6d7d8d9d:d;d<d=d>œ
¥Z'e'jQ«D��cic]\}}||“Œ
c}}Z)dId?„Z*e+«Z,gd@¢Z-ed@Z.e/gdA¢«Z0GdB„dCe
e«Z1GdD„dE«Z2ycc}}w)Jé)Ú annotationsN)ÚAnyÚCallableÚGenericÚLiteralÚ TypedDictÚcasté)ÚlicensesÚ requirementsÚ
specifiersÚutils)Úversion)ÚNormalizedLicenseExpressionÚT)éé có6—eZdZUdZded<ded<d d„Zd
d„Zy) ÚExceptionGroupzËA minimal implementation of :external:exc:`ExceptionGroup` from Python 3.11.
If :external:exc:`ExceptionGroup` is already defined by Python itself,
that version is used instead.
ÚstrÚmessageúlist[Exception]Ú
exceptionscó —||_||_y©N)rr)Úselfrrs úVC:\Users\30997\AppData\Local\Temp\pip-target-6g32zz5s\lib\python\packaging/metadata.pyÚ__init__zExceptionGroup.__init__)s€Ø"ˆDŒLØ(ˆD�Oócóh—|jj›d|j›d|j›d�S)NÚ(z, Ú))Ú __class__Ú__name__rr)rs rÚ__repr__zExceptionGroup.__repr__-s1€Ø—n‘n×-Ñ-Ð.¨a°· ± Ð/?¸rÀ$Ç/Á/ÐATÐTUÐVÐ VrN)rrrrÚreturnÚNone)r&r)r$Ú
__module__Ú __qualname__Ú__doc__Ú__annotations__rr%©rrrrs…ñ ð ‹ Ø#Ó#ó )ô Wrrcó2‡—eZdZUdZded< dˆfd„ ZˆxZS)ÚInvalidMetadataz'A metadata field contains invalid data.rÚfieldcó2•—||_t‰|� |«yr)r/Úsuperr)rr/rr#s €rrzInvalidMetadata.__init__7sø€ØˆŒ
Ü
‰Ñ˜Õ!r)r/rrrr&r')r$r(r)r*r+rÚ
__classcell__)r#s@rr.r.1sø…Ù1à ƒJØ;÷"ñ"rr.có>—eZdZUdZded<ded<ded<ded<ded<ded <ded
<ded <ded <ded
<ded<ded<ded<ded<ded<ded<ded<ded<ded<ded<ded<ded<ded<ded<ded<ded<ded<ded <ded!<ded"<y#)$Ú RawMetadataa¿A 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. See :class:`Metadata` whose attributes
match the keys of this dictionary.
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.
rÚmetadata_versionÚnamerú list[str]Ú platformsÚsummaryÚ descriptionÚkeywordsÚ home_pageÚauthorÚ author_emailÚlicenseÚsupported_platformsÚ download_urlÚ classifiersÚrequiresÚprovidesÚ obsoletesÚ
maintainerÚmaintainer_emailÚ
requires_distÚ
provides_distÚobsoletes_distÚrequires_pythonÚrequires_externalúdict[str, str]Ú project_urlsÚdescription_content_typeÚprovides_extraÚdynamicÚlicense_expressionÚ
license_filesN)r$r(r)r*r+r,rrr4r4@sÀ…ñ
ð ÓØ
ƒIØ
ƒLØÓØ
ƒLØÓØÓ؃NØ ƒKØÓØ
ƒLð#Ó"ØÓØÓØÓØÓØÓðƒOØÓØÓØÓØÓØÓØ Ó Ø Ó ð"Ó!ØÓðÓðÓØÔrr4F)Útotal>r6r=r?r9rr<rFr:r>rArKrGr5rRrO>
rQrDrCrEr8rBrSrIrHrJrPrLr@rNcóf—|jd«D�cgc]}|j«‘Œc}Scc}w)zCSplit a string of comma-separated keywords into a list of keywords.Ú,)ÚsplitÚstrip)ÚdataÚks rÚ_parse_keywordsr[¯s(€à#Ÿz™z¨#œÓ /™˜!ˆA�G‰G�I˜Ñ /Ð/ùÒ /s”.c ó—i}|D]s}|jdd«D�cgc]}|j«‘Œ}}|jdgtddt |«z
«z«|\}}||vr t d«‚|||<Œu|Scc}w)z?Parse a list of label/URL string pairings separated by a comma.rVr
Úréz duplicate labels in project urls)rWrXÚextendÚmaxÚlenÚKeyError)rYÚurlsÚpairÚpÚpartsÚlabelÚurls rÚ_parse_project_urlsri´s“€à
€DÛˆð$%)§J¡J¨s°AÔ$6Ó7Ñ$6˜q�—‘•Ð$6ˆÐ7Ø
� ‰ �b�TœS  A¬¨E«
¡NÓ3Ñ4Ô5ð‰
ˆˆsØ �D‰=ôÐ=Ó>Ð >؈ˆUŠ ðAðD €Kùò!8sœA=có—t|t«r$|j«}t|t«sJ‚|S|jd¬«}t|t«sJ‚ |j dd«S#t
$r}t
d«|‚d}~wwxYw)zGet the body of the message.T©ÚdecodeÚutf8Ústrictzpayload in an invalid encodingN)Ú
isinstancerÚ get_payloadÚbytesrlÚUnicodeDecodeErrorÚ
ValueError)ÚmsgÚsourceÚpayloadÚbpayloadÚexcs rÚ _get_payloadryÜsˆ€ô�&œ#ÔØ—/‘/Ó#ˆÜ˜'¤3Ô'Ð'Ð'؈ð—?‘?¨$�?Ó/ˆÜ˜(¤EÔ*Ð*Ð*ð HØ—?‘? 6¨8Ó4Ð 4øÜ!ò HÜÐ=Ó>ÀCÐ Gûð HúsÁA,Á, BÁ5 BÂBr=z author-emailr>Ú
classifierrBr:zdescription-content-typerOz download-urlrArQz home-pager<r;r?zlicense-expressionrRz license-filerSrFzmaintainer-emailrGúmetadata-versionr5r6rErJr8rDrIrPrCrHrLrKr9r@r)
zobsoletes-distÚplatformz project-urlrDz
provides-distzprovides-extrarCz
requires-distzrequires-externalzrequires-pythonr9zsupported-platformrc óæ—i}i}t|t«rHtjj tj
j ¬«j|«}nGtjjtj
j ¬«j|«}t|j««D�]´}|j«}|j|«xsg}g}d}|D]ì}t|tjjtf«sJ‚t|tjj«r‰g} tjj!|«D]-\}
} |
j#dd«d} | j'|
| f«Œ/|j'ttjj)| «««ŒÜ|j'|«Œî|s|||<�Œ't*j-|«} | €|||<�ŒE| t.vrt1|«dk(r
|d|| <�Œe| t2vr||| <�Œt| d k(r!t1|«dk(rt5|d«|| <�Œš| d
k(r t7|«|| <�Œ°|||<�Œ· t;||«}
|
rfd |vrCt=t|j?d ««}|jAd g«jC||
g«nd |vr|d j'|
«n|
|d < t=tJ|«|fS#t$$rd} d}Y�Œ‘wxYw#t8$r |||<Y�ŒdwxYw#tD$rB|jAd g«j'|jGt|tH«¬ ««YŒ…wxYw)
a
Parse a distribution's metadata stored as email headers (e.g. from ``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.
)ÚpolicyTrmrnÚlatin1Fr
rr;rNr:rk)&rorÚemailÚparserÚParserr~Úcompat32ÚparsestrÚ BytesParserÚ
parsebytesÚ frozensetÚkeysÚlowerÚget_allÚheaderÚHeaderÚ
decode_headerrlrrÚappendÚ make_headerÚ_EMAIL_TO_RAW_MAPPINGÚgetÚ_STRING_FIELDSraÚ _LIST_FIELDSr[rirbryr ÚpopÚ
setdefaultr_rsrprqr4)rYÚrawÚunparsedÚparsedr6ÚheadersÚvalueÚvalid_encodingÚhÚchunksÚbinÚencodingÚraw_namervÚdescription_headers rÚ parse_emailr¢s?€ð 8:€CØ%'€Hä�$œÔÜ—‘×$Ñ$¬E¯L©L×,AÑ,AÐ$ÓB×KÑKÈDÓQ‰ä—‘×)Ñ)´·±×1FÑ1FÐ)ÓG×RÑRÐSWÓXˆô
˜&Ÿ+™+›-×(ˆð�z‰z‹|ˆð
—.‘. Ó&Ò,¨"ˆðˆðˆÛˆAô˜a¤%§,¡,×"5Ñ"5´sÐ!;Ô<Ð <Ð<ô˜!œUŸ\™\×0Ñ0Ô1ð:<�Ü%*§\¡\×%?Ñ%?ÀÖ%B‘M�C˜ð*ØŸ
™
 6¨8Ô4ð $*˜Ø—M‘M 3¨ /Õ2ð&Cð— ‘ œS¤§¡×!9Ñ!9¸&Ó!AÓBÕCð— ‘ ˜Q•ðGñPØ"ˆH�T‰NÙ ä(×,Ñ,¨TÓ2ˆØ Ð ð#ˆH�T‰NÙ ð ”~Ñ %¬#¨e«*¸ª/Ø! !™HˆC�‹MðœÑ
%Ø!ˆC�‹Mð ˜Ò
#¬¨E«
°aªÜ+¨E°!©HÓ5ˆC�‹Mð˜Ò
'ð
'Ü 3°EÓ :��H“
ð #ˆH�T‹Nði)ðt-ܘv tÓ,ˆñ ð Ñ#Ü%)¬#¨s¯w©w°}Ó/EÓ%FÐ"Ø×#Ñ# M°2Ó6×=Ñ=Ø'¨Ð1õð (Ñ*ؘÑ'×.Ñ.¨wÕ7à%,��MÒ"ô ” ˜SÓ ! 8Ð +Ð+øôQ.ò/à#+˜Ø).›ð/ûôJò
'Ø!&�˜”ð
'ûô ò
Ø×јM¨2Ó.×5Ñ5Ø × Ñ ¤j°´uÓ&=Ð Ó >ö
ð
ús7Å'K<ÉLÉ6 L%Ë<
L
Ì L
ÌL"Ì!L"Ì%AM0Í/M0)ú1.0ú1.1ú1.2ú2.1ú2.2z2.3ú2.4)r5r6rcóÚ—eZdZUdZded<ded<ded<ddœ dd „Zdd
„Zdd „Z d dd
„Zdd„Z dd„Z
d d„Z dd„Z dd„Z
d!d„Z d"d„Zd#d„Z d$d„Z d%d„Zd!d„Zy )&Ú
_ValidatoravValidate a metadata field.
All _process_*() methods correspond to a core metadata field. The method is
called with the field's raw value. If the raw value is valid it is returned
in its "enriched" form (e.g. ``version.Version`` for the ``Version`` field).
If the raw value is invalid, :exc:`InvalidMetadata` is raised (with a cause
as appropriate).
rr6r Ú_MetadataVersionÚaddedr£©r¬có—||_yrr­)rr¬s rrz_Validator.__init__æs €ð
ˆ�
rcó.—||_t||_yr)r6Ú_RAW_TO_EMAIL_MAPPINGr )rÚ_ownerr6s rÚ __set_name__z_Validator.__set_name__ís€ØˆŒ Ü-¨dÑ3ˆ�
rcóz—|j}|jj|j«}|jtvs|�" t |d|j›�«}||«}|||j< |j|j=tt|«S#t $rYŒBwxYw#t$rYŒ*wxYw)NÚ _process_)
Ú__dict__Ú_rawr‘r6Ú_REQUIRED_ATTRSÚgetattrÚAttributeErrorrbr r)rÚinstancer±ÚcacheršÚ converters rÚ__get__z_Validator.__get__ñsº€ð×!Ñ!ˆØ—
‘
×!Ñ! $§)¡)Ó,ˆð �9‰9œÑ '¨5Ð+<ð
)Ü07¸À È$Ï)É)ÈÐ>UÓ0V� ñ" %Ó(�à ˆˆd�i‰iÑð Ø—
‘
˜dŸi™iÐ(ô”A�u‹~Ðøô"ò
Ùð
ûôò Ù ð ús$ÁBÁ8B. B+Â*B+Â. B:Â9B:Nc óˆ—t|j|jdt|j«i««}||_|S)Nr/)r.r Ú
format_mapÚreprÚ __cause__)rrtÚcauserxs rÚ_invalid_metadataz_Validator._invalid_metadata s<€ôØ �M‰M˜3Ÿ>™>¨7´D¸¿¹Ó4GÐ*HÓIó
ˆðˆŒ