+
    '(jF5                       ^ RI Ht ^ RIt^ RIt^ RIt^ RIHtHtHt ^ RI	H
t
 ^ RIHt ^ RIHtHt ^ RIHt ^ RIHtHt ^ R	IHt ^ R
IHt ^ RIHt ^ RIHt ^ RIHtHt ^ RI H!t! ^ RI"H#t# ^ RI$H%t%H&t& ]'       d!   ^ RI'H(t( ^ RI)H*t*  ! R R]4      t+]]+,          t,]PZ                  ! ].4      t/ ! R R]4      t0R R lt1R R lt2R# )    )annotationsN)	GeneratorIteratorSequence)Parser)Values)TYPE_CHECKINGcastcanonicalize_name)InvalidVersionVersion)
cmdoptions)IndexGroupCommand)SUCCESS)CommandError)BaseDistributionget_environment)SelectionPreferences)stdlib_pkgs)tabulatewrite_outputPackageFinder)
PipSessionc                  0    ] tR t^t$ RtR]R&   R]R&   RtR# )_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.
r   latest_versionstrlatest_filetype N)__name__
__module____qualname____firstlineno____doc____annotations____static_attributes__r!       P/home/ubuntu/cf-venv/lib/python3.14/site-packages/pip/_internal/commands/list.pyr   r      s    	  r)   r   c                     a  ] tR t^+tRtRtRtR R lt]P                  R V 3R ll4       t
R R	 ltR
 R ltR R ltR R ltR R ltR R ltR R ltR R ltRtV ;t# )ListCommandzh
List installed packages, including editables.

Packages are listed in a case-insensitive sorted order.
Tz
      %prog [options]c                   V ^8  d   QhRR/# )   returnNoner!   )formats   "r*   __annotate__ListCommand.__annotate__6   s     S: S:T S:r)   c           	     	t   V P                   P                  R RRRRR7       V P                   P                  RRRRRR7       V P                   P                  R	R
RRRR7       V P                   P                  RRRRRR7       V P                   P                  RRRRRR7       V P                   P                  \        P                  ! 4       4       V P                   P                  RRRRR&RR7       V P                   P                  RRRRR7       V P                   P                  RRRR R7       V P                   P                  R!RRR"R#R$7       V P                   P                  \        P                  ! 4       4       \        P
                  ! \        P                  V P                  4      p\        P
                  ! \        P                  V P                  4      pV P                  P                  ^ V4       V P                  P                  ^ V4       V P                  P                  ^ V P                   4       R%# )'z-oz
--outdated
store_trueFzList outdated packages)actiondefaulthelpz-uz
--uptodatezList uptodate packagesz-ez
--editablezList editable projects.z-lz--localzSIf in a virtualenv that has global access, do not list globally-installed packages.z--useruserz,Only output packages installed in user-site.)destr6   r7   r8   z--formatstorelist_formatcolumnszSelect the output format among: columns (default), freeze, or json. The 'freeze' format cannot be used with the --outdated option.)r6   r:   r7   choicesr8   z--not-requirednot_requiredz>List packages that are not dependencies of installed packages.)r6   r:   r8   z--exclude-editablestore_falseinclude_editablez%Exclude editable package from output.z--include-editablez#Include editable package in output.T)r6   r:   r8   r7   N)r=   freezejson)
cmd_opts
add_optionr   	list_pathlist_excludemake_option_groupindex_groupparserpackage_selection_groupinsert_option_group)self
index_optsselection_optss   &  r*   add_optionsListCommand.add_options6   s      ) 	! 	
 	  ) 	! 	
 	  * 	! 	
 	  / 	! 		
 	  ? 	! 	
 	  !5!5!78  1Q 	! 
	
 	  Q	 	! 	
 	    #8	 	! 	
 	   #6 	! 	
 	  !8!8!:;11*2H2H$++V
#55..KK

 	'':6''>:''4==9r)   c               $    V ^8  d   QhRRRRRR/# )r.   optionsr   args	list[str]r/   zIterator[None]r!   )r1   s   "r*   r2   r3      s!       y ^ r)   c              #  	   <"   VP                   '       g   VP                  '       g   R x  R # \        SV `  W4      ;_uu_ 4        R x  R R R 4       R #   + '       g   i     R # ; i5iN)outdateduptodatesuperpip_version_check)rM   rS   rT   	__class__s   &&&r*   r[   ListCommand.pip_version_check   sD        G$4$4$4W&w55 6555s"   $A(A(A

A(A%		A(c               $    V ^8  d   QhRRRRRR/# )r.   rS   r   sessionr   r/   r   r!   )r1   s   "r*   r2   r3      s$     
 

(2
	
r)   c                    ^ RI Hp ^ RIHp VP	                  W!R7      p\        RVP                  R7      pVP                  ! VVR7      # )z;
Create a package finder appropriate to this list command.
)LinkCollectorr   )rS   F)allow_yankedrelease_control)link_collectorselection_prefs)pip._internal.index.collectorra   "pip._internal.index.package_finderr   creater   rc   )rM   rS   r_   ra   r   rd   re   s   &&&    r*   _build_package_finder!ListCommand._build_package_finder   sQ     	@D&--g-G /#33

 ##)+
 	
r)   c               $    V ^8  d   QhRRRRRR/# )r.   rS   r   rT   rU   r/   intr!   )r1   s   "r*   r2   r3      s!     ) )6 ) )s )r)   c                	z   \         P                  ! V4       VP                  '       d   VP                  '       d   \	        R 4      hVP                  '       d   VP
                  R8X  d   \	        R4      h\         P                  ! V4       \        \        4      pVP                  '       d#   VP                  R VP                   4       4       \        VP                  4      P                  VP                  VP                  VP                   VP"                  VR7       Uu. uF  p\%        RV4      NK  	  ppVP&                  '       d   V P)                  WQ4      pVP                  '       d   V P+                  WQ4      pM#VP                  '       d   V P-                  WQ4      pV P/                  WQ4       \0        # u upi )z5Options --outdated and --uptodate cannot be combined.rB   z?List format 'freeze' cannot be used with the --outdated option.c              3  8   "   T F  p\        V4      x  K  	  R # 5irW   r   ).0ns   & r*   	<genexpr>"ListCommand.run.<locals>.<genexpr>   s     G6F)!,,6F   )
local_only	user_onlyeditables_onlyinclude_editablesskipr   )r   check_release_control_exclusiverX   rY   r   r<   check_list_path_optionsetr   excludesupdater   pathiter_installed_distributionslocalr9   editablerA   r
   r?   get_not_requiredget_outdatedget_uptodateoutput_package_listingr   )rM   rS   rT   rx   dpackagess   &&&   r*   runListCommand.run   ss   227; 0 0 0VWW 3 3x ?Q  	))'2;KKGg6F6FGG %W\\2OO"==!,,&//")":": P 	%
 &* 	 	%
 ,,X?H((;H((;H##H61	%
s    F8c               $    V ^8  d   QhRRRRRR/# r.   r   _ProcessedDistsrS   r   r/   r!   )r1   s   "r*   r2   r3      $     
 
'
28
	
r)   c                	    V P                  W4       Uu. uF"  pVP                  VP                  8  g   K   VNK$  	  up# u upi rW   iter_packages_latest_infosr   versionrM   r   rS   dists   &&& r*   r   ListCommand.get_outdated   sH    
 77J
J""T\\1 DJ
 	
 
   ??c               $    V ^8  d   QhRRRRRR/# r   r!   )r1   s   "r*   r2   r3      r   r)   c                	    V P                  W4       Uu. uF"  pVP                  VP                  8X  g   K   VNK$  	  up# u upi rW   r   r   s   &&& r*   r   ListCommand.get_uptodate   sH    
 77J
J""dll2 DJ
 	
 
r   c               $    V ^8  d   QhRRRRRR/# r   r!   )r1   s   "r*   r2   r3      s)     U U'U28U	Ur)   c                	    V UUu0 uF9  pVP                  4       ;'       g    R F  p\        VP                  4      kK  	  K;  	  ppp\        V Uu0 uF  qfP                  V9  g   K  VkK  	  up4      # u uppi u upi )Nr!   )iter_dependenciesr   namelistcanonical_name)rM   r   rS   r   depdep_keyspkgs   &&&    r*   r   ListCommand.get_not_required   s    
 !
 ..066B6 chh'6 (  	 
 HSHS0B0B(0RSSHSTT
 Ts   A5#A5A;(A;c               $    V ^8  d   QhRRRRRR/# )r.   r   r   rS   r   r/   z*Generator[_DistWithLatestInfo, None, None]r!   )r1   s   "r*   r2   r3      s$     # #'#28#	3#r)   c              #  	   a aa"   S P                  S4      ;_uu_ 4       pS P                  SV4      oR  VVV 3R llp\        WA4       F  pVf   K	  Vx  K  	  RRR4       R#   + '       g   i     R# ; i5i)c                    V ^8  d   QhRRRR/# )r.   r   r   r/   z_DistWithLatestInfo | Noner!   )r1   s   "r*   r2   <ListCommand.iter_packages_latest_infos.<locals>.__annotate__   s      )+r)   c                  < SP                  V P                  4      pS	P                  SV P                  4      '       d0   V Uu. uF#  pVP                  P                  '       d   K!  VNK%  	  ppSP                  V P                  R 7      pVP                  V4      pVf   R# VP                  pVP                  P                  '       d   RpMRpWPn	        W`n
        V # u upi ))project_nameNwheelsdist)find_all_candidatesr   should_exclude_prereleaser   is_prereleasemake_candidate_evaluatorsort_best_candidatelinkis_wheelr   r    )
r   all_candidates	candidate	evaluatorbest_candidateremote_versiontypfinderrS   rM   s
   &      r*   latest_info;ListCommand.iter_packages_latest_infos.<locals>.latest_info   s     "(!;!;D<O<O!P11'4;N;NOO *8&)7I(00>> "	)7 # & #;;!%!4!4 < 	 "+!>!>~!N!)!/!7!7!&&///!C!C&4#'*$)&s   C&CN)_build_sessionri   map)rM   r   rS   r_   r   r   r   s   f&f   @r*   r   &ListCommand.iter_packages_latest_infos   sa        ))W//AF 6 K2#J 3= *)))s"   A7-A#A#
A7#A4	.	A7c               $    V ^8  d   QhRRRRRR/# )r.   r   r   rS   r   r/   r0   r!   )r1   s   "r*   r2   r3     s$     = ='=28=	=r)   c                	   \        VR  R7      pVP                  R8X  d)   V'       d!   \        W4      w  r4V P                  W44       R# VP                  R8X  d\   V FS  p VP                   RVP
                   2pVP                  ^8  d   \        RWeP                  4       KH  \        V4       KU  	  R# VP                  R8X  d   \        \        W4      4       R# R#   \         d    TP                   RTP                   2p Li ; i)	c                    V P                   # rW   )r   )r   s   &r*   <lambda>4ListCommand.output_package_listing.<locals>.<lambda>  s
    T00r)   )keyr=   rB   z==z===z%s (%s)rC   N)sortedr<   format_for_columnsoutput_package_listing_columnsraw_namer   r   raw_versionverboser   locationformat_for_json)rM   r   rS   dataheaderr   
req_strings   &&&    r*   r   "ListCommand.output_package_listing  s     0
 )+-h@LD//=  H, I$(MM?"T\\N!CJ ??a' JF , !   F*;< + & I$(MM?#d6F6F5G!HJIs   C&DDc               $    V ^8  d   QhRRRRRR/# )r.   r   zlist[list[str]]r   rU   r/   r0   r!   )r1   s   "r*   r2   r3   1  s$      #-6	r)   c                	    \        V4      ^ 8  d   VP                  ^ V4       \        V4      w  r4\        V4      ^ 8  d)   VP                  ^RP                  R V 4       4      4       V F  p\	        V4       K  	  R# )r    c              3  4   "   T F  pR V,          x  K  	  R# 5i)-Nr!   ro   xs   & r*   rq   =ListCommand.output_package_listing_columns.<locals>.<genexpr><  s     *BEq377Es   N)leninsertr   joinr   )rM   r   r   pkg_stringssizesvals   &&&   r*   r   *ListCommand.output_package_listing_columns1  sg     t9q=KK6"%d^ t9q=q#((*BE*B"BCC r)   r!   )r"   r#   r$   r%   r&   ignore_require_venvusagerP   
contextlibcontextmanagerr[   ri   r   r   r   r   r   r   r   r(   __classcell__)r\   s   @r*   r,   r,   +   sh     ES:j  
.)V

U#J=. r)   r,   c               $    V ^8  d   QhRRRRRR/# )r.   pkgsr   rS   r   r/   z!tuple[list[list[str]], list[str]]r!   )r1   s   "r*   r2   r2   B  s$     9 9
9$*9&9r)   c                   RR.pVP                   pV'       d   VP                  RR.4       R R lpV  Uu. uF
  qT! V4      NK  	  pp\        V4      pV'       d   VP                  R4       \        ;QJ d    R V  4       F  '       g   K   R	M	  R
M! R V  4       4      pV'       d   VP                  R4       VP                  ^8  d   VP                  R4       VP                  ^8  d   VP                  R4       . p	\        V 4       EF.  w  rVP                  VP                  .pV'       d@   VP                  \        VP                  4      4       VP                  VP                  4       V'       d"   TP                  Wj,          ;'       g    R4       V'       d&   TP                  VP                  ;'       g    R4       VP                  ^8  d&   TP                  VP                  ;'       g    R4       VP                  ^8  d   VP                  VP                  4       V	P                  V4       EK1  	  W3# u upi )zS
Convert the package data into something usable
by output_package_listing_columns.
Packager   LatestTypec                    V ^8  d   QhRRRR/# )r.   r   r   r/   z
str | Noner!   )r1   s   "r*   r2   (format_for_columns.<locals>.__annotate__O  s     : :. :: :r)   c                     V P                  R 4      p\        4       P                  T4      P	                  R4      #   \         d     R# i ; i)WHEELNBuild)	read_textFileNotFoundErrorr   parsestrget)r   
wheel_files   & r*   wheel_build_tag+format_for_columns.<locals>.wheel_build_tagO  sI    	0J x  ,0099 ! 		s   ; A
	A
r   c              3  8   "   T F  qP                   x  K  	  R # 5irW   )r   r   s   & r*   rq   %format_for_columns.<locals>.<genexpr>[  s     1Dq

Drs   TFzEditable project locationLocation	Installer )rX   extendanyappendr   	enumerater   r   r   r   r    editable_project_locationr   	installer)r   rS   r   running_outdatedr   p
build_tagshas_build_tagshas_editablesr   iprojrows   &&           r*   r   r   B  s    #F''x(): /33d/!$dJ3_NgC1D1CCC1D11M12!j!!k"DT? }}d../JJs4../0JJt++,JJz}**+JJt55;;<??aJJt}}**+??aJJt~~&C) #, <K 4s   I c               $    V ^8  d   QhRRRRRR/# )r.   r   r   rS   r   r/   r   r!   )r1   s   "r*   r2   r2   ~  s!      o  3 r)   c                    . pV  F  p \        VP                  4      pR VP                  RV/pVP
                  ^8  d)   VP                  ;'       g    RVR&   VP                  VR&   VP                  '       d(   \        VP                  4      VR&   VP                  VR&   VP                  pV'       d   WeR&   VP                  V4       K  	  \        P                  ! V4      #   \         d    TP                  p Li ; i)r   r   r   r   r   r   r    r   )r   r   r   r   r   r   r   r   rX   r   r    r   r   rC   dumps)r   rS   r   r   r   infor   s   &&     r*   r   r   ~  s    D	'$,,'G DMMw
 ??a#}}22D $D%()<)<%=D!"&*&:&:D"#$($B$B!$0I,-D% & ::d!  	'&&G	's   C##C=<C=)3
__future__r   r   rC   loggingcollections.abcr   r   r   email.parserr   optparser   typingr	   r
   pip._vendor.packaging.utilsr   pip._vendor.packaging.versionr   r   pip._internal.clir   pip._internal.cli.index_commandr   pip._internal.cli.status_codesr   pip._internal.exceptionsr   pip._internal.metadatar   r   $pip._internal.models.selection_prefsr   pip._internal.utils.compatr   pip._internal.utils.miscr   r   rg   r   pip._internal.network.sessionr   r   r   	getLoggerr"   loggerr,   r   r   r!   r)   r*   <module>r      s    "    9 9   & 9 A ( = 2 1 D E 2 ;@8.  23O 
		8	$T# Tn9xr)   