/opt/cloudlinux/venv/lib/python3.11/site-packages/distlib/__pycache__
NameSizeModeActions
compat.cpython-311.pyc524130644editdlrm
database.cpython-311.pyc721940644editdlrm
index.cpython-311.pyc266750644editdlrm
locators.cpython-311.pyc658000644editdlrm
manifest.cpython-311.pyc170250644editdlrm
markers.cpython-311.pyc85590644editdlrm
metadata.cpython-311.pyc474400644editdlrm
resources.cpython-311.pyc190010644editdlrm
scripts.cpython-311.pyc212530644editdlrm
util.cpython-311.pyc982040644editdlrm
version.cpython-311.pyc348230644editdlrm
wheel.cpython-311.pyc594860644editdlrm
__init__.cpython-311.pyc14760644editdlrm
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/distlib/__pycache__/locators.cpython-311.pyc (65800B)
§ xó× ÂýMãó6—ddlZddlmZddlZddlZddlZddlZddlZ ddlZn#e $rddl ZYnwxYwddl Z ddl m Z ddlmZmZmZmZmZmZmZmZmZmZmZmZmZmZddlmZm Z m!Z!ddl"m#Z#m$Z$ddl%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z-dd l.m/Z/m0Z0dd l1m2Z2m3Z3ej4e5¦«Z6ej7d ¦«Z8ej7d ej9¦«Z:ej7d ¦«Z;dZGd„de?¦«Z@Gd„de@¦«ZAGd„de@¦«ZBGd„de?¦«ZCGd„de@¦«ZDGd„de@¦«ZEGd„de@¦«ZFGd „d!e@¦«ZGGd"„d#e@¦«ZHeHeDd$d%¬&¦«d'¬(¦«ZIeIjJZJGd)„d*e?¦«ZKdS),éN)ÚBytesIOé)ÚDistlibException)ÚurljoinÚurlparseÚ urlunparseÚ url2pathnameÚ pathname2urlÚqueueÚquoteÚunescapeÚ build_openerÚHTTPRedirectHandlerÚ text_typeÚRequestÚ HTTPErrorÚURLError)Ú DistributionÚDistributionPathÚ make_dist)ÚMetadataÚMetadataInvalidError)Úcached_propertyÚ ensure_slashÚsplit_filenameÚget_project_dataÚparse_requirementÚparse_name_and_versionÚ ServerProxyÚnormalize_name)Ú get_schemeÚUnsupportedVersionError)ÚWheelÚ is_compatiblez^(\w+)=([a-f0-9]+)z;\s*charset\s*=\s*(.*)\s*$ztext/html|application/x(ht)?mlzhttps://pypi.org/pypicó¶—|€t}t|d¬¦«} | ¦«|d¦«¦«S#|d¦«¦«wxYw)z• Return all distribution names known by an index. :param url: The URL of the index. :return: A list of all known distribution names. Nç@©ÚtimeoutÚclose)Ú DEFAULT_INDEXrÚ list_packages)ÚurlÚclients úb/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/distlib/locators.pyÚget_all_distribution_namesr/*si€ð  €{ÝˆÝ ˜ cÐ *Ñ *Ô *€FðØ×#Ò#Ñ%Ô%àˆˆˆw‰ŒÑÔÐÐøˆˆˆˆw‰ŒÑÔÐÐøøøs œAÁAcó$—eZdZdZd„ZexZxZZdS)ÚRedirectHandlerzE A class to work around a bug in some Python 3.2.x releases. có6—d}dD]}||vr ||}nŒ|€dSt|¦«}|jdkrNt| ¦«|¦«}t |d¦«r| ||¦«n|||<t j||||||¦«S)N)ÚlocationÚuriÚÚreplace_header)rÚschemerÚ get_full_urlÚhasattrr6ÚBaseRedirectHandlerÚhttp_error_302) ÚselfÚreqÚfpÚcodeÚmsgÚheadersÚnewurlÚkeyÚurlpartss r.r;zRedirectHandler.http_error_302BsÌ€ðˆØ&ð ð ˆCØ�gˆ~ˆ~Ø  œ�Ø�ðð ˆ>Ø ˆFݘFÑ#Ô#ˆØ Œ?˜bÒ Ð Ý˜S×-Ò-Ñ/Ô/°Ñ8Ô8ˆFÝ�wÐ 0Ñ1Ô1ð &Ø×&Ò& s¨FÑ3Ô3Ð3Ð3à%�˜‘ Ý"Ô1°$¸¸RÀÀsØ29ñ;ô;ð ;óN)Ú__name__Ú __module__Ú __qualname__Ú__doc__r;Úhttp_error_301Úhttp_error_303Úhttp_error_307©rEr.r1r19s9€€€€€ððð;ð;ð;ð(8FÐE€NÐE�^ n n nrEr1có¨—eZdZdZdZdZdZdZedzZdd„Z d „Z d „Z d „Z d „Z d „Zee e¦«Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zdd„ZdS)ÚLocatorzG A base class for locators - things that locate distributions. )z.tar.gzz.tar.bz2z.tarz.zipz.tgzz.tbz)z.eggz.exeú.whl)z.pdfN)rPÚdefaultcó —i|_||_tt¦«¦«|_d|_t j¦«|_dS)a^ Initialise an instance. :param scheme: Because locators look for most recent versions, they need to know the version scheme to use. This specifies the current PEP-recommended scheme - use ``'legacy'`` if you need to support existing distributions on PyPI. N) Ú_cacher7rr1ÚopenerÚmatcherr ÚQueueÚerrors)r<r7s r.Ú__init__zLocator.__init__isC€ðˆŒ ؈Œ õ#¥?Ñ#4Ô#4Ñ5Ô5ˆŒ ðˆŒ Ý”k‘m”mˆŒ ˆ ˆ rEcó,—g}|j ¦«sx |j d¦«}| |¦«n#|jj$rYŒ[wxYw|j ¦«|j ¦«¯x|S)z8 Return any errors which have occurred. F)rWÚemptyÚgetÚappendÚEmptyÚ task_done)r<ÚresultÚes r.Ú get_errorszLocator.get_errors|s¤€ðˆØ”+×#Ò#Ñ%Ô%ð $ð Ø”K—O’O EÑ*Ô*�Ø— ’ ˜aÑ Ô Ð Ð øØ”;Ô$ð ð ð Ø�ð øøøà ŒK× !Ò !Ñ #Ô #Ð #ð ”+×#Ò#Ñ%Ô%ð $ðˆ s�/A Á AÁAcó.—| ¦«dS)z> Clear any errors which may have been logged. N)ra©r<s r.Ú clear_errorszLocator.clear_errorsŠs€ð �ŠÑÔÐÐÐrEcó8—|j ¦«dS©N)rSÚclearrcs r.Ú clear_cachezLocator.clear_cache‘s€Ø Œ ×ÒÑÔÐÐÐrEcó—|jSrf©Ú_schemercs r.Ú _get_schemezLocator._get_scheme”s €ØŒ|ÐrEcó—||_dSrfrj)r<Úvalues r.Ú _set_schemezLocator._set_scheme—s €ØˆŒ ˆ ˆ rEcó —td¦«‚)a= For a given project, get a dictionary mapping available versions to Distribution instances. This should be implemented in subclasses. If called from a locate() request, self.matcher will be set to a matcher for the requirement to satisfy, otherwise it will be None. ú Please implement in the subclass©ÚNotImplementedError)r<Únames r.Ú _get_projectzLocator._get_projectœs€õ"Ð"DÑEÔEÐErEcó —td¦«‚)úJ Return all the distribution names known to this locator. rqrrrcs r.Úget_distribution_nameszLocator.get_distribution_names¨s€õ"Ð"DÑEÔEÐErEcóÔ—|j€| |¦«}nJ||jvr|j|}n3| ¦«| |¦«}||j|<|S)zÖ For a given project, get a dictionary mapping available versions to Distribution instances. This calls _get_project to do all the work, and just implements a caching layer on top. )rSrurd)r<rtr_s r.Ú get_projectzLocator.get_project®sr€ð Œ;Ð Ø×&Ò& tÑ,Ô,ˆFˆFØ �T”[Ð Ð Ø”[ Ô&ˆFˆFà × Ò Ñ Ô Ð Ø×&Ò& tÑ,Ô,ˆFØ &ˆDŒK˜Ñ ؈ rEcó,—t|¦«}tj|j¦«}d}| d¦«}| |j¦«}|r"t t|¦«|j¦«}|j dkd|j v||||fS)zu Give an url a score which can be used to choose preferred URLs for a given project release. TrPÚhttpszpypi.org) rÚ posixpathÚbasenameÚpathÚendswithÚdownloadable_extensionsr$r#Ú wheel_tagsr7Únetloc)r<r,Útr~Ú compatibleÚis_wheelÚis_downloadables r.Ú score_urlzLocator.score_url¿s—€õ �S‰MŒMˆÝÔ% a¤fÑ-Ô-ˆØˆ Ø×$Ò$ VÑ,Ô,ˆØ"×+Ò+¨DÔ,HÑIÔIˆØ ð IÝ&¥u¨X¡¤¸¼ÑHÔHˆJØ”˜GÒ# Z°1´8Ð%;Ø ¨:°xðAð ArEcóð—|}|rq| |¦«}| |¦«}||kr|}||krt d||¦«nt d||¦«|S)a{ Choose one of two URLs where both are candidates for distribution archives for the same version of a distribution (for example, .tar.gz vs. zip). The current implementation favours https:// URLs over http://, archives from PyPI over those from other locations, wheel compatibility (if a wheel) and then the archive name. zNot replacing %r with %rzReplacing %r with %r)rˆÚloggerÚdebug)r<Úurl1Úurl2r_Ús1Ús2s r.Ú prefer_urlzLocator.prefer_urlÎs�€ðˆØ ð AØ—’ Ñ%Ô%ˆBØ—’ Ñ%Ô%ˆBØ�BŠwˆwØ�ؘŠ~ˆ~Ý— ’ Ð7¸¸tÑDÔDÐDÐDå— ’ Ð3°T¸4Ñ@Ô@Ð@؈ rEcó"—t||¦«S)zZ Attempt to split a filename in project name, version and Python version. )r)r<ÚfilenameÚ project_names r.rzLocator.split_filenameäs€õ˜h¨ Ñ5Ô5Ð5rEc ó*—d„}d}t|¦«\}}}}} } |  ¦« d¦«rt d|| ¦«t  | ¦«} | r|  ¦«\} } nd\} } |}|r|ddkr |dd…}| d¦«rÒ t|¦«}t||j ¦«st d |¦«nd|€d }n||j |¦«}|rL|j |j |jt||||| d f¦«d  d „|jD¦«¦«dœ}�n#t$$rt d|¦«YnòwxYw| |j¦«st d|¦«n¸t+j|¦«x}}|jD]š}| |¦«rƒ|dt/|¦« …}| ||¦«}|st d|¦«n5|\}}}|r |||¦«r!|||t||||| d f¦«dœ}|r||d<nŒ›|r | r| |d| z<|S)a See if a URL is a candidate for a download URL for a project (the URL has typically been scraped from an HTML page). If it is, a dictionary is returned with keys "name", "version", "filename" and "url"; otherwise, None is returned. cóB—t|¦«t|¦«kSrf)r )Úname1Úname2s r.Ú same_projectz:Locator.convert_url_to_download_info..same_projectòs€Ý! %Ñ(Ô(­N¸5Ñ,AÔ,AÒAÐ ArENzegg=z %s: version hint in fragment: %r)NNéÿÿÿÿú/rPzWheel not compatible: %sTr5z, c ób—g|],}d t|dd…¦«¦«‘Œ-S)ú.éN)ÚjoinÚlist)Ú.0Úvs r.ú z8Locator.convert_url_to_download_info..s2€Ð LÐ LÐ L¸1 §¢­$¨q°°°¬u©+¬+Ñ!6Ô!6Ð LÐ LÐ LrE)rtÚversionr’r,úpython-versionzinvalid path for wheel: %szNot downloadable: %sz No match for project/version: %s)rtr£r’r,r¤ú %s_digest)rÚlowerÚ startswithrŠr‹Ú HASHER_HASHÚmatchÚgroupsr€r#r$r‚rtr£r’rržÚpyverÚ ExceptionÚwarningr�r}r~Úlenr)r<r,r“r˜r_r7rƒrÚparamsÚqueryÚfragÚmÚalgoÚdigestÚorigpathÚwheelÚincluder’Úextr„rtr£r«s r.Úconvert_url_to_download_infoz$Locator.convert_url_to_download_infoês@€ð Bð Bð BðˆÝ4<¸S±M´MÑ1ˆ�˜˜f e¨TØ �:Š:‰<Œ<× "Ò " 6Ñ *Ô *ð -Ý �LŠLÐ;Ø% tñ -ô -ð -å × Ò ˜dÑ #Ô #ˆØ ð &ØŸ8š8™:œ:‰LˆD�&�&à%‰LˆD�&ØˆØ ð �D˜”H ’O�Oؘ˜˜”9ˆDØ �=Š=˜Ñ Ô ð, ð Cݘd™ œ �Ý$ U¨D¬OÑ<Ô<ðÝ—L’LÐ!;¸TÑBÔBÐBÐBà#Ð+Ø"&˜˜à". ,¨u¬z¸<Ñ"HÔ"H˜Øð à$)¤JØ',¤}Ø(-¬Ý#-¨v°v¸xØ/5°u¸bð/Bñ$Cô$Cà.2¯iªiØ LÐ LÀÄ Ð LÑ LÔ Lñ/Nô/Nð "ð"˜ùøõð Cð Cð CÝ—’Ð;¸TÑBÔBÐBÐBÐBð Cøøøà—’˜tÔ;Ñ<Ô<ð Ý �LŠLÐ/°Ñ 6Ô 6Ð 6Ð 6å'Ô0°Ñ6Ô6Ð 6ˆD�8ØÔ3ð ð �Ø—=’= Ñ%Ô%ðØ  ¥# c¡(¤(   Ô+�DØ×+Ò+¨D°,Ñ?Ô?�AØð AÝŸ š Ð%GÈÑNÔNÐNÐNà/0Ñ,˜˜g uØ+ð A¨|¨|¸LÈ$Ñ/OÔ/Oð Aà(,Ø+2Ø,4Ý'1°6¸6À8Ø39¸5À"ð3Fñ(Gô(Gð &ð&˜Fð %ðAØ;@ Ð'7Ñ 8Ø�Eð#ð$ ð 0�dð 0Ø)/ˆF�; Ñ%Ñ &؈ sÃB$E.Å.%FÆFcó„—d}d|vr|d}dD]}||vr |||f}nŒ|sdD]}d|z}||vr |||f}nŒ|S)zò Get a digest from a dictionary by looking at a "digests" dictionary or keys of the form 'algo_digest'. Returns a 2-tuple (algo, digest) if found, else None. Currently looks only for SHA256, then MD5. NÚdigests)Úsha256Úmd5r¥rM)r<Úinfor_r»r³rCs r.Ú _get_digestzLocator._get_digest3s˜€ðˆØ ˜Ð Рؘ9”oˆGØ)ð ð �ؘ7�?�?Ø" G¨D¤MÐ2�FØ�Eð#ðð Ø)ð ð �Ø! DÑ(�ؘ$�;�;Ø" D¨¤IÐ.�FØ�Eððˆ rEcó —| d¦«}| d¦«}||vr||}|j}nt|||j¬¦«}|j}| |¦«x|_}|d}||d|<|j|dkr[| |j|¦«|_|d |t¦«¦«  |¦«||_ |||<dS)zñ Update a result dictionary (the final result from _get_project) with a dictionary for a specific version, which typically holds information gleaned from a filename or URL for an archive for the distribution. rtr£©r7r,r»ÚurlsN) ÚpopÚmetadatarr7r¿r´Ú source_urlr�Ú setdefaultÚsetÚaddÚlocator) r<r_r¾rtr£ÚdistÚmdr´r,s r.Ú_update_version_datazLocator._update_version_dataJsú€ð �xŠx˜ÑԈؗ(’(˜9Ñ%Ô%ˆØ �fРРؘ'”?ˆDØ”ˆBˆBå˜T 7°4´;Ð?Ñ?Ô?ˆDØ”ˆBØ#×/Ò/°Ñ5Ô5Ð5ˆŒ �fØ�5ŒkˆØ!'ˆˆyÔ˜#ÑØ Œ=˜D œKÒ 'Ð 'Ø ŸOšO¨B¬M¸3Ñ?Ô?ˆBŒMØ �6ŒN× %Ò % g­s©u¬uÑ 5Ô 5× 9Ò 9¸#Ñ >Ô >Ð >؈Œ ؈ˆw‰ˆˆrEFcó4—d}t|¦«}|€td|z¦«‚t|j¦«}| |j¦«x|_}t  d|t|¦«j ¦«|  |j ¦«}t|¦«dkrÓg}|j } |D]q} | dvrŒ | | ¦«sn'|s| | ¦«js| | ¦«ŒF#t"$rt  d|| ¦«YŒnwxYwt|¦«dkrt'||j¬¦«}|r+t  d |¦«|d } || }|r†|jr |j|_| d i¦« | t/¦«¦«|_i} | d i¦«} |jD]}|| vr | || |<Œ| |_d|_|S) a Find the most recent distribution which matches the given requirement. :param requirement: A requirement of the form 'foo (1.0)' or perhaps 'foo (>= 1.0, < 2.0, != 1.3)' :param prereleases: If ``True``, allow pre-release versions to be located. Otherwise, pre-release versions are not returned. :return: A :class:`Distribution` instance, or ``None`` if no such distribution could be located. NzNot a valid requirement: %rzmatcher: %s (%s)r�©rÂr»zerror matching %s with %rr)rCzsorted list: %sr™rÂr»)rrr!r7rUÚ requirementrŠr‹ÚtyperFrzrtr®Ú version_classr©Ú is_prereleaser\r¬r­ÚsortedrCÚextrasr[rÇÚ download_urlsr»)r<rÏÚ prereleasesr_Úrr7rUÚversionsÚslistÚvclsÚkr£ÚdÚsdr,s r.ÚlocatezLocator.locateas4€ðˆÝ ˜kÑ *Ô *ˆØ ˆ9Ý"Ð#@À;Ñ#NÑOÔOÐ OݘDœKÑ(Ô(ˆØ!'§¢°´ Ñ!>Ô!>Ð>ˆŒ �wÝ� Š Ð'¨µ$°w±-´-Ô2HÑIÔIÐIØ×#Ò# A¤FÑ+Ô+ˆÝ ˆx‰=Œ=˜1Ò Ð àˆEØÔ(ˆDØð ð �ØÐ+Ð+Ð+ØðØ"Ÿ=š=¨Ñ+Ô+ð,Øà&ð,¨d¨d°1©g¬gÔ.Cð,Ø!ŸLšL¨™OœO˜OøøÝ ðððÝ—N’NÐ#>ÀÈÑKÔKÐKØ�Dðøøøõ�5‰zŒz˜AŠ~ˆ~ݘu¨&¬*Ð5Ñ5Ô5�Øð +Ý— ’ Ð.°Ñ6Ô6Ð6Ø œ)�Ø! 'Ô*�Ø ð ØŒxð )Ø !¤�” Ø#+§<¢<°¸Ñ#;Ô#;×#?Ò#?ÀÍÉÌÑ#OÔ#OˆFÔ ØˆAØ—’˜i¨Ñ,Ô,ˆBØÔ+ð %ð %�ؘ"�9�9Ø œW�A�c‘FøØˆFŒN؈Œ ؈ sà =DÄ&D0Ä/D0)rQ)F)rFrGrHrIÚsource_extensionsÚbinary_extensionsÚexcluded_extensionsr‚r�rXrardrhrlroÚpropertyr7rurxrzrˆr�rr¹r¿rÌrÞrMrEr.rOrOYs_€€€€€ðððPÐØ0ÐØ#Ðð €Jà/°)Ñ;Ðð$ð$ð$ð$ð& ð ð ðððððððððððððˆX�k ;Ñ /Ô /€Fð Fð Fð FðFðFðFð ððð" Að Að Aðððð,6ð6ð6ð GðGðGðRððð.ððð.6ð6ð6ð6ð6ð6rErOcó.‡—eZdZdZˆfd„Zd„Zd„ZˆxZS)ÚPyPIRPCLocatorz‘ This locator uses XML-RPC to locate distributions. It therefore cannot be used with simple mirrors (that only mirror file content). c ó‚•—tt|¦«jdi|¤Ž||_t |d¬¦«|_dS)z— Initialise an instance. :param url: The URL to use for XML-RPC. :param kwargs: Passed to the superclass constructor. r&r'NrM)ÚsuperrärXÚbase_urlrr-©r<r,ÚkwargsÚ __class__s €r.rXzPyPIRPCLocator.__init__ŸsGø€ð -��n˜dÑ#Ô#Ô,Ð6Ð6¨vÐ6Ð6Ð6؈Œ Ý! #¨sÐ3Ñ3Ô3ˆŒ ˆ ˆ rEcóN—t|j ¦«¦«S©rw)rÇr-r+rcs r.rxz%PyPIRPCLocator.get_distribution_namesªs €õ�4”;×,Ò,Ñ.Ô.Ñ/Ô/Ð/rEcó$—iidœ}|j |d¦«}|D�]k}|j ||¦«}|j ||¦«}t |j¬¦«}|d|_|d|_| d¦«|_ | dg¦«|_ | d¦«|_ t|¦«}|r£|d } | d |_ | | ¦«|_||_|||<|D]e} | d } | | ¦«} |d  |t%¦«¦« | ¦«| |d | <Œf�Œm|S) NrÎTrÁrtr£ÚlicenseÚkeywordsÚsummaryrr,rÂr»)r-Úpackage_releasesÚ release_urlsÚ release_datarr7rtr£r[rîrïrðrrÅr¿r´rÉrÆrÇrÈ) r<rtr_rØr¡rÂÚdatarÄrÊr¾r,r´s r.ruzPyPIRPCLocator._get_project°sˆ€Ø¨Ð,Ð,ˆØ”;×/Ò/°°dÑ;Ô;ˆØð 4ñ 4ˆAØ”;×+Ò+¨D°!Ñ4Ô4ˆDØ”;×+Ò+¨D°!Ñ4Ô4ˆDÝ t¤{Ð3Ñ3Ô3ˆHØ  œLˆHŒMØ# IœˆHÔ Ø#Ÿxšx¨ Ñ2Ô2ˆHÔ Ø $§¢¨°RÑ 8Ô 8ˆHÔ Ø#Ÿxšx¨ Ñ2Ô2ˆHÔ Ý Ñ)Ô)ˆDØð 4ؘA”w�Ø&*¨5¤k�Ô#Ø"×.Ò.¨tÑ4Ô4�” Ø#�” Ø ��q‘ Ø ð4ð4�Dؘuœ+�CØ!×-Ò-¨dÑ3Ô3�Fؘ6”N×-Ò-¨aµ±´Ñ7Ô7×;Ò;¸CÑ@Ô@Ð@Ø-3�F˜9Ô% cÑ*Ð*ù؈ rE©rFrGrHrIrXrxruÚ __classcell__©rês@r.räräšs`ø€€€€€ððð 4ð 4ð 4ð 4ð 4ð0ð0ð0ð ððððððrEräcó.‡—eZdZdZˆfd„Zd„Zd„ZˆxZS)ÚPyPIJSONLocatorzw This locator uses PyPI's JSON interface. It's very limited in functionality and probably not worth using. c óp•—tt|¦«jdi|¤Žt|¦«|_dS)NrM)rærùrXrrçrès €r.rXzPyPIJSONLocator.__init__Ðs9ø€Ø-��o˜tÑ$Ô$Ô-Ð7Ð7°Ð7Ð7Ð7Ý$ SÑ)Ô)ˆŒ ˆ ˆ rEcó —td¦«‚©rwzNot available from this locatorrrrcs r.rxz&PyPIJSONLocator.get_distribution_namesÔó€õ"Ð"CÑDÔDÐDrEcól—iidœ}t|jdt|¦«z¦«} |j |¦«}| ¦« ¦«}tj|¦«}t|j ¬¦«}|d}|d|_ |d|_ |  d¦«|_|  dg¦«|_|  d ¦«|_t#|¦«}||_|||j <|d D]Ÿ} | d }|j |¦«| | ¦«|j|<|d  |j t1¦«¦« |¦«| | ¦«|d |<Œ |d  ¦«D]ñ\} } | |j krŒt|j ¬¦«} |j | _ | | _ t#| ¦«} || _| || <| D]š} | d }| j |¦«| | ¦«| j|<|d  | t1¦«¦« |¦«| | ¦«|d |<Œ›ŒònY#t4$rL}|j t;|¦«¦«t< d|¦«Yd}~nd}~wwxYw|S)NrÎz%s/jsonrÁr¾rtr£rîrïrðrÂr,r»ÚreleaseszJSON fetch failed: %s) rrçr rTÚopenÚreadÚdecodeÚjsonÚloadsrr7rtr£r[rîrïrðrrÉrÕrÈr¿r»rÆrÇÚitemsr¬rWÚputrrŠÚ exception)r<rtr_r,ÚresprôrÜrËrÊr¾r£ÚinfosÚomdÚodistr`s r.ruzPyPIJSONLocator._get_projectÚs€Ø¨Ð,Ð,ˆÝ�d”m Yµ°t±´Ñ%<Ñ=Ô=ˆð/ 9Ø”;×#Ò# CÑ(Ô(ˆDØ—9’9‘;”;×%Ò%Ñ'Ô'ˆDÝ” ˜4Ñ Ô ˆAÝ ¤Ð-Ñ-Ô-ˆBØ�V”9ˆDؘ6”lˆBŒGؘiœˆBŒJØŸš )Ñ,Ô,ˆBŒJØŸ(š( :¨rÑ2Ô2ˆBŒKØŸš )Ñ,Ô,ˆBŒJÝ Ñ#Ô#ˆD؈DŒLà!%ˆF�2”:Ñ Ø˜&œ ð @ð @�ؘ5”k�ØÔ"×&Ò& sÑ+Ô+Ð+Ø$(×$4Ò$4°TÑ$:Ô$:�” ˜SÑ!Ø�v”×)Ò)¨"¬*µc±e´eÑ<Ô<×@Ò@ÀÑEÔEÐEØ)-×)9Ò)9¸$Ñ)?Ô)?��yÔ! #Ñ&Ð&à"# J¤-×"5Ò"5Ñ"7Ô"7ð Dð D‘�˜Ø˜bœjÒ(Ð(ØÝ d¤kÐ2Ñ2Ô2�Øœ7�”Ø%�” Ý$ SÑ)Ô)�Ø $�” Ø"'��w‘Ø!ðDðD�Dؘuœ+�CØÔ'×+Ò+¨CÑ0Ô0Ð0Ø)-×)9Ò)9¸$Ñ)?Ô)?�E”M #Ñ&ؘ6”N×-Ò-¨gµs±u´uÑ=Ô=×AÒAÀ#ÑFÔFÐFØ-1×-=Ò-=¸dÑ-CÔ-C�F˜9Ô% cÑ*Ð*ð Dð Døõ.ð 9ð 9ð 9Ø ŒK�OŠO�I a™LœLÑ )Ô )Ð )Ý × Ò Ð4°aÑ 8Ô 8Ð 8Ð 8Ð 8Ð 8Ð 8Ð 8øøøøð 9øøøðˆ s¬J.KË L1Ë%AL,Ì,L1rõr÷s@r.rùrùËscø€€€€€ððð*ð*ð*ð*ð*ðEðEðEð 3ð3ð3ð3ð3ð3ð3rErùcóâ—eZdZdZejdejejzejz¦«Z ejdejejz¦«Z d„Z ejdej¦«Z e d„¦«ZdS)ÚPagez4 This class represents a scraped HTML page. zÝ (rel\s*=\s*(?:"(?P[^"]*)"|'(?P[^']*)'|(?P[^>\s ]*))\s+)? href\s*=\s*(?:"(?P[^"]*)"|'(?P[^']*)'|(?P[^>\s ]*)) (\s+rel\s*=\s*(?:"(?P[^"]*)"|'(?P[^']*)'|(?P[^>\s ]*)))? z!]+)cóª—||_|x|_|_|j |j¦«}|r| d¦«|_dSdS)zk Initialise an instance with the Unicode page contents and the URL they came from. rN)rôrçr,Ú_baseÚsearchÚgroup)r<rôr,r²s r.rXz Page.__init__ sW€ð ˆŒ Ø#&Ð&ˆŒ ˜œØ ŒJ× Ò ˜dœiÑ (Ô (ˆØ ð 'ØŸGšG A™JœJˆDŒMˆMˆMð 'ð 'rEz[^a-z0-9$&+,/:;=?@.#%_\\|-]cóú—d„}t¦«}|j |j¦«D]¶}| d¦«}|dp'|dp|dp|dp|dp|d}|d p|d p|d }t |j|¦«}t|¦«}|j  d „|¦«}|  ||f¦«Œ·t|d „d¬¦«}|S)zâ Return the URLs of all the links on a page together with information about their "rel" attribute, for determining which ones to treat as downloads and which ones to queue for further scraping. cór—t|¦«\}}}}}}t||t|¦«|||f¦«S)zTidy up an URL.)rrr )r,r7rƒrr¯r°r±s r.ÚcleanzPage.links..clean4sD€å8@À¹ ¼ Ñ 5ˆF�F˜D &¨%°Ý˜v v­u°T©{¬{Ø% u¨dð4ñ5ô5ð 5rEr5Úrel1Úrel2Úrel3Úrel4Úrel5Úrel6rŒr�Úurl3cóL—dt| d¦«¦«zS)Nz%%%2xr)Úordr)r²s r.úzPage.links..Bs€¨w½¸Q¿WºWÀQ¹Z¼Z¹¼Ñ/H€rEcó—|dS)NrrM)r„s r.rzPage.links..Fs €¨a°¬d€rET)rCÚreverse) rÇÚ_hrefÚfinditerrôÚ groupdictrrçr Ú _clean_reÚsubrÈrÓ)r<rr_r©rÜÚrelr,s r.Úlinksz Page.links-s€ð 5ð 5ð 5õ ‘”ˆØ”Z×(Ò(¨¬Ñ3Ô3ð #ð #ˆEØ—’ Ñ#Ô#ˆAØ�V”9ð7  &¤ ð7¨Q¨v¬Yð7Ø�V”9ð7Ø ! &¤ ð7Ø-.¨v¬Yð à�F”)Ð5˜q œyÐ5¨A¨f¬IˆCݘ$œ-¨Ñ-Ô-ˆCݘ3‘-”-ˆCØ”.×$Ò$Ð%HÐ%HÈ#ÑNÔNˆCØ �JŠJ˜˜S�zÑ "Ô "Ð "Ð "õ˜ N N¸DÐAÑAÔAˆØˆ rEN)rFrGrHrIÚreÚcompileÚIÚSÚXr!rrXr$rr'rMrEr.r r sª€€€€€ððð ˆBŒJðð„TˆBŒD�[�2”4Ññ  ô €Eð ˆBŒJÐ?ÀÄÈÌÁÑ MÔ M€Eð 'ð 'ð 'ð�” Ð9¸2¼4Ñ@Ô@€Iàððñ„_ðððrEr cóÀ‡—eZdZdZejd„d„dœZdˆfd„ Zd„Zd „Z d „Z e j d e j ¦«Zd „Zd „Zd„Zd„Zd„Ze j d¦«Zd„ZˆxZS)ÚSimpleScrapingLocatorzã A locator which scrapes HTML pages to locate downloads for a distribution. This runs multiple threads to do the I/O; performance is at least as good as pip's PackageFinder, which works in an analogous fashion. cój—tjt|¦«¬¦« ¦«S)N)Úfileobj)ÚgzipÚGzipFilerr©Úbs r.rzSimpleScrapingLocator.Ts%€�$œ-µ¸± ´ Ð;Ñ;Ô;×@Ò@ÑBÔB€rEcó—|SrfrMr3s r.rzSimpleScrapingLocator.Us€˜!€rE)Údeflater1ÚnoneNé c ó’•—tt|¦«jdi|¤Žt|¦«|_||_i|_t¦«|_tj ¦«|_ t¦«|_ d|_ ||_tj¦«|_tj¦«|_d|_dS)a¤ Initialise an instance. :param url: The root URL to use for scraping. :param timeout: The timeout, in seconds, to be applied to requests. This defaults to ``None`` (no timeout specified). :param num_workers: The number of worker threads you want to do I/O, This defaults to 10. :param kwargs: Passed to the superclass. FNrM)rær.rXrrçr(Ú _page_cacherÇÚ_seenr rVÚ _to_fetchÚ _bad_hostsÚskip_externalsÚ num_workersÚ threadingÚRLockÚ_lockÚ_gplockÚplatform_check)r<r,r(r?rérês €r.rXzSimpleScrapingLocator.__init__Xs¨ø€ð 4�Õ# TÑ*Ô*Ô3Ð=Ð=°fÐ=Ð=Ð=Ý$ SÑ)Ô)ˆŒ ؈Œ ؈ÔÝ‘U”UˆŒ Ýœ™œˆŒÝ™%œ%ˆŒØ#ˆÔØ&ˆÔÝ”_Ñ&Ô&ˆŒ õ !”Ñ(Ô(ˆŒ Ø#ˆÔÐÐrEcóà—g|_t|j¦«D]Q}tj|j¬¦«}d|_| ¦«|j |¦«ŒRdS)z¾ Threads are created only when get_project is called, and terminate before it returns. They are there primarily to parallelise I/O (i.e. fetching web pages). )ÚtargetTN) Ú_threadsÚranger?r@ÚThreadÚ_fetchÚdaemonÚstartr\)r<Úir„s r.Ú_prepare_threadsz&SimpleScrapingLocator._prepare_threadsssq€ð ˆŒ Ý�tÔ'Ñ(Ô(ð $ð $ˆAÝÔ ¨¬ Ð4Ñ4Ô4ˆA؈AŒHØ �GŠG‰IŒIˆIØ ŒM× Ò  Ñ #Ô #Ð #Ð #ð  $ð $rEcó˜—|jD]}|j d¦«Œ|jD]}| ¦«Œg|_dS)zu Tell all the threads to terminate (by sending a sentinel value) and wait for them to do so. N)rGr<rrž)r<r„s r.Ú _wait_threadsz#SimpleScrapingLocator._wait_threads€sY€ð”ð %ð %ˆAØ ŒN× Ò ˜tÑ $Ô $Ð $Ð $Ø”ð ð ˆAØ �FŠF‰HŒHˆHˆH؈Œ ˆ ˆ rEcó>—iidœ}|j5||_||_t|jdt |¦«z¦«}|j ¦«|j ¦«|  ¦« t  d|¦«|j   |¦«|j  ¦«| ¦«n#| ¦«wxYw|`ddd¦«n #1swxYwY|S)NrÎz%s/z Queueing %s)rCr_r“rrçr r;rgr:rNrŠr‹r<rržrP)r<rtr_r,s r.ruz"SimpleScrapingLocator._get_project�sN€Ø¨Ð,Ð,ˆØ Œ\ð ð Ø ˆDŒKØ $ˆDÔ Ý˜$œ-¨µ°t±´Ñ)<Ñ=Ô=ˆCØ ŒJ× Ò Ñ Ô Ð Ø Ô × "Ò "Ñ $Ô $Ð $Ø × !Ò !Ñ #Ô #Ð #ð %Ý— ’ ˜]¨CÑ0Ô0Ð0Ø”×"Ò" 3Ñ'Ô'Ð'Ø”×#Ò#Ñ%Ô%Ð%à×"Ò"Ñ$Ô$Ð$Ð$ø�×"Ò"Ñ$Ô$Ð$Ð$øøøØ� ð ð ð ñ ô ð ð ð ð ð ð øøøð ð ð ð ðˆ s+�A:DÂAC+ÃDÃ+DÄDÄDÄDz<\b(linux_(i\d86|x86_64|arm\w+)|win(32|_amd64)|macosx_?\d+)\bcó6—|j |¦«S)zD Does an URL refer to a platform-specific download? )Úplatform_dependentr)r<r,s r.Ú_is_platform_dependentz,SimpleScrapingLocator._is_platform_dependent¢s€ðÔ&×-Ò-¨cÑ2Ô2Ð2rEcó*—|jr| |¦«rd}n| ||j¦«}t d||¦«|r:|j5| |j|¦«ddd¦«n #1swxYwY|S)a% See if an URL is a suitable download for a project. If it is, register information in the result dictionary (for _get_project) about the specific version it's for. Note that the return value isn't actually used other than as a boolean value. Nzprocess_download: %s -> %s) rDrTr¹r“rŠr‹rBrÌr_)r<r,r¾s r.Ú_process_downloadz'SimpleScrapingLocator._process_download¨sÞ€ð Ô ð M 4×#>Ò#>¸sÑ#CÔ#Cð M؈DˆDà×4Ò4°S¸$Ô:KÑLÔLˆDÝ� Š Ð1°3¸Ñ=Ô=Ð=Ø ð =Ø”ð =ð =Ø×)Ò)¨$¬+°tÑ<Ô<Ð<ð =ð =ð =ñ =ô =ð =ð =ð =ð =ð =ð =øøøð =ð =ð =ð =àˆ sÁ BÂB ÂB có—t|¦«\}}}}}}| |j|jz|jz¦«rd}n |jr| |j¦«sd}n|| |j¦«sd}n_|dvrd}nX|dvrd}nQ| |¦«rd}n9|  dd¦«d} |   ¦«dkrd}nd}t  d ||||¦«|S) z‘ Determine whether a link URL from a referring page and with a particular "rel" attribute should be queued for scraping. F)ÚhomepageÚdownload)Úhttpr|Úftpú:rrÚ localhostTz#should_queue: %s (%s) from %s -> %s) rr€rßràrár>r§rçrTÚsplitr¦rŠr‹) r<ÚlinkÚreferrerr&r7rƒrÚ_r_Úhosts r.Ú _should_queuez#SimpleScrapingLocator._should_queue¼s8€õ )1°©¬Ñ%ˆ�˜˜a  AØ �=Š=˜Ô/°$Ô2HÑHØÔ1ñ2ñ 3ô 3ð àˆFˆFØ Ô ð ¨¯ª¸¼Ñ)GÔ)Gð ØˆFˆFØ×$Ò$ T¤]Ñ3Ô3ð ØˆFˆFØ Ð0Ð 0Ð 0؈FˆFØ Ð3Ð 3Ð 3؈FˆFØ × (Ò (¨Ñ .Ô .ð ØˆFˆFà—<’<  QÑ'Ô'¨Ô*ˆDØ�zŠz‰|Œ|˜{Ò*Ð*Ø��à�Ý� Š Ð:¸DÀ#ؘvñ 'ô 'ð 'àˆ rEcóâ— |j ¦«} |rÖ| |¦«}|€ |j ¦«ŒO|jD]œ\}}||jvrŽ |j |¦«| |¦«sM| |||¦«r6t  d||¦«|j  |¦«ŒŒ#t$rYŒ˜wxYwŒ�n>#t$r1}|j  t|¦«¦«Yd}~nd}~wwxYw|j ¦«n#|j ¦«wxYw|sdS�Œo)z× Get a URL to fetch from the work queue, get the HTML page, examine its links for download candidates and candidates for further scraping. This is a handy method to run in a thread. TNzQueueing %s from %s)r<r[Úget_pager^r'r;rÈrVrcrŠr‹rrr¬rWr)r<r,Úpager_r&r`s r.rJzSimpleScrapingLocator._fetchÙs©€ð Ø”.×$Ò$Ñ&Ô&ˆCð +Øð %ØŸ=š=¨Ñ-Ô-�DØ�|Ø ð”×(Ò(Ñ*Ô*Ð*Ð*ð&*¤Zð %ð %™ ˜˜cØ t¤zÐ1Ð1ð%Ø $¤ §¢¨tÑ 4Ô 4Ð 4Ø(,×(>Ò(>¸tÑ(DÔ(Dð!=Ø(,×(:Ò(:¸4ÀÀcÑ(JÔ(Jð!=å$*§L¢LÐ1FÈÈcÑ$RÔ$RÐ$RØ$(¤N×$6Ò$6°tÑ$<Ô$<Ð$<øøÝ#7ð%ð%ð%Ø $ ð%øøøð2øøõð .ð .ð .Ø” —’¥ ¨!¡ ¤ Ñ-Ô-Ð-Ð-Ð-Ð-Ð-Ð-øøøøð .øøøð”×(Ò(Ñ*Ô*Ð*Ð*ø�”×(Ò(Ñ*Ô*Ð*Ð*øøøØð à�ñ1 sZœC5ÁC5Á&A]*>([^<]+)Ô>Ð>rEc ó²—iidœ}tj|j¦«D]·\}}}|D]¥}| ||¦«r�tj ||¦«}t ddttj |¦«¦«dddf¦«}|  ||¦«}|r|  ||¦«Œ¦|j snŒ¸|S)NrÎrhr5) rjÚwalkr~r�rržrr r}r¹rÌr|) r<rtr_ÚrootÚdirsÚfilesÚfnr,r¾s r.ruzDirectoryLocator._get_projectbsø€Ø¨Ð,Ð,ˆÝ!#¤¨¬Ñ!7Ô!7ð ð Ñ ˆD�$˜Øð @ð @�Ø×&Ò& r¨4Ñ0Ô0ð@ÝœŸš d¨BÑ/Ô/�BÝ$ f¨bÝ&2µ2´7·?²?À2Ñ3FÔ3FÑ&GÔ&GØ&(¨"¨bð&2ñ3ô3�Cð ×<Ò<¸SÀ$ÑGÔG�DØð@Ø×1Ò1°&¸$Ñ?Ô?Ð?øØ”>ð Ø�ð àˆ rEc óΗt¦«}tj|j¦«D]¼\}}}|D]ª}| ||¦«r’tj ||¦«}tddttj  |¦«¦«dddf¦«}|  |d¦«}|r|  |d¦«Œ«|j snŒ½|S)rwrhr5Nrt) rÇrjrƒr~r�rržrr r}r¹rÈr|)r<r_r„r…r†r‡r,r¾s r.rxz'DirectoryLocator.get_distribution_namesrsò€õ‘”ˆÝ!#¤¨¬Ñ!7Ô!7ð ð Ñ ˆD�$˜Øð 1ð 1�Ø×&Ò& r¨4Ñ0Ô0ð1ÝœŸš d¨BÑ/Ô/�BÝ$ f¨bÝ&2µ2´7·?²?À2Ñ3FÔ3FÑ&GÔ&GØ&(¨"¨bð&2ñ3ô3�Cð ×<Ò<¸SÀ$ÑGÔG�DØð1ØŸ š  4¨¤<Ñ0Ô0Ð0øØ”>ð Ø�ð àˆ rE) rFrGrHrIrXr�rurxrör÷s@r.rzrzDsoø€€€€€ðððððððð"?ð?ð?ðððð ððððððrErzcó—eZdZdZd„Zd„ZdS)Ú JSONLocatora This locator uses special extended metadata (not available on PyPI) and is the basis of performant dependency resolution in distlib. Other locators require archive downloads before dependencies can be determined! As you might imagine, that can be slow. có —td¦«‚rürrrcs r.rxz"JSONLocator.get_distribution_names�rýrEc óv—iidœ}t|¦«}|�r!| dg¦«D�] }|ddks |ddkrŒt|d|d| d d ¦«|j¬ ¦«}|j}|d |_d |vr|d rd|d f|_| di¦«|_| di¦«|_|||j <|d  |j t¦«¦«  |d ¦«�Œ |S)NrÎr†ÚptypeÚsdistÚ pyversionÚsourcertr£rðzPlaceholder for summary)rðr7r,r´r½Ú requirementsÚexportsrÂ) rr[rr7rÄrÅr´Ú dependenciesr’r£rÆrÇrÈ)r<rtr_rôr¾rÊrËs r.ruzJSONLocator._get_project“sL€Ø¨Ð,Ð,ˆÝ Ñ%Ô%ˆØ ñ PØŸš ¨"Ñ-Ô-ð Pñ P�ؘ”= GÒ+Ð+¨t°KÔ/@ÀHÒ/LÐ/LØõ!  f¤¨t°I¬Ø)-¯ª°)Ø2Kñ*Mô*Mà(,¬ ð5ñ5ô5�ð”]�Ø $ U¤ �” à˜tÐ#Ð#¨¨X¬Ð#Ø#(¨$¨x¬.Ð"9�D”KØ"&§(¢(¨>¸2Ñ">Ô">�”Ø#Ÿxšx¨ °2Ñ6Ô6�” Ø'+��t”|Ñ$Ø�v”×)Ò)¨$¬,½¹¼Ñ>Ô>×BÒBÀ4ÈÄ;ÑOÔOÐOÑO؈ rEN)rFrGrHrIrxrurMrEr.rŠrІs?€€€€€ððð EðEðEð ððððrErŠcó(‡—eZdZdZˆfd„Zd„ZˆxZS)ÚDistPathLocatorz‚ This locator finds installed distributions in a path. It can be useful for adding to an :class:`AggregatingLocator`. c ó„•—tt|¦«jdi|¤Žt|t¦«sJ‚||_dS)zs Initialise an instance. :param distpath: A :class:`DistributionPath` instance to search. NrM)rær•rXÚ isinstancerÚdistpath)r<r˜rérês €r.rXzDistPathLocator.__init__²sJø€ð .��o˜tÑ$Ô$Ô-Ð7Ð7°Ð7Ð7Ð7ݘ(Õ$4Ñ5Ô5Ð5Ð5Ð5Ø ˆŒ ˆ ˆ rEc ó—|j |¦«}|€iidœ}n<|j|d|jt|jg¦«id|jtdg¦«ii}|S)NrÎrÂr»)r˜Úget_distributionr£rÇrÅ)r<rtrÊr_s r.ruzDistPathLocator._get_project¼so€ØŒ}×-Ò-¨dÑ3Ô3ˆØ ˆ<Ø ¨RÐ0Ð0ˆFˆFð” ˜dؘœ¥s¨D¬OÐ+<Ñ'=Ô'=Ð>ؘDœL­#¨t¨f©+¬+Ð6ðˆFð ˆ rE)rFrGrHrIrXrurör÷s@r.r•r•­sQø€€€€€ððð!ð!ð!ð!ð!ð ð ð ð ð ð ð rEr•cój‡—eZdZdZˆfd„Zˆfd„Zd„Zeej j e¦«Z d„Z d„Z ˆxZ S)ÚAggregatingLocatorzI This class allows you to chain and/or merge a list of locators. c󌕗| dd¦«|_||_tt|¦«jdi|¤ŽdS)aÏ Initialise an instance. :param locators: The list of locators to search. :param kwargs: Passed to the superclass constructor, except for: * merge - if False (the default), the first successful search from any of the locators is returned. If True, the results from all locators are merged (this can be slow). ÚmergeFNrM)rÃržÚlocatorsrærœrX)r<rŸrérês €r.rXzAggregatingLocator.__init__ÍsKø€ð—Z’Z ¨Ñ/Ô/ˆŒ Ø ˆŒ Ø0�Õ  $Ñ'Ô'Ô0Ð:Ð:°6Ð:Ð:Ð:Ð:Ð:rEcó’•—tt|¦« ¦«|jD]}| ¦«ŒdSrf)rærœrhrŸ)r<rÉrês €r.rhzAggregatingLocator.clear_cacheÝsPø€Ý Õ  $Ñ'Ô'×3Ò3Ñ5Ô5Ð5Ø”}ð "ð "ˆGØ × Ò Ñ !Ô !Ð !Ð !ð "ð "rEcó6—||_|jD] }||_Œ dSrf)rkrŸr7)r<rnrÉs r.rozAggregatingLocator._set_schemeâs-€ØˆŒ Ø”}ð #ð #ˆGØ"ˆGŒNˆNð #ð #rEcóB—i}|jD�]}| |¦«}|rù|jr½| di¦«}| di¦«}| |¦«| d¦«}|r6|r4| ¦«D]\}} ||vr||xx| zcc<Œ| ||<Œ | d¦«} |r| r|  |¦«ŒÞ|j€d} n%d} |D] }|j |¦«rd} nŒ!| r|}n�Œ|S)NrÂr»TF)rŸrzržr[ÚupdaterrUr©) r<rtr_rÉrÜr†r»ÚdfrÛr¡ÚddÚfounds r.ruzAggregatingLocator._get_projectést€ØˆØ”}ð' ñ' ˆGØ×#Ò# DÑ)Ô)ˆAØð% Ø”:ð$Ø"ŸJšJ v¨rÑ2Ô2�EØ$Ÿjšj¨°BÑ7Ô7�Gà—M’M !Ñ$Ô$Ð$ØŸš FÑ+Ô+�BØð* ð*Ø$)§K¢K¡M¤Mð*ð*™D˜A˜qØ  B˜w˜wØ " 1  ¤¨¡   ¡ à()  1¡ ØŸš IÑ.Ô.�BØð+ 2ð+ØŸ š  'Ñ*Ô*Ð*øð”|Ð+Ø $˜˜à %˜Ø!"ð&ð&˜AØ#œ|×1Ò1°!Ñ4Ô4ð&Ø(, Ø % ð&ððØ!"˜Ø˜ù؈ rEcó†—t¦«}|jD]*} || ¦«z}Œ#t$rYŒ'wxYw|Srì)rÇrŸrxrs)r<r_rÉs r.rxz)AggregatingLocator.get_distribution_namess`€õ‘”ˆØ”}ð ð ˆGð Ø˜'×8Ò8Ñ:Ô:Ñ:��øÝ&ð ð ð Ø�ð øøøàˆ s ™1± >½>)rFrGrHrIrXrhrorârOr7Úfgetrurxrör÷s@r.rœrœÉs¡ø€€€€€ððð;ð;ð;ð;ð;ð "ð"ð"ð"ð"ð #ð#ð#ð ˆX�g”nÔ)¨;Ñ 7Ô 7€Fð*ð*ð*ðX ð ð ð ð ð ð rErœzhttps://pypi.org/simple/r&r'ÚlegacyrÁcó@—eZdZdZd d„Zd„Zd„Zd„Zd„Zd„Z d d „Z dS) ÚDependencyFinderz0 Locate dependencies for distributions. Ncó^—|pt|_t|jj¦«|_dS)zf Initialise an instance, using the specified locator to locate distributions. N)Údefault_locatorrÉr!r7)r<rÉs r.rXzDependencyFinder.__init__2s(€ð Ð1¥/ˆŒ Ý  ¤Ô!4Ñ5Ô5ˆŒ ˆ ˆ rEcój—t d|¦«|j}||j|<||j||jf<|jD]m}t|¦«\}}t d|||¦«|j  |t¦«¦«  ||f¦«ŒndS)z¨ Add a distribution to the finder. This will update internal information about who provides what. :param dist: The distribution to add. zadding distribution %szAdd to provided: %s, %s, %sN) rŠr‹rCÚ dists_by_nameÚdistsr£ÚprovidesrÚprovidedrÆrÇrÈ)r<rÊrtÚpr£s r.Úadd_distributionz!DependencyFinder.add_distribution:sº€õ � Š Ð-¨tÑ4Ô4Ð4ØŒxˆØ#'ˆÔ˜4Ñ Ø+/ˆŒ �D˜$œ,Ð'Ñ(Ø”ð Gð GˆAÝ2°1Ñ5Ô5‰MˆD�'Ý �LŠLÐ6¸¸gÀtÑ LÔ LÐ LØ ŒM× $Ò $ T­3©5¬5Ñ 1Ô 1× 5Ò 5°wÀ°oÑ FÔ FÐ FÐ Fð Gð GrEcóF—t d|¦«|j}|j|=|j||jf=|jD]_}t|¦«\}}t d|||¦«|j|}|  ||f¦«|s|j|=Œ`dS)z° Remove a distribution from the finder. This will update internal information about who provides what. :param dist: The distribution to remove. zremoving distribution %sz Remove from provided: %s, %s, %sN) rŠr‹rCr¯r°r£r±rr²Úremove)r<rÊrtr³r£Úss r.Úremove_distributionz$DependencyFinder.remove_distributionIs¶€õ � Š Ð/°Ñ6Ô6Ð6ØŒxˆØ Ô ˜tÐ $Ø ŒJ˜˜dœlÐ+Ð ,Ø”ð (ð (ˆAÝ2°1Ñ5Ô5‰MˆD�'Ý �LŠLÐ;¸TÀ7ÈDÑ QÔ QÐ QØ” ˜dÔ#ˆAØ �HŠH�g˜t�_Ñ %Ô %Ð %Øð (Ø”M $Ð'øð  (ð (rEcóÆ— |j |¦«}nD#t$r7| ¦«d}|j |¦«}YnwxYw|S)zÞ Get a version matcher for a requirement. :param reqt: The requirement :type reqt: str :return: A version matcher (an instance of :class:`distlib.version.Matcher`). r)r7rUr"r^)r<ÚreqtrUrts r.Ú get_matcherzDependencyFinder.get_matcher[sj€ð 0Ø”k×)Ò)¨$Ñ/Ô/ˆGˆGøÝ&ð 0ð 0ð 0à—:’:‘<”< ”?ˆDØ”k×)Ò)¨$Ñ/Ô/ˆGˆGˆGð 0øøøðˆs‚�>AÁAcó—| |¦«}|j}t¦«}|j}||vrP||D]G\}} | |¦«}n#t $rd}YnwxYw|r| |¦«nŒH|S)zÓ Find the distributions which can fulfill a requirement. :param reqt: The requirement. :type reqt: str :return: A set of distribution which can fulfill the requirement. F)r»rCrÇr²r©r"rÈ) r<rºrUrtr_r²r£Úproviderr©s r.Úfind_providerszDependencyFinder.find_providersksº€ð×"Ò" 4Ñ(Ô(ˆØŒ{ˆÝ‘”ˆØ”=ˆØ �8Ð Ð Ø%-¨d¤^ð ð Ñ!�˜ð"Ø#ŸMšM¨'Ñ2Ô2�E�EøÝ.ð"ð"ð"Ø!�E�E�Eð"øøøððØ—J’J˜xÑ(Ô(Ð(Ø�Eððˆ sÁAÁ A)Á(A)có —|j|}t¦«}|D]F}| |¦«}| |j¦«s| |¦«ŒG|r)| d||t |¦«f¦«d}ns| |¦«|j|=|D]<}|j |t¦«¦« |¦«Œ=|  |¦«d}|S)aŠ Attempt to replace one provider with another. This is typically used when resolving dependencies from multiple sources, e.g. A requires (B >= 1.0) while C requires (B >= 1.1). For successful replacement, ``provider`` must meet all the requirements which ``other`` fulfills. :param provider: The provider we are trying to replace with. :param other: The provider we're trying to replace. :param problems: If False is returned, this will contain what problems prevented replacement. This is currently a tuple of the literal string 'cantreplace', ``provider``, ``other`` and the set of requirements that ``provider`` couldn't fulfill. :return: True if we can replace ``other`` with ``provider``, else False. Ú cantreplaceFT) ÚreqtsrÇr»r©r£rÈÚ frozensetr¸rÆr´) r<r½ÚotherÚproblemsÚrlistÚ unmatchedr·rUr_s r.Útry_to_replacezDependencyFinder.try_to_replaceƒs€ð&” ˜5Ô!ˆÝ‘E”Eˆ Øð !ð !ˆAØ×&Ò& qÑ)Ô)ˆGØ—=’= Ô!1Ñ2Ô2ð !Ø— ’ ˜aÑ Ô Ð øØ ð à �LŠL˜-¨°5Ý# IÑ.Ô.ð0ñ 1ô 1ð 1àˆFˆFð × $Ò $ UÑ +Ô +Ð +Ø” ˜5Ð!Øð >ð >�Ø” ×%Ò% hµ±´Ñ6Ô6×:Ò:¸1Ñ=Ô=Ð=Ð=Ø × !Ò ! (Ñ +Ô +Ð +؈F؈ rEFcóâ—i|_i|_i|_i|_t |pg¦«}d|vr)| d¦«|t gd¢¦«z}t |t¦«r |x}}t  d|¦«nM|j   ||¬¦«x}}|€td|z¦«‚t  d|¦«d|_ t ¦«}t |g¦«}t |g¦«}|�rb| ¦«}|j} | |jvr| |¦«n*|j| } | |kr| || |¦«|j|jz} |j} t ¦«} |r(||vr$d D]!}d |z}||vr| t+|d |z¦«z} Œ"| | z| z}|D�]¡}| |¦«}|�s t  d |¦«|j   ||¬¦«}|€|s|j   |d¬¦«}|€3t  d |¦«| d|f¦«n€|j|j}}||f|jvr| |¦«| |¦«|| vr9||vr5| |¦«t  d|j¦«|D]w}|j} | |jvr;|j |t ¦«¦« |¦«ŒM|j| } | |kr| || |¦«Œx�Œ£|�°bt |j ¦«¦«}|D]2}||v|_|jr t  d|j¦«Œ3t  d|¦«||fS)aŽ Find a distribution and all distributions it depends on. :param requirement: The requirement specifying the distribution to find, or a Distribution instance. :param meta_extras: A list of meta extras such as :test:, :build: and so on. :param prereleases: If ``True``, allow pre-release versions to be returned - otherwise, don't return prereleases unless they're all that's available. Return a set of :class:`Distribution` instances and a set of problems. The distributions returned should be such that they have the :attr:`required` attribute set to ``True`` if they were from the ``requirement`` passed to ``find()``, and they have the :attr:`build_time_dependency` attribute set to ``True`` unless they are post-installation dependencies of the ``requirement``. The problems should be a tuple consisting of the string ``'unsatisfied'`` and the requirement which couldn't be satisfied by any distribution known to the locator. z:*:)z:test:z:build:z:dev:zpassed %s as requirement)rÖNzUnable to locate %rz located %sT)ÚtestÚbuildÚdevz:%s:z %s_requireszNo providers found for %rzCannot satisfy %rÚ unsatisfiedzAdding %s to install_distsz#%s is a build-time dependency only.zfind done for %s)r²r°r¯rÁrÇr¶r—rrŠr‹rÉrÞrÚ requestedrÃrCr´rÇÚ run_requiresÚ meta_requiresÚbuild_requiresÚgetattrr¾rÈr£Úname_and_versionrÆÚvaluesÚbuild_time_dependency)r<rÏÚ meta_extrasrÖrÊr rÄÚtodoÚ install_distsrtrÃÚireqtsÚsreqtsÚereqtsrCr`Ú all_reqtsr×Ú providersr½Únr¡r³r°s r.ÚfindzDependencyFinder.find«sp€ð4ˆŒ ؈Œ ØˆÔØˆŒ å˜+Ð+¨Ñ,Ô,ˆ Ø �KÐ Ð Ø × Ò ˜uÑ %Ô %Ð %à �3Ð=Ð=Ð=Ñ>Ô>Ñ >ˆKå �k¥<Ñ 0Ô 0ð .Ø&Ð &ˆD�5Ý �LŠLÐ3°UÑ ;Ô ;Ð ;Ð ;àœ<×.Ò.¨{Ø;Fð/ñHôHð HˆD�5àˆ|Ý&Ð'<¸{Ñ'JÑKÔKÐKÝ �LŠL˜ uÑ -Ô -Ð -؈ŒÝ‘5”5ˆÝ�D�6‰{Œ{ˆÝ˜U˜G™ œ ˆ Øñ1 DØ—8’8‘:”:ˆDØ”8ˆDؘ4Ô-Ð-Ð-Ø×%Ò% dÑ+Ô+Ð+Ð+ðÔ*¨4Ô0�ؘD’=�=Ø×'Ò'¨¨e°XÑ>Ô>Ð>àÔ&¨Ô);Ñ;ˆFØÔ(ˆFÝ‘U”UˆFØð E˜t }Ð4Ð4Ø3ðEðE�CØ ™ �AؘKÐ'Ð'Ø¥'¨$° ÀÑ0CÑ"DÔ"DÑD˜øØ ™¨&Ñ0ˆIØð Dñ D�Ø ×/Ò/°Ñ2Ô2� Ø ñDÝ—L’LÐ!<¸aÑ@Ô@Ð@Ø#œ|×2Ò2°1À+Ð2ÑNÔN�Hð Ð'° Ð'Ø#'¤<×#6Ò#6°qÀdÐ#6Ñ#KÔ#K˜ØÐ'ÝŸ š Ð%8¸!Ñ<Ô<Ð<Ø Ÿ š  m°QÐ%7Ñ8Ô8Ð8Ð8à'œ|¨XÔ-=˜1˜Ø˜q˜6¨¬Ð3Ð3Ø ŸHšH XÑ.Ô.Ð.Ø!Ÿ š  hÑ/Ô/Ð/Ø ˜;˜;¨4°=Ð+@Ð+@Ø)×-Ò-¨hÑ7Ô7Ð7Ý"ŸLšLÐ)EØ)1Ô)BñDôDðDà"ðDðD�AØœ5�DØ 4Ô#5Ð5Ð5Øœ ×-Ò-¨aµ±´Ñ7Ô7×;Ò;¸AÑ>Ô>Ð>Ð>à $Ô 2°4Ô 8˜Ø  Aš:˜:à ×/Ò/°°5¸(ÑCÔCÐCøñDðSñ1 Dõf�D”J×%Ò%Ñ'Ô'Ñ(Ô(ˆØð 4ð 4ˆDØ)-°]Ð)BˆDÔ &ØÔ)ð 4Ý— ’ ÐBØ!Ô2ñ4ô4ð4øå� Š Ð'¨Ñ/Ô/Ð/Ø�hˆÐrErf)NF) rFrGrHrIrXr´r¸r»r¾rÇrÞrMrEr.r«r«-s›€€€€€ððð6ð6ð6ð6ð Gð Gð Gð(ð(ð(ð$ððð ððð0&ð&ð&ðPlðlðlðlðlðlrEr«rf)Lr1ÚiorrÚloggingrjr}r(r@Ú ImportErrorÚdummy_threadingrwr5rÚcompatrrrr r r r r rrr:rrrrÚdatabaserrrrÄrrÚutilrrrrrrrr r£r!r"r¶r#r$Ú getLoggerrFrŠr)r¨r*rorlr*r/r1ÚobjectrOrärùr r.rzrŠr•rœr­rÞr«rMrEr.úrèsØðð € € € ØÐÐÐÐÐØ € € € Ø€€€Ø € € € ØÐÐÐØ € € € ð(ØÐÐÐÐøØð(ð(ð(Ø'Ð'Ð'Ð'Ð'Ð'ð(øøøà € € € àÐÐÐÐÐð3ð3ð3ð3ð3ð3ð3ð3ð3ð3ð3ð3ð3ð3ð3ð3ð3ð3ð3ð3ð3ð3ð3ð3ð3ð3ð3ð3ð3ð3ð3ð3ð@Ð?Ð?Ð?Ð?Ð?Ð?Ð?Ð?Ð?Ø4Ð4Ð4Ð4Ð4Ð4Ð4Ð4ð#ð#ð#ð#ð#ð#ð#ð#ð#ð#ð#ð#ð#ð#ð#ð#ð#ð#ð#ð#ð9Ð8Ð8Ð8Ð8Ð8Ð8Ð8Ø'Ð'Ð'Ð'Ð'Ð'Ð'Ð'à ˆÔ ˜8Ñ $Ô $€àˆbŒjÐ.Ñ/Ô/€ Ø ˆ"Œ*Ð2°B´DÑ 9Ô 9€Ø�B”JÐ?Ñ@Ô@ÐØ'€ ð ð ð ð ðFðFðFðFðFÐ)ñFôFðFð@~ð~ð~ð~ð~ˆfñ~ô~ð~ðB .ð.ð.ð.ð.�Wñ.ô.ð.ðbBðBðBðBðB�gñBôBðBðJ7ð7ð7ð7ð7ˆ6ñ7ô7ð7ðtwðwðwðwðw˜Gñwôwðwðt?ð?ð?ð?ð?�wñ?ô?ð?ðD$ð$ð$ð$ð$�'ñ$ô$ð$ðNðððð�gñôðð8VðVðVðVðV˜ñVôVðVðv%Ð$à)Ð)Ð*DØ25ð7ñ7ô7à#ð %ñ%ô%€ð Ô €ðjðjðjðjðj�vñjôjðjðjðjs  %¥ 1°1