2biSSKrSSKJr SSKrSSKrSSKrSSKrSSKrSSKrSSK r SSK J r SSKJrJrJrJrJrJrJrJrJrJrJrJrJrJr SSKJrJ r J!r! SSK"J#r#J$r$ SSK%J&r&J'r'J(r(J)r)J*r*J+r+J,r,J-r- SS K.J/r/J0r0 SS K1J2r2J3r3 \Rh"\55r6\Rn"S 5r8\Rn"S \Rr5r:\Rn"S 5r;Sr"SS\?5r@"SS\@5rA"SS\@5rB"SS\?5rC"SS\@5rD"SS\@5rE"SS\@5rF"S S!\@5rG"S"S#\@5rH\H"\D"S$S%S&9S'S(9rI\IRrJ"S)S*\?5rKg!\ a SSK rGNYf=f),N)BytesIO)DistlibException)urljoinurlparse urlunparse url2pathname pathname2urlqueuequoteunescape build_openerHTTPRedirectHandler text_typeRequest HTTPErrorURLError) DistributionDistributionPath make_dist)MetadataMetadataInvalidError)cached_property ensure_slashsplit_filenameget_project_dataparse_requirementparse_name_and_version ServerProxynormalize_name) get_schemeUnsupportedVersionError)Wheel is_compatiblez^(\w+)=([a-f0-9]+)z;\s*charset\s*=\s*(.*)\s*$ztext/html|application/x(ht)?mlzhttps://pypi.org/pypicUc[n[USS9nUR5U"S5"5 $!U"S5"5 f=f)z Return all distribution names known by an index. :param url: The URL of the index. :return: A list of all known distribution names. @timeoutclose) DEFAULT_INDEXr list_packages)urlclients ڎ/builddir/build/BUILDROOT/alt-python313-pip-23.3.1-3.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/pip/_vendor/distlib/locators.pyget_all_distribution_namesr/)s@  { c *F##%wws 2Ac*\rSrSrSrSr\=r=rrSr g)RedirectHandler7z= A class to work around a bug in some Python 3.2.x releases. c"SnSHnXu;dM XWn O Ucg[U5nURS:XaB[UR5U5n[ US5(aUR WU5 OXeW'[ R"XX#UU5$)N)locationurireplace_header)rschemer get_full_urlhasattrr7BaseRedirectHandlerhttp_error_302) selfreqfpcodemsgheadersnewurlkeyurlpartss r.r<RedirectHandler.http_error_302@s&C~ ' > F# ??b S--/8Fw 011&&sF3% "11$Rs29; ;N) __name__ __module__ __qualname____firstlineno____doc__r<http_error_301http_error_303http_error_307__static_attributes__rHrGr.r1r17s;(8FENE^nrGr1c\rSrSrSrSrSrSrSr\S-r SSjr S r S r S r S rS r\"\\5rSrSrSrSrSrSrSrSrSrSSjrSrg)LocatorVz? A base class for locators - things that locate distributions. )z.tar.gzz.tar.bz2z.tarz.zipz.tgzz.tbz)z.eggz.exe.whl)z.pdfN)rUc0UlXl[[55UlSUl[ R"5Ulg)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) _cacher8rr1openermatcherr Queueerrors)r=r8s r.__init__Locator.__init__fs7  #?#45  kkm rGcZ/nURR5(dhURRS5nURU5 URR 5 URR5(dMhU$!URRa Mf=f)z( Return any errors which have occurred. F)r[emptygetappendEmpty task_done)r=resultes r. get_errorsLocator.get_errorsys++##%% KKOOE* a  KK ! ! # ++##%% ;;$$  s,B B*)B*c$UR5 g)z. Clear any errors which may have been logged. N)rfr=s r. clear_errorsLocator.clear_errorss rGc8URR5 gN)rWclearris r. clear_cacheLocator.clear_caches rGcUR$rm_schemeris r. _get_schemeLocator._get_schemes ||rGcXlgrmrr)r=values r. _set_schemeLocator._set_schemes rGc[S5e)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 subclassNotImplementedError)r=names r. _get_projectLocator._get_projects""DEErGc[S5e): Return all the distribution names known to this locator. r{r|ris r.get_distribution_namesLocator.get_distribution_namess""DEErGcURcURU5nU$XR;aURUnU$UR5 URU5nX RU'U$)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. )rWrrj)r=r~rds r. get_projectLocator.get_projectsu ;; &&t,F [[ [[&F      &&t,F &KK  rGc@[U5n[R"UR5nSnUR S5nUR UR 5nU(a[ [U5UR5nURS:HSUR;XeXC4$)z] Give an url a score which can be used to choose preferred URLs for a given project release. TrUhttpszpypi.org) r posixpathbasenamepathendswithdownloadable_extensionsr$r# wheel_tagsr8netloc)r=r,tr compatibleis_wheelis_downloadables r. score_urlLocator.score_urls SM%%aff- $$V,"++D,H,HI &uXHJG#Z188%;:A ArGcUnU(a\URU5nURU5nXE:aUnX2:wa[RSX5 U$[RSX5 U$)aC 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)rloggerdebug)r=url1url2rds1s2s r. prefer_urlLocator.prefer_urlsc %B%Bw~ 7D  3T@ rGc[X5$)zJ Attempt to split a filename in project name, version and Python version. )r)r=filename project_names r.rLocator.split_filenamesh55rGcSnSn[U5upVpxpU R5RS5(a[R SX*5 [ R U 5n U (aU R5upOSupUnU(aUSS:XaUSSnURS5(a[U5n[XR5(d[R S U5 GOUcS nOU"URU5nU(axURURUR[XVUXS 45S R!UR"Vs/sH nS R![%USS55PM" sn5S.nOURUR*5(d[R SU5 O[,R."U5=nnUR*HnURU5(dMUS[1U5*nUR3Xr5nU(d[R SU5 O;UunnnU(aU"UU5(a UUU[XVUXS 45S.nU(aUUS' O U(aU (aXSU -'U$s snf![&a n[R)SU5 SnANASnAff=f)z 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. c0[U5[U5:H$rm)r )name1name2s r. same_project:Locator.convert_url_to_download_info..same_projects!%(N5,AA ArGNzegg=z %s: version hint in fragment: %r)NN/rUzWheel not compatible: %sTr6z, .)r~versionrr,python-versionzinvalid path for wheel: %szNot downloadable: %sz No match for project/version: %s)r~rrr,r %s_digest)rlower startswithrr HASHER_HASHmatchgroupsrr#r$rr~rrrjoinpyverlist Exceptionwarningrrrlenr)r=r,rrrdr8rrparamsqueryfragmalgodigestorigpathwheelincludevrerextrr~rrs r.convert_url_to_download_info$Locator.convert_url_to_download_infosz B4 wrGc<Sn[U5nUc[SU-5e[UR5nUR UR 5=Uln[ RSU[U5R5 URUR5n[U5S:a/nURn UHUn U S;aM URU 5(dM$U(dU "U 5R(dUR!U 5 MUMW [U5S:a['XR(S9nU(a[ RS U5 US n X{nU(aUR*(aUR*UlUR-S 05R-W [/55Ul0n UR-S 05n UR0HnX;dM XX'M XlSUlU$!["a [ R%SXj5 GM`f=f) 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)rrrzerror matching %s with %rr)rDzsorted list: %srrr)rrr!r8rY requirementrrtyperIrr~r version_classr is_prereleaserarrsortedrDextrasr`r download_urlsr)r=r prereleasesrdrr8rYversionsslistvclskrdsdr,s r.locateLocator.locate_s k * 9"#@;#NO ODKK(!' !>> w '$w-2H2HI##AFF+ x=1 E((D++ "==++&d1g.C.C!LLO/D5zA~u**5 .6)!* xx ! #+<<#;#?#?#OF Ai,B++9WAF,N  )!NN#>KsG6/G66 HH)rWrsr[rYrXr8)default)F)rIrJrKrLrMsource_extensionsbinary_extensionsexcluded_extensionsrrr\rfrjrortrxpropertyr8rrrrrrrrrrrQrHrGr.rSrSVsP0# J/);$& k; /F FF " A,6 HT..9rGrSc8^\rSrSrSrU4SjrSrSrSrU=r $)PyPIRPCLocatoriz This locator uses XML-RPC to locate distributions. It therefore cannot be used with simple mirrors (that only mirror file content). c X>[[U] "S0UD6 Xl[ USS9Ulg)zw Initialise an instance. :param url: The URL to use for XML-RPC. :param kwargs: Passed to the superclass constructor. r&r'NrH)superrr\base_urlrr-r=r,kwargs __class__s r.r\PyPIRPCLocator.__init__s* nd,6v6 !#s3 rGcH[URR55$r)rr-r+ris r.r%PyPIRPCLocator.get_distribution_namess4;;,,.//rGc00S.nURRUS5nUGH9nURRX5nURRX5n[ UR S9nUSUlUSUlURS5Ul URS/5Ul URS5Ul [U5nU(dMUS n U S Ul URU 5UlXlXU'UHLn U S n URU 5n US R#U[%55R'U 5 XS U 'MN GM< U$) NrTrr~rlicensekeywordssummaryrr,rr)r-package_releases release_urls release_datarr8r~rr`rrrrrrrrrrr) r=r~rdrrrdatarrrr,rs r.rPyPIRPCLocator._get_projectsH,;;//d;A;;++D4D;;++D4Dt{{3H LHM#IH #xx 2H  $R 8H #xx 2H )DtAw&*5k#"..t4 #  q  Du+C!--d3F6N--a7;;C@-39%c* !!* rG)rr- rIrJrKrLrMr\rrrQ __classcell__rs@r.rrs 40 rGrc8^\rSrSrSrU4SjrSrSrSrU=r $)PyPIJSONLocatorizk This locator uses PyPI's JSON interface. It's very limited in functionality and probably not worth using. c N>[[U] "S0UD6 [U5Ulg)NrH)rrr\rrrs r.r\PyPIJSONLocator.__init__s! ot-77$S) rGc[S5erzNot available from this locatorr|ris r.r&PyPIJSONLocator.get_distribution_names""CDDrGc00S.n[URS[U5-5nURR U5nUR 5R 5n[R"U5n[URS9nUSnUSUl USUl URS5UlURS/5UlURS 5Ul[#U5nXlUS n XUR'US Hn U S nUR&R)U5 UR+U 5UR,U'US R/UR[155R)U5 UR+U 5US U'M US R35HupXR:XaM[URS9n URU l Xl [#U 5nXlXU 'U Hn U S nUR&R)U5 UR+U 5UR,U'US R/U [155R)U5 UR+U 5US U'M M U$![4aEnUR6R9[;U55 [<R?SU5 SnAU$SnAff=f)Nrz%s/jsonrrr~rrrrrr,rreleaseszJSON fetch failed: %s) rrr rXopenreaddecodejsonloadsrr8r~rr`rrrrrrrrrrritemsrr[putrr exception)r=r~rdr,respr rrrrrrinfosomdodistres r.rPyPIJSONLocator._get_projects,dmmYt%<=/ 9;;##C(D99;%%'D 4 A-BV9D6lBGiBJ),BJ((:r2BK),BJ#DLV9D!%2:: & 5k""&&s+$($4$4T$: S!v))"**ce<@@E)-)9)9$)?y!#& "#$J-"5"5"7jj(dkk277% $S) $ "'w!Du+C''++C0)-)9)9$)?EMM#&6N--gsu=AA#F-1-=-=d-CF9%c* "#84  9 KKOOIaL )   4a 8 8  9sI/J K)$:K$$K))rr r s@r.rrs*E 33rGrc*\rSrSrSr\R "S\R\R-\R-5r \R "S\R\R-5r Sr \R "S\R5r \S5rSrg ) Pageiz, 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!]+)cXlU=UlUlURR UR5nU(aUR S5Ulgg)zS Initialise an instance with the Unicode page contents and the URL they came from. rN)r rr,_basesearchgroup)r=r r,rs r.r\ Page.__init__ sF  #&&  JJ  dii ( GGAJDM rGz[^a-z0-9$&+,/:;=?@.#%_\\|-]cSn[5nURRUR5HnUR S5nUS=(d5 US=(d) US=(d US=(d US=(d USnUS =(d US =(d US n[ UR U5n[U5nURRS U5nURXe45 M [US SS9nU$)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. cP[U5upp4pV[X[U5XEU45$)zTidy up an URL.)rrr )r,r8rrrrrs r.cleanPage.links..clean4s18@ 5FD%vuT{%d45 5rGr6rel1rel2rel3rel4rel5rel6rrurl3c<S[URS55-$)Nz%%%2xr)ordr*)rs r.Page.links..BswQWWQZ/HrGc US$)NrrH)rs r.r9r:FsadrGT)rDreverse) r_hreffinditerr  groupdictrrr _clean_resubrr)r=r.rdrrrelr,s r.links Page.links-s 5 ZZ((3E#AV97& 7QvY7V97 !& 7-.vY F)5qy5AfIC$---C3-C..$$%H#NC JJz "4NDA rG)rr r,N)rIrJrKrLrMrecompileISXr=r(r\r@rrCrQrHrGr.r&r&s JJTTBDD[244  E JJ? ME ' 9244@IrGr&c^\rSrSrSr\R SSS.rSU4SjjrSr Sr S r \ R"S \ R5rS rS rS rSrSr\ R"S5rSrSrU=r$)SimpleScrapingLocatoriJz 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. cX[R"[U5S9R5$)N)fileobj)gzipGzipFilerrbs r.r9SimpleScrapingLocator.Ts$-- ;@@BrGcU$rmrHrPs r.r9rRUs!rG)deflaterNnonec h>[[U] "S0UD6 [U5UlX l0Ul[5Ul[R"5Ul [5Ul SUl X0l[R "5Ul[R "5UlSUlg)ad 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. FNrH)rrKr\rrr( _page_cacher_seenr rZ _to_fetch _bad_hostsskip_externals num_workers threadingRLock_lock_gplockplatform_check)r=r,r(r\rrs r.r\SimpleScrapingLocator.__init__Xs #T3=f=$S)  U %#&__& !( #rGc/Ul[UR5HSn[R"UR S9nSUlUR5 URRU5 MU g)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) _threadsranger\r]Thread_fetchdaemonstartra)r=irs r._prepare_threads&SimpleScrapingLocator._prepare_threadsssV  t''(A   4AAH GGI MM  # )rGcURHnURRS5 M URHnUR5 M /Ulg)z] Tell all the threads to terminate (by sending a sentinel value) and wait for them to do so. N)rerYrr)r=rs r. _wait_threads#SimpleScrapingLocator._wait_threadssBA NN  t $A FFH rGc(00S.nUR X lXl[URS[ U5-5nUR R5 URR5 UR5 [RSU5 URRU5 URR5 UR5 U?SSS5 U$!UR5 f=f!,(df  U$=f)Nrz%s/z Queueing %s)r`rdrrrr rXrnrWrlrrrYrrro)r=r~rdr,s r.r"SimpleScrapingLocator._get_projects, \\ K $ $--t)<=C JJ       " " $  ! ! # % ]C0""3'##%""$  ""$\ s%A3DA C-D-C??D Dz<\b(linux_(i\d86|x86_64|arm\w+)|win(32|_amd64)|macosx_?\d+)\bc8URRU5$)z4 Does an URL refer to a platform-specific download? )platform_dependentr))r=r,s r._is_platform_dependent,SimpleScrapingLocator._is_platform_dependents&&--c22rGcTUR(aURU5(aSnOURXR5n[R SX5 U(a3UR  URURU5 SSS5 U$U$!,(df  U$=f)z 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) rarurrrrr_rrd)r=r,rs r._process_download'SimpleScrapingLocator._process_downloads   4#>#>s#C#CD44S:K:KLD 13= ))$++t< t  s /B B'c0[U5upEn nURURUR-UR-5(aSnOUR (a#UR UR5(dSnO|UR UR5(dSnOYUS;aSnOPUS;aSnOGURU5(aSnO.URSS5Sn U R5S:XaSnOSn[RS XX(5 U$) zy Determine whether a link URL from a referring page and with a particular "rel" attribute should be queued for scraping. F)homepagedownload)httprftp:rr localhostTz#should_queue: %s (%s) from %s -> %s) rrrrrr[rrrusplitrrr) r=linkreferrerrBr8rr_rdhosts r. _should_queue#SimpleScrapingLocator._should_queues )1%aA ==//$2H2HH112 3 3F  )G)GF$$T]]33F 0 0F 3 3F  ( ( . .F<<Q'*Dzz|{* :D ' rGcURR5nU(aURU5nUcURR5 MTURHup4X0R ;dMUR R U5 URU5(dLURX1U5(a3[RSX15 URRU5 MMM URR5 U(dgGM![a Mf=f![a.nURR[U55 SnANiSnAff=f!URR5 f=f)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. NzQueueing %s from %s)rYr`get_pagercrCrXrrxrrrrrrr[r)r=r,pagerrBres r.rhSimpleScrapingLocator._fetchs5..$$&C +==-D| ((*&*ZZ zz1% $ t 4(,(>(>t(D(D$($6$6t#$F$F$*LL1F$R$(NN$6$6t$<%G)E &0((*1$8% $% .  ! -- .((*sTD/D/8A9D1D/ D,(D/+D,,D// E'9$E"E*"E''E**FcT[U5up#n nUS:XaB[RR[ U55(a[ [ U5S5nXR;a'URUn[RSX5 U$URSS5SnSnXpR;a[RSX5 U$[US S 0S 9n[RS U5 URRXRS 9n [RSU5 U R!5n U R#SS5n [$R'U 5(aU R)5n U R+5n U R#S5nU(aUR,UnU"U 5n Sn[.R1U 5nU(aUR3S5nU R5U5n [9X5nX`RU 'X`RU'U$![6a U R5S5n NFf=f![:a1nUR<S:wa[R?SUU5 SnANgSnAf[@agn[R?SUU5 URB URREU5 SSS5 SnAM!,(df  SnAN=fSnAf[Fa"n[R?SUU5 SnAGNSnAff=f!X`RU'f=f)z Get the HTML for an URL, possibly from an in-memory cache. XXX TODO Note: this cache is never actually cleared. It's assumed that the data won't get stale over the lifetime of a locator instance (not necessarily true for the default_locator). filez index.htmlzReturning %s from cache: %srrrNzSkipping %s due to bad host %szAccept-encodingidentity)rBz Fetching %sr'z Fetched %sz Content-Typer6zContent-Encodingzutf-8zlatin-1izFetch failed: %s: %s)$rosrisdirr rrrWrrrrZrrXrr(rr`HTML_CONTENT_TYPErgeturlrdecodersCHARSETr)r*r UnicodeErrorr&rr@rrr_rr)r=r,r8rrrrdrr>r rB content_type final_urlr encodingdecoderrres r.rSimpleScrapingLocator.get_pages)1 %aA V  l4.@ A A,s+\:C "" "%%c*F LL6 DT Q<<Q'*DF& =sIJ Gc,=z+JK!3LL4;;++C+FDLLs3"iikG#*;;~r#BL(..|<<$(KKM #yy{#*;;/A#B#&*mmH&=G#*4=D#*#NN<8'(wwqzH:#';;x#8D"&d!66<((3-3$$S)  ,:#';;y#9D:!Ivv}(()?aH2$$%;S!D++D1$ E$$%;S!DDE-3$$S)sD I%H6IH=:I<H==I L 'I61L6 L#K%&KK% L K" K%L"K%% L2L LLLL'z]*>([^<]+)r rr*)r=rdrrs r.r,SimpleScrapingLocator.get_distribution_names7sm}}T]]+"#5 #EF F&&// :E JJu{{1~ &; rG)rZr`r_rWrXrerYrr\rarrdr[r()N )rIrJrKrLrMzlib decompressrr\rlrorrErFrGrtrurxrrhrrrrQr r s@r.rKrKJs??BH $6 $ $%EFHddL3 (:B9v::67L  rGrKc>^\rSrSrSrU4SjrSrSrSrSr U=r $)DirectoryLocatoriCz7 This class locates distributions in a directory tree. c >URSS5Ul[[U]"S0UD6 [ R RU5n[ R RU5(d[SU-5eXl g)aL Initialise an instance. :param path: The root of the directory tree to search. :param kwargs: Passed to the superclass constructor, except for: * recursive - if True (the default), subdirectories are recursed into. If False, only the top-level directory is searched, recursiveTzNot a directory: %rNrH) rrrrr\rrabspathrrbase_dir)r=rrrs r.r\DirectoryLocator.__init__Hse K6 .88wwt$ww}}T"""#84#?@ @ rGc8URUR5$)z Should a filename be considered as a candidate for a distribution archive? As well as the filename, the directory which contains it is provided, though not used by the current implementation. )rr)r=rparents r.should_includeDirectoryLocator.should_includeYs   !=!=>>rGc 00S.n[R"UR5Hup4nUHnURXc5(dMR X65n[ SS[[RRU55SSS45nURXq5nU(dMURX(5 M UR(aM U$ U$)Nrrr6) rwalkrrrrrr rrrr) r=r~rdrootdirsfilesfnr,rs r.rDirectoryLocator._get_projectas,!#!7 D&&r00d/B$fb&2277??23F&G&("b&23C <>> "8 rGc [5n[R"UR5Hup#nUHnUR XR5(dM[R R X%5n[SS[[R RU55SSS45nURUS5nU(dMURUS5 M UR(aM U$ U$)rrr6Nr~) rrrrrrrrr rrrr)r=rdrrrrr,rs r.r'DirectoryLocator.get_distribution_namesqs!#!7 D&&r00d/B$fb&2277??23F&G&("b&23C <>> "8 rG)rr) rIrJrKrLrMr\rrrrQr r s@r.rrCs!"? rGrc$\rSrSrSrSrSrSrg) JSONLocatoriz 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[S5err|ris r.r"JSONLocator.get_distribution_namesrrGc 600S.n[U5nU(GaURS/5HnUSS:wd USS:waM[USUSURS S 5URS 9nURnUS UlS U;aUS (a SUS 4UlURS05UlURS05UlXRUR'USRUR[55RUS 5 M U$)Nrrptypesdist pyversionsourcer~rrzPlaceholder for summary)rr8r,rr requirementsexportsr) rr`rr8rrr dependenciesrrrrr)r=r~rdr rrrs r.rJSONLocator._get_projects,% "-=G+tK/@H/L!ftI)-)2K*M(, 5]] $U  t#X#($x."9DK"&((>2">#xx 26 '+t||$v))$,,>BB4;O%.& rGrHN)rIrJrKrLrMrrrQrHrGr.rrs E rGrc2^\rSrSrSrU4SjrSrSrU=r$)DistPathLocatorizv This locator finds installed distributions in a path. It can be useful for adding to an :class:`AggregatingLocator`. c h>[[U] "S0UD6 [U[5(deXlg)z[ Initialise an instance. :param distpath: A :class:`DistributionPath` instance to search. NrH)rrr\ isinstancerdistpath)r=rrrs r.r\DistPathLocator.__init__s0 ot-77($45555 rGc URRU5nUc00S.nU$URUSUR[UR/50SUR[S/500nU$)Nrrr)rget_distributionrrr)r=r~rrds r.rDistPathLocator._get_projectss}}--d3 < R0F  dsDOO+<'=>DLL#tf+6F  rG)r) rIrJrKrLrMr\rrQr r s@r.rrs!  rGrc^\rSrSrSrU4SjrU4SjrSr\"\ RR\5r Sr Sr SrU=r$) AggregatingLocatorizA This class allows you to chain and/or merge a list of locators. ch>URSS5UlXl[[U]"S0UD6 g)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). mergeFNrH)rrlocatorsrrr\)r=rrrs r.r\AggregatingLocator.__init__s/ZZ/    $0:6:rGcp>[[U] 5 URHnUR5 M grm)rrror)r=rrs r.roAggregatingLocator.clear_caches+  $35}}G    !%rGcBXlURH nXlM grm)rsrr8)r=rwrs r.rxAggregatingLocator._set_schemes }}G"N%rGc0nURGH4nURU5nU(dMUR(aURS05nURS05nUR U5 URS5nU(a7U(a0UR 5HupX;aXx==U -ss'MXU'M URS5n U(aU (aU R U5 MMMUR cSn O/Sn UH'nUR RU5(dM%Sn O U (dGM2Un U$ U$)NrrTF)rrrr`updaterrYr) r=r~rdrrrrdfrrddfounds r.rAggregatingLocator._get_projects}}G##D)Aq::"JJvr2E$jjB7GMM!$F+B$)KKMDA w " ()1 %2  I.B2 '*$&w||+ $ %!"A#||11!44(, %"#u!" Q%P rGc[5nURHnXR5-nM U$![a M)f=fr)rrrr})r=rdrs r.r)AggregatingLocator.get_distribution_namessJ}}G 88::%  '  s3 AA)rsrr)rIrJrKrLrMr\rorxrrSr8fgetrrrQr r s@r.rrs?; " # gnn)); 7F*X  rGrzhttps://pypi.org/simple/r&r'legacyrcJ\rSrSrSrS SjrSrSrSrSr S r S S jr S r g)DependencyFinderi*z( Locate dependencies for distributions. NctU=(d [Ul[URR5Ulg)zN Initialise an instance, using the specified locator to locate distributions. N)default_locatorrr!r8)r=rs r.r\DependencyFinder.__init__/s& 1/  !4!45 rGcl[RSU5 URnXRU'XRX!R 4'UR H[n[U5up$[RSX$U5 URRU[55RXA45 M] g)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) rrrD dists_by_namedistsrprovidesrprovidedrrr)r=rr~prs r.add_distribution!DependencyFinder.add_distribution7s  -t4xx#'4 +/ D,,'(A215MD LL6t L MM $ $T35 1 5 5wo FrGcn[RSU5 URnURU URX!R 4 UR H^n[U5up$[RSX$U5 URUnURXA45 U(aMQURU M` g)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) rrrDrrrrrrremove)r=rr~rrss r.remove_distribution$DependencyFinder.remove_distributionFs  /6xx   t $ JJll+ ,A215MD LL;TD Q d#A HHg_ %1MM$' rGcURRU5nU$![a2 UR5SnURRU5nU$f=f)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)r8rYr"r)r=reqtrYr~s r. get_matcherDependencyFinder.get_matcherXs[ 0kk))$/G  ' 0::<?Dkk))$/G  0s8AAcURU5nURn[5nURnX5;a:XSH2upgUR U5nU(dM UR U5 U$ U$![ a SnN/f=f)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)rrDrrrr"r) r=rrYr~rdrrproviderrs r.find_providersDependencyFinder.find_providershs""4({{==  %-^!"#MM'2E5JJx( &4 /"!E"sA55 BBcURUn[5nUHGnURU5nURUR5(aM6UR U5 MI U(a!UR SX[ U545 SnU$URU5 URU UH6nURRU[55R U5 M8 URU5 SnU$)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) reqtsrrrrr frozensetrrr) r=rotherproblemsrlist unmatchedrrYrds r.try_to_replaceDependencyFinder.try_to_replaces& 5!E A&&q)G==!1!122 a   LL-#I.0 1F  $ $U + 5! %%h6::1=  ! !( +F rGc0Ul0Ul0Ul0Ul[ U=(d /5nSU;a!UR S5 U[ /SQ5-n[ U[5(aU=pE[RSU5 OBURRUUS9=pEUc[SU-5e[RSU5 SUl [ 5n[ U/5n[ U/5nU(GaUR5nURn XR;aUR!U5 O&URU n X:waUR#XJU5 UR$UR&-n UR(n [ 5n U(a,XH;a'SH!nS U-nX;dMU [+US U-5-n M# X-U -nUGHnUR-U5nU(Gd [RS U5 URRUUS9nUc!U(dURRUSS9nUc*[RS U5 UR/S U45 OURUR0nnUU4UR;aUR/U5 UR/U5 UU ;a6XH;a1UR/U5 [RSUR25 UH|nURn XR;a5URR5U[ 55R/U5 MSURU n U U:wdMjUR#UX5 M~ GM U(aGM[ URR755nUH?nXH;UlUR8(dM[RSUR25 MA [RSU5 UU4$)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)rzUnable to locate %rz located %sT)testbuilddevz:%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)rrrrrrrrrrrrr requestedrrDrr run_requires meta_requiresbuild_requiresgetattrrrrname_and_versionrvaluesbuild_time_dependency)r=r meta_extrasrrr#rtodo install_distsr~rireqtssreqtsereqtsrDre all_reqtsr providersrnrrrs r.findDependencyFinder.finds4   ++, K    u % 3=> >K k< 0 0& &D LL3U ;<<..{;F/H HD|&'<{'JKK LLu -5D6{UG 88:D88D---%%d+**40=''X>&&););;F((FUFt43C A''$ 0C"DD4&0I //2  LL! $ 2 24 8 A: //5C#+)dfDJJ%%'(D)-)BD &))) B!224  '/hrG)rrrrrr8rm)NF) rIrJrKrLrMr\rrrrrrrQrHrGr.rr*s-6 G($ 0&PlrGrrm)LrNiorrloggingrrrEr] ImportErrordummy_threadingrr6rcompatrrrr r r r r rrr;rrrrdatabaserrrrrrutilrrrrrrrr rr!r"rr#r$ getLoggerrIrrFrrGrrr*r/r1objectrSrrr&rKrrrrrrrrHrGr.r$s    ( 3333@?4###9'   8 $jj./ **2BDD 9JJ?@'  F)F>BfBJ .W.`BgBJ767twGwr?w?B$'$Lg8VVv%)*D257# %   jvjs ('(sE00 E>=E>