2bi0 SSKrSSKrSSKJr SSKJrJrJrJrJ r J r J r SSK J r SSKJr SSKJr SSKJr SSKJr SS KJr SS KJr SS KJrJr SS KJr SS KJ r SSK!J"r" SSK#J$r$J%r% \(aSSK&J'r' "SS\5r(\ \(r)\RT"\+5r,"SS\5r-SSS\S\ \\\.\\.44Sjr/SSS\S\.4Sjr0g)N)Values) TYPE_CHECKING GeneratorListOptionalSequenceTuplecastcanonicalize_name) cmdoptions)IndexGroupCommand)SUCCESS) CommandError) LinkCollector) PackageFinder)BaseDistributionget_environment)SelectionPreferences) PipSession) stdlib_pkgs)tabulate write_output)DistributionVersionc.\rSrSr%Sr\\S'\\S'Srg)_DistWithLatestInfozGive the distribution object a couple of extra fields. These will be populated during ``get_outdated()``. This is dirty but makes the rest of the code much cleaner. latest_versionlatest_filetypeN) __name__ __module__ __qualname____firstlineno____doc__r__annotations__str__static_attributes__r ڍ/builddir/build/BUILDROOT/alt-python313-pip-23.3.1-3.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/pip/_internal/commands/list.pyrrs ,+r)rc\rSrSrSrSrSrSSjrS\S \ S\ 4S jr S\S \ \ S\4S jrS SS\SS4SjrS SS\SS4SjrS SS\SS4SjrS SS\S\S4SjrS SS\SS4SjrS\ \ \ S\ \ SS4SjrSrg) ListCommand'zh List installed packages, including editables. Packages are listed in a case-insensitive sorted order. Tz %prog [options]returnNc URRSSSSSS9 URRSSSSS S9 URRS S SSS S9 URRS SSSSS9 URRSSSSSS9 URR[R"55 URRSSSSS9 URRSSSSSSS9 URRSSSSS 9 URRS!S"S#S$S 9 URRS%SS#S&S'S(9 URR[R"55 [R "[R UR5nURRS)U5 URRS)UR5 g)*Nz-oz --outdated store_trueFzList outdated packages)actiondefaulthelpz-uz --uptodatezList uptodate packagesz-ez --editablezList editable projects.z-lz--localzSIf in a virtualenv that has global access, do not list globally-installed packages.z--useruserz,Only output packages installed in user-site.)destr1r2r3z--prezYInclude pre-release and development versions. By default, pip only finds stable versions.z--formatstore list_formatcolumns)r8freezejsonzSelect the output format among: columns (default), freeze, or json. The 'freeze' format cannot be used with the --outdated option.)r1r5r2choicesr3z--not-required not_requiredz>List packages that are not dependencies of installed packages.)r1r5r3z--exclude-editable store_falseinclude_editablez%Exclude editable package from output.z--include-editablez%Include editable package from output.T)r1r5r3r2r) cmd_opts add_optionr list_path list_excludemake_option_group index_groupparserinsert_option_group)self index_optss r* add_optionsListCommand.add_options2s    ) !     ) !     * !     / !    ? !    !5!5!78   2 !    1Q !    Q !     #8 !   #8 !    !8!8!:;11*2H2H$++V  '':6 ''4==9r)optionssessionc|[R"X!S9n[SURS9n[R"UUS9$)z; Create a package finder appropriate to this list command. )rKF) allow_yankedallow_all_prereleases)link_collectorselection_prefs)rcreaterprer)rGrKrLrPrQs r*_build_package_finder!ListCommand._build_package_findersE '--gG/")++  ##)+  r)argsc:UR(aUR(a [S5eUR(aURS:Xa [S5e[R "U5 [ [5nUR(a"URSUR55 [UR5RURURURUR US9Vs/sHn[#SU5PM nnUR$(aUR'XQ5nUR(aUR)XQ5nO"UR(aUR+XQ5nUR-XQ5 [.$s snf)Nz5Options --outdated and --uptodate cannot be combined.r9z?List format 'freeze' cannot be used with the --outdated option.c38# UHn[U5v M g7fNr ).0ns r* "ListCommand.run..sG6F)!,,6F) local_only user_onlyeditables_onlyinclude_editablesskipr)outdateduptodaterr7r check_list_path_optionsetrexcludesupdaterpathiter_installed_distributionslocalr4editabler>r r<get_not_required get_outdated get_uptodateoutput_package_listingr)rGrKrVrcdpackagess r*runListCommand.runsP    0 0VW W    3 3x ?Q  ))'2;    KKGg6F6FG G%W\\2OO"==!,,&//")":": P '  & *  '    ,,X?H   ((;H   ((;H ##H61 ' sFrs_ProcessedDistscURX5Vs/sH!nURUR:dMUPM# sn$s snfrYiter_packages_latest_infosrversionrGrsrKdists r*roListCommand.get_outdatedsF 77J J""T\\1 J   ??cURX5Vs/sH!nURUR:XdMUPM# sn$s snfrYrxr{s r*rpListCommand.get_uptodatesF 77J J""dll2 J   r~cUVVs1sH9nUR5=(d SHn[UR5iM M; nnn[UVs1sHofRU;dMUiM sn5$s snnfs snf)Nr )iter_dependenciesr namelistcanonical_name)rGrsrKr|depdep_keyspkgs r*rnListCommand.get_not_requireds} !  ..06B6 chh '6 (   HSHS0B0B(0RSHSTT TsAA6A<)A<)rNNc#^^# URT5nURTU5mSSS[S4UU4Sjjn[XA5H nUcMUv M SSS5 g!,(df  g=f7f)Nr|rr.c>TRUR5nTR(d/UVs/sH"nURR(aM UPM$ nnTR URS9nUR U5nUcgURnURR(aSnOSnXPl X`l U$s snf)N) project_namewheelsdist) find_all_candidatesrrSrz is_prereleasemake_candidate_evaluatorsort_best_candidatelinkis_wheelrr) r|all_candidates candidate evaluatorbest_candidateremote_versiontypfinderrKs r* latest_info;ListCommand.iter_packages_latest_infos..latest_infos"(!;!;D>")7#& #;;!%!4!4< "+!>!>~!N!)!/!7!7!&&//!C!C&4#'*$ )&s CC)_build_sessionrTrmap)rGrsrKrLrr|rs ` @r*ry&ListCommand.iter_packages_latest_infossq  )W//AF + /0  8K2#J3?* ) )s"A26A!A! A2! A/+A2c[USS9nURS:Xa&U(a[X5up4URX45 gURS:XaiUHbnURS:a.[ SUR URUR5 MA[ SUR UR5 Md gURS:Xa[ [X55 gg) NcUR$rY)r)r|s r*4ListCommand.output_package_listing..s T00r))keyr8r9z %s==%s (%s)z%s==%sr:) sortedr7format_for_columnsoutput_package_listing_columnsverboserraw_namerzlocationformat_for_json)rGrsrKdataheaderr|s r*rq"ListCommand.output_package_listing s 0    ) +-h@LD  / / =  H , ??a' %t}}dllDMM!4==$,,G ! F * ; <+r)rrc[U5S:aURSU5 [U5up4[U5S:a(URSSRSU555 UHn[ U5 M g)Nrr c3,# UH nSU-v M g7f)-Nr rZxs r*r\=ListCommand.output_package_listing_columns..,s*BEq37Es)leninsertrjoinr)rGrr pkg_stringssizesvals r*r*ListCommand.output_package_listing_columns!sg t9q= KK6 "%d^  t9q=   q#((*BE*B"B CC  r)r )r.N)r!r"r#r$r%ignore_require_venvusagerIrrrrTrr'intrtrorprnrryrqrr(r r)r*r,r,'s  EV:p  (2  &'6'c's'R ) 4:   ) 4:   U) U4: U  U$)$4:$ 4 5$L=)=4:= =*cO-1#Y r)r,pkgsrvrKr.cRSS/nURnU(aURSS/5 [SU55nU(aURS5 URS:aURS5 URS:aURS 5 /nUGHnUR [ UR5/nU(a?UR[ UR55 URUR5 U(a$URUR=(d S 5 URS:a$URUR=(d S 5 URS:aURUR5 URU5 GM XR4$) zS Convert the package data into something usable by output_package_listing_columns. PackageVersionLatestTypec38# UHoRv M g7frY)rmrs r*r\%format_for_columns..?s1Dq Dr^zEditable project locationrLocation Installer) rdextendanyappendrrr'rzrreditable_project_locationr installer)rrKrrunning_outdated has_editablesrprojrows r*rr2s? #F'' x()1D11M 12! j!! k" D}}c$,,/0  JJs4../ 0 JJt++ ,  JJt55; < ??a  JJt}}* + ??a  JJt~~ & C#& <r)rsc/nUHnUR[UR5S.nURS:a'UR=(d SUS'UR US'UR (a'[UR5US'URUS'URnU(aXTS'URU5 M [R"U5$) N)rrzrrrrrrr) rr'rzrrrrdrrrrr:dumps)rsrKrr|infors r*rr_s DMM4<<(  ??a #}}2D  $D    %()<)<%=D! "&*&:&:D" #$($B$B! $0I, - D ::d r))1r:loggingoptparsertypingrrrrrr r pip._vendor.packaging.utilsr pip._internal.clir pip._internal.cli.req_commandrpip._internal.cli.status_codesrpip._internal.exceptionsrpip._internal.index.collectorr"pip._internal.index.package_finderrpip._internal.metadatarr$pip._internal.models.selection_prefsrpip._internal.network.sessionrpip._internal.utils.compatrpip._internal.utils.miscrrpip._internal.metadata.baserrrv getLoggerr!loggerr,r'rrr r)r*rs RRR9(;217<DE42;?.23O   8 $H#HV* *&,* 4S ?DI %&*Z/&Sr)