Ë c‡½jUpãó8—ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddl Z ddl Z ddl Z ddlZddlZddlZddlmZmZddlmZmZddlmZmZddlmZmZddlmZmZddlmZdd l m!Z!dd l"m#Z#dd l m$Z$dd l%m&Z&m'Z'm(Z(m)Z)gd ¢Z*Gd„de+«Z,Gd„d«Z-Gd„d«Z.Gd„de.«Z/Gd„de0«Z1Gd„dejd«Z3Gd„d«Z4Gd„d«Z5Gd„de5«Z6Gd „d!e#«Z7Gd"„d#«Z8Gd$„d%«Z9Gd&„d'«Z:Gd(„d)e7«Z;Gd*„d+e6«Zd.ej:fd/„Z?d0„Z@e j‚eej„d1«¬2«ZC d.e1fd3„ZDd4„ZEd5„ZFd.e'eGe&eGffd6„ZHd7„ZId8„ZJy)9éNé)Ú _adaptersÚ_meta)ÚFreezableDefaultDictÚPair)Ú method_cacheÚ pass_none)Úalways_iterableÚunique_everseen)ÚPackageMetadataÚ SimplePath)Úsuppress)Ú import_module)ÚMetaPathFinder)Ústarmap)ÚListÚMappingÚOptionalÚcast) Ú DistributionÚDistributionFinderr ÚPackageNotFoundErrorÚ distributionÚ distributionsÚ entry_pointsÚfilesÚmetadataÚpackages_distributionsÚrequiresÚversioncó&—eZdZdZd„Zed„«Zy)rzThe package was not found.có —d|j›�S)Nz"No package metadata was found for ©Úname©Úselfs ú4/usr/lib64/python3.12/importlib/metadata/__init__.pyÚ__str__zPackageNotFoundError.__str__3s€Ø3°D·I±I°;Ð?Ð?ócó"—|j\}|S©N)Úargs©r&r$s r'r$zPackageNotFoundError.name6s€à—)‘)‰ˆØˆ r)N)Ú__name__Ú __module__Ú __qualname__Ú__doc__r(Úpropertyr$©r)r'rr0s„Ù$ò@ðñóñr)rcó‚—eZdZdZej d«j «Zed„«Z e dd„«Z e d„«Z y)Ú Sectioneda˜ A simple entry point config parser for performance >>> for item in Sectioned.read(Sectioned._sample): ... print(item) Pair(name='sec1', value='# comments ignored') Pair(name='sec1', value='a = 1') Pair(name='sec1', value='b = 2') Pair(name='sec2', value='a = 2') >>> res = Sectioned.section_pairs(Sectioned._sample) >>> item = next(res) >>> item.name 'sec1' >>> item.value Pair(name='a', value='1') >>> item = next(res) >>> item.value Pair(name='b', value='2') >>> item = next(res) >>> item.name 'sec2' >>> item.value Pair(name='a', value='2') >>> list(res) [] zm [sec1] # comments ignored a = 1 b = 2 [sec2] a = 2 cóJ—d„|j||j¬«D«S)Nc3ó’K—|]?}|j�1|jtj|j«¬«–—ŒAy­w)N)Úvalue)r$Ú_replacerÚparser8)Ú.0Úsections r'Ú z*Sectioned.section_pairs..gs=èø€ð á<�Ø�|‰|Ð'ð × Ñ ¤4§:¡:¨g¯m©mÓ#<Ð × =Ù<ùs‚AA)Úfilter_)ÚreadÚvalid)ÚclsÚtexts r'Ú section_pairszSectioned.section_pairses%€ñ àŸ8™8 D°#·)±)˜8Ô<ó ð r)Nc#óK—t|ttj|j «««}d}|D]H}|j d«xr|j d«}|r|jd«}Œ;t||«–—ŒJy­w)NÚ[Ú]z[])ÚfilterÚmapÚstrÚstripÚ splitlinesÚ startswithÚendswithr)rBr>Úlinesr$r8Ú section_matchs r'r?zSectioned.readmsrèø€ä�w¤¤C§I¡I¨t¯©Ó/@Ó AÓBˆØˆÛˆEØ!×,Ñ,¨SÓ1ÒI°e·n±nÀSÓ6IˆMÙØ—{‘{ 4Ó(�ØÜ�t˜UÓ#Ó #ñ ùs‚BBcó.—|xr|jd« S)NÚ#)rL)Úlines r'r@zSectioned.validxs€àÒ0˜DŸO™O¨CÓ0Ð0Ð0r)r+) r.r/r0r1ÚtextwrapÚdedentÚlstripÚ_sampleÚ classmethodrCÚ staticmethodr?r@r3r)r'r5r5<sf„ñð8ˆh�o‰oð ó ÷ �fƒhð ðñ óð ðò$óð$ðñ1óñ1r)r5cóV—eZdZdZej ejded¬«Z d„Z y)ÚDeprecatedTuplea Provide subscript item access for backward compatibility. >>> recwarn = getfixture('recwarn') >>> ep = EntryPoint(name='name', value='value', group='group') >>> ep[:] ('name', 'value', 'group') >>> ep[0] 'name' >>> len(recwarn) 1 zAEntryPoint tuple interface is deprecated. Access members by name.é©Ú stacklevelcóH—|j«|j«|Sr+)Ú_warnÚ_key)r&Úitems r'Ú __getitem__zDeprecatedTuple.__getitem__“s€Ø � ‰ Œ Ø�y‰y‹{˜4Ñ Ð r)N) r.r/r0r1Ú functoolsÚpartialÚwarningsÚwarnÚDeprecationWarningr_rbr3r)r'rZrZ}s0„ñ ð ˆI× Ñ Ø� ‰ ØKØØô  €Eó!r)rZcóÖ—eZdZUdZej d«Z eed<eed<eed<dZ e ded<d „Z d „Z e d „«Ze d „«Ze d „«Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zy)Ú EntryPointa An entry point as defined by Python packaging conventions. See `the packaging docs on entry points `_ for more information. >>> ep = EntryPoint( ... name=None, group=None, value='package.module:attr [extra1, extra2]') >>> ep.module 'package.module' >>> ep.attr 'attr' >>> ep.extras ['extra1', 'extra2'] zH(?P[\w.]+)\s*(:\s*(?P[\w.]+)\s*)?((?P\[.*\])\s*)?$r$r8ÚgroupNrÚdistcó>—t|«j|||¬«y)N©r$r8rj©ÚvarsÚupdate)r&r$r8rjs r'Ú__init__zEntryPoint.__init__Äs€Ü ˆT‹ ×јt¨5¸ÐÕ>r)có—|jj|j«}t|j d««}t d|j d«xsdj d««}tjt||«S)z¦Load the entry point from its definition. If only a module is indicated by the value, return that module. Otherwise, return the named object. ÚmoduleNÚattrÚÚ.) ÚpatternÚmatchr8rrjrGÚsplitrcÚreduceÚgetattr)r&rxrsÚattrss r'ÚloadzEntryPoint.loadÇsi€ð — ‘ ×"Ñ" 4§:¡:Ó.ˆÜ˜uŸ{™{¨8Ó4Ó5ˆÜ�t˜eŸk™k¨&Ó1Ò7°R×>Ñ>¸sÓCÓDˆÜ×Ѥ¨°Ó7Ð7r)cón—|jj|j«}|jd«S)Nrs©rwrxr8rj©r&rxs r'rszEntryPoint.moduleÑs)€à— ‘ ×"Ñ" 4§:¡:Ó.ˆØ�{‰{˜8Ó$Ð$r)cón—|jj|j«}|jd«S)Nrtrr€s r'rtzEntryPoint.attrÖs)€à— ‘ ×"Ñ" 4§:¡:Ó.ˆØ�{‰{˜6Ó"Ð"r)cóž—|jj|j«}tjd|j d«xsd«S)Nz\w+Úextrasru)rwrxr8ÚreÚfindallrjr€s r'rƒzEntryPoint.extrasÛs9€à— ‘ ×"Ñ" 4§:¡:Ó.ˆÜ�z‰z˜& %§+¡+¨hÓ"7Ò"=¸2Ó>Ð>r)có<—t|«j|¬«|S)N©rkrn)r&rks r'Ú_forzEntryPoint._foràs€Ü ˆT‹ ×јtÐÔ$؈ r)c ó~‡—ˆfd„|D«}tttj|j «|««S)a$ EntryPoint matches the given parameters. >>> ep = EntryPoint(group='foo', name='bar', value='bing:bong [extra1, extra2]') >>> ep.matches(group='foo') True >>> ep.matches(name='bar', value='bing:bong [extra1, extra2]') True >>> ep.matches(group='foo', name='other') False >>> ep.matches() True >>> ep.matches(extras=['extra1', 'extra2']) True >>> ep.matches(module='bing') True >>> ep.matches(attr='bong') True c3ó6•K—|]}t‰|«–—Œy­wr+©r{)r;Úparamr&s €r'r=z%EntryPoint.matches..øsøèø€Ð:±6¨%”˜˜u×%±6ùsƒ)ÚallrHÚoperatorÚeqÚvalues)r&Úparamsr|s` r'ÚmatcheszEntryPoint.matchesäs-ø€ó(;±6Ó:ˆÜ”3”x—{‘{ F§M¡M£O°UÓ;Ó<ÐðBØ—Z‘Z�N !ð %ð r)có4—t|j««Sr+)Úhashr`r%s r'Ú__hash__zEntryPoint.__hash__ s€Ü�D—I‘I“KÓ Ð r))r.r/r0r1r„ÚcompilerwrIÚ__annotations__rkrrqr}r2rsrtrƒrˆr’r`r˜ršr�r r£r3r)r'riri˜s²…ñð ˆb�j‰jð %ó€Gð ð ƒIØ ƒJØ ƒJà%)€Dˆ(�>Ñ "Ó)ò?ò8ðñ%óð%ðñ#óð#ðñ?óð?òò=ò.1ò*ò+òBò ó !r)ricó`—eZdZdZdZd„Zd„Zed„«Zed„«Z e d„«Z e d„«Z y ) Ú EntryPointszC An immutable collection of selectable EntryPoint objects. r3có|— tt|j|¬«««S#t$r t |«‚wxYw)z; Get the EntryPoint in self matching name. r#)ÚnextÚiterÚselectÚ StopIterationÚKeyErrorr-s r'rbzEntryPoints.__getitem__s;€ð !Üœ˜TŸ[™[¨d˜[Ó3Ó4Ó5Ð 5øÜò !ܘ4“.Ð ð !ús‚#&¦;c ó,‡—tˆfd„|D««S)zv Select entry points from self that match the given parameters (typically group and/or name). c3óH•K—|]}|jdi‰¤ŽsŒ|–—Œy­w)Nr3)r’)r;Úepr‘s €r'r=z%EntryPoints.select..&s"øèø€ÐE© "° °· ± Ñ0D¸VÓ0Dœ2©ùsƒ"›")r§)r&r‘s `r'r«zEntryPoints.select!sø€ô ÓE©ÓEÓEÐEr)có@—|D�chc]}|j’Œc}Scc}w)zB Return the set of all names of all entry points. r#©r&r°s r'ÚnameszEntryPoints.names(s €ñ #'Ó'¡$˜B�—“ $Ñ'Ð'ùÒ'ó…có@—|D�chc]}|j’Œc}Scc}w)zC Return the set of all groups of all entry points. )rjr²s r'ÚgroupszEntryPoints.groups/s €ñ $(Ó(¡4˜R�—“ 4Ñ(Ð(ùÒ(r´cóD‡—|ˆfd„|j|«D««S)Nc3ó@•K—|]}|j‰«–—Œy­wr+)rˆ)r;r°rks €r'r=z-EntryPoints._from_text_for..8søèø€Ð@Ñ+? R�2—7‘7˜4—=Ñ+?ùóƒ)Ú _from_text)rArBrks `r'Ú_from_text_forzEntryPoints._from_text_for6sø€áÓ@¨3¯>©>¸$Ô+?Ó@Ó@Ð@r)cóB—d„tj|xsd«D«S)Nc3óœK—|]D}t|jj|jj|j¬«–—ŒFy­w)rmN)rir8r$)r;ras r'r=z)EntryPoints._from_text..<s:èø€ð á;�ô ˜DŸJ™JŸO™O°4·:±:×3CÑ3CÈ4Ï9É9× UÐ UÙ;ùs‚A A ru)r5rC)rBs r'rºzEntryPoints._from_text:s#€ñ ä!×/Ñ/°² ¸Ô;ó ð r)N)r.r/r0r1Ú __slots__rbr«r2r³r¶rWr»rXrºr3r)r'r§r§sk„ñð€Iò!òFðñ(óð(ð ñ)óð)ð ñAóðAðñ óñ r)r§có$—eZdZdZdd„Zd„Zd„Zy)Ú PackagePathz"A reference to a path in a packagecóŽ—|j«j|¬«5}|j«cddd«S#1swYyxYw)N©Úencoding©ÚlocateÚopenr?)r&rÃÚstreams r'Ú read_textzPackagePath.read_textEs0€Ø �[‰[‹]× Ñ ¨Ð Ô 2°fØ—;‘;“=÷3× 2Ò 2ús ¡;»AcóŒ—|j«jd«5}|j«cddd«S#1swYyxYw)NÚrbrÄ)r&rÇs r'Ú read_binaryzPackagePath.read_binaryIs-€Ø �[‰[‹]× Ñ  Ô %¨Ø—;‘;“=÷&× %Ò %ús  :ºAcó8—|jj|«S)z'Return a path-like object for this path)rkÚ locate_filer%s r'rÅzPackagePath.locateMs€à�y‰y×$Ñ$ TÓ*Ð*r)N)úutf-8)r.r/r0r1rÈrËrÅr3r)r'rÀrÀBs„Ù,ó!ò!ó+r)rÀcó—eZdZd„Zd„Zy)ÚFileHashcóB—|jd«\|_}|_y)NÚ=)Ú partitionÚmoder8)r&ÚspecÚ_s r'rqzFileHash.__init__Ss€Ø#'§>¡>°#Ó#6Ñ ˆŒ �1�d•jr)có<—d|j›d|j›d�S)Nz)rÔr8r%s r'r zFileHash.__repr__Vs€Ø! $§)¡) ¨H°T·Z±Z°LÀÐBÐBr)N)r.r/r0rqr r3r)r'rÐrÐRs „ò7óCr)rÐcó‡—eZdZˆfd„ZˆxZS)ÚDeprecatedNonAbstractc ó.•—tj|«D��chc]}t|«D]}|’ŒŒ}}}|D�chc]}tt||«dd«r|’Œ}}|rt j d|›�t d¬«t‰|�!|«Scc}}wcc}w)NÚ__isabstractmethod__FzUnimplemented abstract methods r[r\) ÚinspectÚgetmroror{rerfrgÚsuperÚ__new__)rAr,ÚkwargsÚsubclassr$Ú all_namesÚabstractÚ __class__s €r'ràzDeprecatedNonAbstract.__new__[s§ø€ä!(§¡°Ô!4ô Ù!4�XÄÀhƸŠDÀˆDÐ!4ð ñ ñ "ó á!�Ü”w˜s DÓ)Ð+AÀ5ÔIò Ø!ð ð ñ Ü �M‰MØ1°(°Ð<Ü"Øõ ô ‰w‰˜sÓ#Ð#ùó ùò s šB º B)r.r/r0ràÚ __classcell__©rås@r'rÚrÚZs ø„÷$ð$r)rÚcór—eZdZdZej deefd„«Zej d„«Z e defd„«Z e d„«Z e d„«Ze d „«Zedej$fd „«Zed „«Zed „«Zed „«Zed„«Zed„«Zd„Zd„Zd„Zed„«Zd„Zd„Ze d„«Ze d„«Z y)rzA Python distribution package.Úreturncó—y)z¶Attempt to load metadata file given by the name. :param filename: The name of the file in the distribution info. :return: The text if found, otherwise None. Nr3©r&Úfilenames r'rÈzDistribution.read_textpó�r)có—y)z[ Given a path to a file in this distribution, return a path to it. Nr3©r&Úpaths r'rÍzDistribution.locate_filexrír)r$có„—|s td«‚ t|j|¬««S#t$r t |«‚wxYw)a®Return the Distribution for the given package name. :param name: The name of the distribution package to search for. :return: The Distribution instance (or subclass thereof) for the named package, if found. :raises PackageNotFoundError: When the named package's distribution metadata cannot be found. :raises ValueError: When an invalid value is supplied for name. z A distribution name is required.r#)Ú ValueErrorr©Údiscoverr¬r)rAr$s r'Ú from_namezDistribution.from_namesH€ñÜÐ?Ó@Ð @ð -ܘŸ ™ ¨$˜ Ó/Ó0Ð 0øÜò -Ü& tÓ,Ð ,ð -ús�*ª?c ó䇗|jdd«Š‰r |r td«‚‰xstjdi|¤ŽŠtj j ˆfd„|j«D««S)aReturn an iterable of Distribution objects for all packages. Pass a ``context`` or pass keyword arguments for constructing a context. :context: A ``DistributionFinder.Context`` object. :return: Iterable of Distribution objects for all packages. ÚcontextNz cannot accept context and kwargsc3ó.•K—|] }|‰«–—Œy­wr+r3)r;Úresolverrös €r'r=z(Distribution.discover..Ÿsøèø€ð- Ù.G (‰H�W× Ñ.Gùsƒr3)ÚpopròrÚContextÚ itertoolsÚchainÚ from_iterableÚ_discover_resolvers)rArárös @r'rózDistribution.discover‘slø€ð—*‘*˜Y¨Ó-ˆÙ ‘vÜÐ?Ó@Ð @ØÒAÔ/×7Ñ7ÑA¸&ÑAˆÜ�‰×,Ñ,ó- Ø.1×.EÑ.EÔ.Gó- ó ð r)có>—ttj|««S)z°Return a Distribution for the indicated metadata path :param path: a string or path-like object :return: a concrete Distribution instance for the path )ÚPathDistributionÚpathlibÚPath©rðs r'ÚatzDistribution.at£s€ô ¤§ ¡ ¨TÓ 2Ó3Ð3r)cóH—d„tjD«}td|«S)z#Search the meta_path for resolvers.c3ó6K—|]}t|dd«–—Œy­w)Úfind_distributionsNr‹)r;Úfinders r'r=z3Distribution._discover_resolvers..¯sèø€ð ÙFS¸FŒG�FÐ0°$× 7Ámùs‚N)ÚsysÚ meta_pathrG)Údeclareds r'rþz Distribution._discover_resolvers¬s$€ñ ÜFIÇmÂmó ˆô�d˜HÓ%Ð%r)cóà—|jd«xs$|jd«xs|jd«}tt|«}tjt j |««S)z°Return the parsed metadata for this Distribution. The returned object will have keys that name the various bits of metadata. See PEP 566 for details. ÚMETADATAzPKG-INFOru)rÈrrIrÚMessageÚemailÚmessage_from_string)r&Úopt_textrBs r'rzDistribution.metadata´sc€ð �N‰N˜:Ó &ò "Ø�~‰~˜jÓ)ò "ð �~‰~˜bÓ!ð ô”C˜Ó"ˆÜ× Ñ ¤×!:Ñ!:¸4Ó!@ÓAÐAr)có —|jdS)z8Return the 'Name' metadata for the distribution package.ÚName©rr%s r'r$zDistribution.nameÆs€ð�}‰}˜VÑ$Ð$r)có@—tj|j«S)z(Return a normalized version of the name.)ÚPreparedÚ normalizer$r%s r'Ú_normalized_namezDistribution._normalized_nameËs€ô×!Ñ! $§)¡)Ó,Ð,r)có —|jdS)z;Return the 'Version' metadata for the distribution package.ÚVersionrr%s r'r zDistribution.versionÐs€ð�}‰}˜YÑ'Ð'r)cóL—tj|jd«|«S)Nzentry_points.txt)r§r»rÈr%s r'rzDistribution.entry_pointsÕs€ä×)Ñ)¨$¯.©.Ð9KÓ*LÈdÓSÐSr)c󯇇—dˆfd„ Štˆfd„«}td„«}||‰j«xs"‰j«xs‰j«««S)aZFiles in this distribution. :return: List of PackagePath for this distribution or None Result is `None` if the metadata file that enumerates files (i.e. RECORD for dist-info, or installed-files.txt or SOURCES.txt for egg-info) is missing. Result may be empty if the metadata exists but is empty. có|•—t|«}|r t|«nd|_|r t|«nd|_‰|_|Sr+)rÀrÐr¢ÚintÚsizerk)r$r¢Úsize_strÚresultr&s €r'Ú make_filez%Distribution.files..make_fileås7ø€Ü  Ó&ˆFÙ,0œ( 4œ.°dˆFŒKÙ+3œ#˜hœ-¸ˆFŒK؈FŒK؈Mr)cóB•—t‰tj|««Sr+)rÚcsvÚreader)rNr"s €r'Ú make_filesz&Distribution.files..make_filesìsø€ä˜9¤c§j¡j°Ó&7Ó8Ð 8r)có.—ttd„|««S)Ncó>—|j«j«Sr+)rÅÚexistsrs r'Úz@Distribution.files..skip_missing_files..òs€¨D¯K©K«M×,@Ñ,@Ô,Br))ÚlistrG)Ú package_pathss r'Úskip_missing_filesz.Distribution.files..skip_missing_filesðs€äœÑBÀMÓRÓSÐ Sr))NN)r Ú_read_files_distinfoÚ_read_files_egginfo_installedÚ_read_files_egginfo_sources)r&r&r-r"s` @r'rzDistribution.filesÙswù€õ ô ó 9ó ð 9ô ñ Tó ð Tñ"Ù Ø×)Ñ)Ó+ò6Ø×5Ñ5Ó7ò6à×3Ñ3Ó5ó ó ð r)cóL—|jd«}|xr|j«S)z* Read the lines of RECORD ÚRECORD)rÈrK©r&rBs r'r.z!Distribution._read_files_distinfoüs$€ð�~‰~˜hÓ'ˆØÒ)˜Ÿ™Ó)Ð)r)c󬇇—‰jd«}t‰dd«Š|r‰syˆˆfd„|j«D«}tdj|«S)aÁ Read installed-files.txt and return lines in a similar CSV-parsable format as RECORD: each file must be placed relative to the site-packages directory and must also be quoted (since file names can contain literal commas). This file is written when the package is installed by pip, but it might not be written for other installation methods. Assume the file is accurate if it exists. zinstalled-files.txtÚ_pathNc3ó¼•K—|]S}‰|z j«j‰jd«j«d¬«j«–—ŒUy­w)ruT)Úwalk_upN)ÚresolveÚ relative_torÍÚas_posix)r;r$r&Úsubdirs €€r'r=z=Distribution._read_files_egginfo_installed..sVøèø€ð ñ *�ð �d‰]ß ‰W‹Yß ‰[˜×)Ñ)¨"Ó-×5Ñ5Ó7Àˆ[Ó Fß ‰X‹Zó ñ*ùsƒAAú"{}")rÈr{rKrHÚformat)r&rBÚpathsr;s` @r'r/z*Distribution._read_files_egginfo_installedsWù€ð�~‰~Ð3Ó4ˆô˜˜w¨Ó-ˆÙ™6Ø ô ð Ÿ™Ô)ó  ˆô�6—=‘= %Ó(Ð(r)cót—|jd«}|xr$tdj|j««S)aö Read SOURCES.txt and return lines in a similar CSV-parsable format as RECORD: each file name must be quoted (since it might contain literal commas). Note that SOURCES.txt is not a reliable source for what files are installed by a package. This file is generated for a source archive, and the files that are present there (e.g. setup.py) may not correctly reflect the files that are present after the package has been installed. z SOURCES.txtr<)rÈrHr=rKr3s r'r0z(Distribution._read_files_egginfo_sourcess/€ð�~‰~˜mÓ,ˆØÒ=œ˜FŸM™M¨4¯?©?Ó+<Ó=Ð=r)cód—|j«xs|j«}|xr t|«S)z6Generated requirements specified for this Distribution)Ú_read_dist_info_reqsÚ_read_egg_info_reqsr+)r&Úreqss r'rzDistribution.requires.s/€ð×(Ñ(Ó*ÒH¨d×.FÑ.FÓ.HˆØÒ"œ˜T› Ð"r)có8—|jjd«S)Nz Requires-Dist)rÚget_allr%s r'rAz!Distribution._read_dist_info_reqs4s€Ø�}‰}×$Ñ$ _Ó5Ð5r)cóZ—|jd«}t|j«|«S)Nz requires.txt)rÈr Ú_deps_from_requires_text)r&Úsources r'rBz Distribution._read_egg_info_reqs7s(€Ø—‘ Ó/ˆØ7Œy˜×6Ñ6Ó7¸Ó?Ð?r)cóJ—|jtj|««Sr+)Ú%_convert_egg_info_reqs_to_simple_reqsr5r?)rArHs r'rGz%Distribution._deps_from_requires_text;s€à×8Ñ8¼¿¹ÈÓ9OÓPÐPr)c#óž‡K—d„Šˆfd„}d„}|D]8}||j«}|j|z||j«z–—Œ:y­w)aÄ Historically, setuptools would solicit and store 'extra' requirements, including those with environment markers, in separate sections. More modern tools expect each dependency to be defined separately, with any relevant extras and environment markers attached directly to that requirement. This method converts the former to the latter. See _test_deps_from_requires_text for an example. có—|xrd|›d�S)Nz extra == "Ú"r3r#s r'Úmake_conditionzJDistribution._convert_egg_info_reqs_to_simple_reqs..make_conditionKs€ØÒ0˜j¨¨¨aÐ0Ð 0r)c 󸕗|xsd}|jd«\}}}|r|rd|›d�}ttd|‰|«g««}|rddj|«zSdS)NruÚ:Ú(rŸz; z and )rÓr+rGÚjoin)r<ÚextraÚsepÚmarkersÚ conditionsrNs €r'Ú quoted_markerzIDistribution._convert_egg_info_reqs_to_simple_reqs..quoted_markerNskø€Ø’m ˆGØ")×"3Ñ"3°CÓ"8Ñ ˆE�3˜Ù™Ø˜g˜Y a˜.�Üœf T¨G±^ÀEÓ5JÐ+KÓLÓMˆJÙ6@�4˜'Ÿ,™, zÓ2Ñ2Ð HÀbÐ Hr)có—dd|vzS)z� PEP 508 requires a space between the url_spec and the quoted_marker. Ref python/importlib_metadata#357. Ú Ú@r3)Úreqs r'Ú url_req_spacezIDistribution._convert_egg_info_reqs_to_simple_reqs..url_req_spaceVs€ð ˜# ˜*Ñ%Ð %r)N)r8r$)ÚsectionsrWr\r<ÚspacerNs @r'rJz2Distribution._convert_egg_info_reqs_to_simple_reqs?sNøèø€ò 1ô Iò &ó ˆGÙ! '§-¡-Ó0ˆEØ—-‘- %Ñ'©-¸¿ ¹ Ó*EÑEÓ Eñ ùsƒA A N)!r.r/r0r1ÚabcÚabstractmethodrrIrÈrÍrWrôrórXrrþr2rr rr$rr rrr.r/r0rrArBrGrJr3r)r'rrms~„Ù(à×Ñð  X¨c¡]ò óð ð ×Ññ óð ð ð-˜Sò-óð-ð"ñ óð ð"ñ4óð4ðñ&óð&ððB˜%×/Ñ/òBóðBð"ñ%óð%ðñ-óð-ðñ(óð(ðñTóðTðñ  óð  òD*ò)ò8 >ðñ#óð#ò 6ò@ðñQóðQðñ Fóñ Fr)rcóV—eZdZdZGd„d«Zej e«fd„«Zy)rzJ A MetaPathFinder capable of discovering installed distributions. có,—eZdZdZdZ d„Zed„«Zy)úDistributionFinder.Contextaw Keyword arguments presented by the caller to ``distributions()`` or ``Distribution.discover()`` to narrow the scope of a search for distributions in all DistributionFinders. Each DistributionFinder may expect any parameters and should attempt to honor the canonical parameters defined below when appropriate. Nc ó8—t|«j|«yr+rn)r&rás r'rqz#DistributionFinder.Context.__init__zs€Ü �‹J× Ñ ˜fÕ %r)cóT—t|«jdtj«S)zü The sequence of directory path that a distribution finder should search. Typically refers to Python installed package paths such as "site-packages" directories and defaults to ``sys.path``. rð)roÚgetr rðr%s r'rðzDistributionFinder.Context.path}s€ô˜“:—>‘> &¬#¯(©(Ó3Ð 3r))r.r/r0r1r$rqr2rðr3r)r'rúrchs,„ñ ðˆð ò  &ð ñ 4ó ñ 4r)rúcó—y)zÝ Find distributions. Return an iterable of all Distribution instances capable of loading the metadata for packages matching the ``context``, a DistributionFinder.Context instance. Nr3)r&rös r'rz%DistributionFinder.find_distributionsˆrír)N)r.r/r0r1rúr_r`rr3r)r'rrcs1„ñ÷4ñ4ð@ ×ÑÙ)0«ò óñ r)rc󈇗eZdZdZej «ˆfd„«Zd„Zd„Zd„Z d„Z d„Z e d„«Z ed „«ZˆxZS) ÚFastPathzs Micro-optimized class for searching a path for children. >>> FastPath('').children() ['...'] có"•—t‰|�|«Sr+)rßrà)rAÚrootrås €r'ràzFastPath.__new__œsø€ä‰w‰˜sÓ#Ð#r)có—||_yr+)rk)r&rks r'rqzFastPath.__init__ s €Øˆ� r)cóB—tj|j|«Sr+)rrrk)r&Úchilds r'ÚjoinpathzFastPath.joinpath£s€Ü�|‰|˜DŸI™I uÓ-Ð-r)cóþ—tt«5tj|jxsd«cddd«S#1swYnxYwtt«5|j «cddd«S#1swYgSxYw©Nrv)rÚ ExceptionÚosÚlistdirrkÚ zip_childrenr%s r'ÚchildrenzFastPath.children¦sP€Ü ”iÕ Ü—:‘:˜dŸi™iÒ.¨3Ó/÷!× Ò úä ”iÕ Ø×$Ñ$Ó&÷!× Ñ àˆ ús�#=½AÁA2Á2A<cóΗtj|j«}|jj«}|j|_t j d„|D««S)Nc3óbK—|]'}|jtjd«d–—Œ)y­w)rrN)ryÚ posixpathrT)r;rns r'r=z(FastPath.zip_children..²s%èø€ÐQÉ5À%˜UŸ[™[¬¯©¸Ó:¸1Õ=É5ùs‚-/)ÚzipfilerrkÚnamelistroÚdictÚfromkeys)r&Úzip_pathr³s r'ruzFastPath.zip_children­sH€Ü—<‘< § ¡ Ó*ˆØ— ‘ ×&Ñ&Ó(ˆØ ×)Ñ)ˆŒ ä�}‰}ÑQÉ5ÓQÓQÐQr)cóV—|j|j«j|«Sr+)ÚlookupÚmtimeÚsearchr-s r'r‚zFastPath.search´s €Ø�{‰{˜4Ÿ:™:Ó&×-Ñ-¨dÓ3Ð3r)cóÔ—tt«5tj|j«j cddd«S#1swYnxYw|j j«yr+)rÚOSErrorrsÚstatrkÚst_mtimer€Ú cache_clearr%s r'r�zFastPath.mtime·s<€ä ”gÕ Ü—7‘7˜4Ÿ9™9Ó%×.Ñ.÷× Ò úà � ‰ ×ÑÕ!s �)AÁA có—t|«Sr+)ÚLookup)r&r�s r'r€zFastPath.lookup½s €ä�d‹|Ðr))r.r/r0r1rcÚ lru_cacheràrqrorvrur‚r2r�rr€rærçs@r'riri“siø„ñð€Y×ÑÓó$óð$òò.òòRò4ðñ"óð"ð ñóôr)ricó—eZdZdefd„Zd„Zy)r‰rðcól—tjj|j«j «}|j d«}t t«|_t t«|_ |j«D]ý}|j «}|j d«ri|jd«djd«d}tj|«}|j|j|j!|««Œ�|sŒ�|dk(sŒ–|jd«djd«d}tj#|«}|j|j|j!|««Œÿ|jj%«|jj%«y)Nz.egg©z .dist-infoz .egg-inforvrÚ-zegg-info)rsrðÚbasenamerkÚlowerrMrr+ÚinfosÚeggsrvÚ rpartitionrÓrrÚappendroÚlegacy_normalizeÚfreeze) r&rðÚbaseÚ base_is_eggrnÚlowr$Ú normalizedÚlegacy_normalizeds r'rqzLookup.__init__ÃsE€Ü�w‰w×Ñ § ¡ Ó*×0Ñ0Ó2ˆØ—m‘m FÓ+ˆ Ü)¬$Ó/ˆŒ Ü(¬Ó.ˆŒ à—]‘]–_ˆEØ—+‘+“-ˆCØ�|‰|Ð7Ô8à—~‘~ cÓ*¨1Ñ-×7Ñ7¸Ó<¸QÑ?�Ü%×/Ñ/°Ó5� Ø— ‘ ˜:Ñ&×-Ñ-¨d¯m©m¸EÓ.BÕCÚ ¨ Ó!2Ø—‘ sÓ+¨AÑ.×8Ñ8¸Ó=¸aÑ@�Ü$,×$=Ñ$=¸dÓ$CÐ!Ø— ‘ Ð+Ñ,×3Ñ3°D·M±MÀ%Ó4HÕIð%ð � ‰ ×ÑÔØ � ‰ ×ÑÕr)cóv—|r|j|jn6tjj |jj ««}|r|j |jn6tjj |j j ««}tj||«Sr+)r‘ršrûrürýr�r’r›)r&Úpreparedr‘r’s r'r‚z Lookup.searchØs�€ñð �J‰J�x×*Ñ*Ò +ä—‘×.Ñ.¨t¯z©z×/@Ñ/@Ó/BÓCð ñð �I‰I�h×0Ñ0Ò 1ä—‘×.Ñ.¨t¯y©y×/?Ñ/?Ó/AÓBð ô �‰˜u dÓ+Ð+r)N)r.r/r0rirqr‚r3r)r'r‰r‰Âs„ð˜Xóó* ,r)r‰cóD—eZdZdZdZdZd„Zed„«Zed„«Z d„Z y)rzE A prepared search for metadata on a possibly-named package. Ncóp—||_|€y|j|«|_|j|«|_yr+)r$rršr•r›r-s r'rqzPrepared.__init__îs4€ØˆŒ Ø ˆ<Ø ØŸ.™.¨Ó.ˆŒØ!%×!6Ñ!6°tÓ!<ˆÕr)cól—tjdd|«j«jdd«S)zC PEP 503 normalization plus dashes as underscores. z[-_.]+rŽrÖ)r„Úsubr�Úreplacer#s r'rzPrepared.normalizeõs-€ô �v‰v�i  dÓ+×1Ñ1Ó3×;Ñ;¸CÀÓEÐEr)cóB—|j«jdd«S)z| Normalize the package name as found in the convention in older packaging tools versions and specs. rŽrÖ)r�r¢r#s r'r•zPrepared.legacy_normalizeüs€ð �z‰z‹|×#Ñ# C¨Ó-Ð-r)có,—t|j«Sr+)Úboolr$r%s r'Ú__bool__zPrepared.__bool__s€Ü�D—I‘I‹Ðr)) r.r/r0r1ršr›rqrXrr•r¦r3r)r'rræsH„ñð€JØÐò=ðñFóðFð ñ.óð.ór)rcó\—eZdZeej «fd„«Zed„«Zed„«Zy)ÚMetadataPathFindercón—|j|j|j«}tt|«S)a  Find distributions. Return an iterable of all Distribution instances capable of loading the metadata for packages matching ``context.name`` (or all names if ``None`` indicated) along the paths in the list of directories ``context.path``. )Ú _search_pathsr$rðrHr)rAröÚfounds r'rz%MetadataPathFinder.find_distributions s,€ð×!Ñ! '§,¡,°· ± Ó=ˆÜÔ# UÓ+Ð+r)c󆇗t|«Štjjˆfd„t t |«D««S)z1Find metadata directories in paths heuristically.c3ó@•K—|]}|j‰«–—Œy­wr+)r‚)r;rðr�s €r'r=z3MetadataPathFinder._search_paths..søèø€ð- Ù.B dˆD�K‰K˜× !Ñ.Bùr¹)rrûrürýrHri)rAr$r>r�s @r'rªz MetadataPathFinder._search_pathss9ø€ô˜D“>ˆÜ�‰×,Ñ,ó- Ü.1´(¸EÔ.Bó- ó ð r)có@—tjj«yr+)riràr‡)rAs r'Úinvalidate_cachesz$MetadataPathFinder.invalidate_cachess€ä×Ñ×$Ñ$Õ&r)N) r.r/r0rWrrúrrªr¯r3r)r'r¨r¨sH„ØØ(:×(BÑ(BÓ(Dò ,óð ,ðñ óð ðñ'óñ'r)r¨c󆇗eZdZdefd„Zd„Zej je_d„Ze ˆfd„«Z e d„«Z ˆxZ S)rrðcó—||_y)zfConstruct a distribution. :param path: SimplePath indicating the metadata directory. N)r5rïs r'rqzPathDistribution.__init__$s €ð ˆ� r)cóÊ—tttttt «5|j j|«jd¬«cddd«S#1swYyxYw)NrÎrÂ) rÚFileNotFoundErrorÚIsADirectoryErrorr­ÚNotADirectoryErrorÚPermissionErrorr5rorÈrës r'rÈzPathDistribution.read_text+sK€Ü Ü Ü Ü Ü Ü õ  ð—:‘:×&Ñ& xÓ0×:Ñ:ÀGÐ:ÓL÷ ÷ ò ús ¤+AÁA"có4—|jj|z Sr+)r5Úparentrïs r'rÍzPathDistribution.locate_file7s€Ø�z‰z× Ñ  4Ñ'Ð'r)cóÜ•—tjjt|j««}t t j«|j|««xs t‰|�(S)zz Performance optimization: where possible, resolve the normalized name from the file system path. ) rsrðr�rIr5r rrÚ_name_from_stemrßr)r&Ústemrås €r'rz!PathDistribution._normalized_name:sSø€ô �w‰w×Ѥ D§J¡J£Ó0ˆà )ŒI”h×(Ñ(Ó )¨$×*>Ñ*>¸tÓ*DÓ Eò (܉wÑ'ð r)có~—tjj|«\}}|dvry|jd«\}}}|S)a7 >>> PathDistribution._name_from_stem('foo-3.0.egg-info') 'foo' >>> PathDistribution._name_from_stem('CherryPy-3.0.dist-info') 'CherryPy' >>> PathDistribution._name_from_stem('face.egg-info') 'face' >>> PathDistribution._name_from_stem('foo.bar') r�NrŽ)rsrðÚsplitextrÓ)r»rìÚextr$rTÚrests r'rºz PathDistribution._name_from_stemFsC€ôŸ™×(Ñ(¨Ó.‰ ˆ�#Ø Ð1Ñ 1Ø Ø"×,Ñ,¨SÓ1‰ˆˆc�4؈ r))r.r/r0r rqrÈrr1rÍr2rrXrºrærçs@r'rr#sXø„ð˜ZóòMð%×.Ñ.×6Ñ6€IÔò(ðó  óð  ðñóôr)rcó,—tj|«S)zÎGet the ``Distribution`` instance for the named package. :param distribution_name: The name of the distribution package as a string. :return: A ``Distribution`` instance (or subclass thereof). )rrô©Údistribution_names r'rrXs€ô × !Ñ !Ð"3Ó 4Ð4r)c ó,—tjdi|¤ŽS)z|Get all ``Distribution`` instances in the current environment. :return: An iterable of ``Distribution`` instances. r3)rró)rás r'rras€ô × Ñ Ñ * 6Ñ *Ð*r)récó@—tj|«jS)z¹Get the metadata for the named package. :param distribution_name: The name of the distribution package to query. :return: A PackageMetadata containing the parsed metadata. )rrôrrÁs r'rris€ô × !Ñ !Ð"3Ó 4× =Ñ =Ð=r)có,—t|«jS)zìGet the version string for the named package. :param distribution_name: The name of the distribution package to query. :return: The version string for the package as defined in the package's "Version" metadata key. )rr rÁs r'r r rs€ô Ð)Ó *× 2Ñ 2Ð2r)r)Úkeyc ó¦—tjjd„tt ««D««}t |«j di|¤ŽS)aReturn EntryPoint objects for all installed packages. Pass selection parameters (group or name) to filter the result to entry points matching those properties (see EntryPoints.select()). :return: EntryPoints for all installed packages. c3ó4K—|]}|j–—Œy­wr+)r)r;rks r'r=zentry_points..Žsèø€ð(Ù&>˜dˆ×ÕÑ&>ùs‚r3)rûrürýÚ_uniquerr§r«)r‘Úepss r'rr…sI€ô �/‰/× 'Ñ 'ñ(Ü&-¬m«oÔ&>ó(ó €Cð #Œ;�sÓ × "Ñ "Ñ , VÑ ,Ð,r)có,—t|«jS)z·Return a list of files for the named package. :param distribution_name: The name of the distribution package to query. :return: List of files composing the distribution. )rrrÁs r'rr”s€ô Ð)Ó *× 0Ñ 0Ð0r)có,—t|«jS)z¡ Return a list of requirements for the named package. :return: An iterator of requirements, suitable for packaging.requirement.Requirement. )rrrÁs r'rr�s€ô Ð)Ó *× 3Ñ 3Ð3r)cóä—tjt«}t«D]@}t |«xs t |«D]#}||j |jd«Œ%ŒBt|«S)zï Return a mapping of top-level packages to their distributions. >>> import collections.abc >>> pkgs = packages_distributions() >>> all(isinstance(dist, collections.abc.Sequence) for dist in pkgs.values()) True r) Ú collectionsÚ defaultdictr+rÚ_top_level_declaredÚ_top_level_inferredr”rr|)Ú pkg_to_distrkÚpkgs r'rr§sg€ô×)Ñ)¬$Ó/€KÜ–ˆÜ& tÓ,ÒIÔ0CÀDÓ0IÒIˆCØ ˜Ñ × #Ñ # D§M¡M°&Ñ$9Õ :ñJð ô � Ó Ðr)cóH—|jd«xsdj«S)Nz top_level.txtru)rÈryr‡s r'rÐrиs€Ø �N‰N˜?Ó +Ò 1¨r× 8Ñ 8Ó :Ð:r)cóô—t|j«D�chc]>}t|j«dkDr|jdnt j |«’Œ@}}t d„«}t||«Scc}w)Nrrcó —d|vSrqr3r#s r'Úimportable_namez,_top_level_inferred..importable_nameÂs €à˜$ˆÐr))r rÚlenÚpartsrÝÚ getmodulenamer rG)rkÚfÚ opt_namesr×s r'rÑrѼs|€ô! §¡Ô,óá,ˆAô˜!Ÿ'™'“l QÒ&ˆ�‰�Š ¬G×,AÑ,AÀ!Ó,DÑDØ,ððô ñóðô �/ 9Ó -Ð-ùòs˜AA5)Krsr„r_r$r rrrzrŽrSrercrûryÚ contextlibrÎrÝrurrÚ _collectionsrrÚ _functoolsrr Ú _itertoolsr r r r rÚ importlibrÚ importlib.abcrrÚtypingrrrrÚ__all__ÚModuleNotFoundErrorrr5rZriÚtupler§Ú PurePosixPathrÀrÐrÚrrrir‰rr¨rrrrr rdÚ attrgetterrÉrrrrIrrÐrÑr3r)r'Úrés§ðÛ Û Û Û Û Û ÛÛÛÛÛÛÛÛÛÛÛçß4ß/ß8ß.åÝ#Ý(Ýß0Ó0ò €ô Ð.ô ÷>1ñ>1÷B!ñ!ô6v!�ôv!ôr. �%ô. ôb +�'×'Ñ'ô +÷ CñC÷$ñ$ô&sFÐ(ôsFôl- ˜ô- ÷`,ñ,÷^!,ñ!,÷HñôD'Ð+ô'ô62�|ô2òj5ò+ð> 5×#8Ñ#8ó>ò3ð ˆ)× Ñ ØØˆ×ÑÐ.Ó/ô €ðð -˜kó -ò1ò4𠨨T°#©Y¨Ñ 7óò";ó .r)