+
     h3  c                   st   ^ RI t ^ RIt^ RIHt ^ RIHt ^ RIHtHtH	t	H
t
HtHtHt ^ RIHt ^ RI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)]PT                  ! ]+4      t, ! R R]4      t-R R lt.R R lt/R# )    N)ParserValues)TYPE_CHECKING	GeneratorListOptionalSequenceTuplecastcanonicalize_name)Version)
cmdoptions)IndexGroupCommand)SUCCESS)CommandError)BaseDistributionget_environment)SelectionPreferences)stdlib_pkgs)tabulatewrite_outputPackageFinder)
PipSessionc                   s0   a  ] tR t^t o RtV 3R ltRtV 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.
c                s2   < V ^8  d   Qh/ S[ ;R&   S[;R&   # )   latest_versionlatest_filetype)r   strformat__classdict__   "@/usr/lib/python3.14/site-packages/pip/_internal/commands/list.py__annotate__Z _DistWithLatestInfo.__annotate__   s               N)__name__
__module____qualname____firstlineno____doc__Z__annotate_func____static_attributes____classdictcell__)r"   s   @r$   r   r      s     	  r&   r   c                   s   a a ] tR t^'t oRtRtRtV3R lR ltV3R lV 3R lltV3R lR	 lt	V3R
 lR lt
V3R lR ltV3R lR ltV3R lR ltV3R lR ltV3R lR ltV3R lR ltRtVtV ;t# )ListCommandzh
List installed packages, including editables.

Packages are listed in a case-insensitive sorted order.
Tz
      %prog [options]c                s   < V ^8  d   QhRR/# )r   returnNr'   r    r#   r$   r%   ListCommand.__annotate__2   s     V: V:T V:r&   c           	     s   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7       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V P                  P                  ^ V4       V P                  P                  ^ V P                   4       R'# ))z-oz
--outdatedZ
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.)destr2   r3   r4   z--prezYInclude pre-release and development versions. By default, pip only finds stable versions.z--formatZstorelist_formatcolumnszSelect the output format among: columns (default), freeze, or json. The 'freeze' format cannot be used with the --outdated option.)r2   r6   r3   Zchoicesr4   z--not-requirednot_requiredz>List packages that are not dependencies of installed packages.)r2   r6   r4   z--exclude-editableZstore_falseinclude_editablez%Exclude editable package from output.z--include-editablez#Include editable package in output.T)r2   r6   r4   r3   N)r8   freezejson)	Zcmd_optsZ
add_optionr   Z	list_pathZlist_excludeZmake_option_groupZindex_groupZparserZinsert_option_group)selfZ
index_opts   & r$   add_optionsZListCommand.add_options2   s     ) 	! 	
 	  ) 	! 	
 	  * 	! 	
 	  / 	! 		
 	  ? 	! 	
 	  !5!5!78  2 	! 	
 	  1Q 	! 
	
 	  Q	 	! 	
 	    #8	 	! 	
 	   #6 	! 	
 	  !8!8!:;11*2H2H$++V
'':6''4==9r&   c                s$   < V ^8  d   QhRS[ RR/# )r   optionsr0   Nr   r    r#   r$   r%   r1      s     6 6 64 6r&   c                sr   < VP                   '       g   VP                  '       d   \        SV `  V4       R # R # N)outdateduptodateZsuperhandle_pip_version_check)r=   r@   	__class__s   &&r$   rD   Z$ListCommand.handle_pip_version_check   s,    w///G,W5  0r&   c                s(   < V ^8  d   QhRS[ RRRR/# )r   r@   sessionr   r0   r   r   r    r#   r$   r%   r1      s%     
 

(4
	
r&   c                s    ^ 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   )r@   F)Zallow_yankedZallow_all_prereleases)link_collectorselection_prefs)Zpip._internal.index.collectorrG   "pip._internal.index.package_finderr   Zcreater   pre)r=   r@   rF   rG   r   rH   rI      &&&    r$   _build_package_finderZ!ListCommand._build_package_finder   sO     	@D&--g-G /")++

 ##)+
 	
r&   c                s<   < V ^8  d   QhRS[ RS[S[,          RS[/# )r   r@   argsr0   )r   r   r   Zintr    r#   r$   r%   r1      s&     ' '6 'c 's 'r&   c                sN   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       \.        # u upi )z5Options --outdated and --uptodate cannot be combined.r;   z?List format 'freeze' cannot be used with the --outdated option.c              3   s8   "   T F  p\        V4      x  K  	  R # 5irA   r   ).0Znr>   r$   	<genexpr>Z"ListCommand.run.<locals>.<genexpr>   s     G6F)!,,6F   )Z
local_onlyZ	user_onlyZeditables_onlyZinclude_editablesskipr   )rB   rC   r   r7   r   Zcheck_list_path_optionZsetr   ZexcludesZupdater   ZpathZiter_installed_distributionsZlocalr5   editabler:   r
   r9   get_not_requiredget_outdatedget_uptodateoutput_package_listingr   )r=   r@   rN   rR   Zdpackages   &&&   r$   runZListCommand.run   se    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   
F"c                (   < V ^8  d   QhRRRS[ RR/# r   rX   _ProcessedDistsr@   r0   r   r    r#   r$   r%   r1      %     
 
)
4:
	
r&   c                s    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 rA   iter_packages_latest_infosr   versionr=   rX   r@   dist   &&& r$   rU   ZListCommand.get_outdated   sH    
 77J
J""T\\1 DJ
 	
 
   ??c                r[   r\   r   r    r#   r$   r%   r1      r^   r&   c                s    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 rA   r_   rb   rd   r$   rV   ZListCommand.get_uptodate   sH    
 77J
J""dll2 DJ
 	
 
re   c                r[   r\   r   r    r#   r$   r%   r1      s*     U U)U4:U	Ur&   c                s    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'   )Ziter_dependenciesr   nameZlistcanonical_name)r=   rX   r@   rc   ZdepZdep_keysZpkgrL   r$   rT   ZListCommand.get_not_required   s    
 !
 ..066B6 chh'6 (  	 
 HSHS0B0B(0RSSHSTT
 Ts   A5#A5A;(A;c                s8   < V ^8  d   QhRRRS[ RS[R,          /# )r   rX   r]   r@   r0   )r   NN)r   r   r    r#   r$   r%   r1      s+     $ $)$4:$	4	5$r&   c              #  s   aa"   V P                  S4      ;_uu_ 4       pV P                  SV4      oR  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                s6    V ^8  d   QhRRR\         R,          /# )r   rc   r   r0   )r   r!      "r$   r%   Z<ListCommand.iter_packages_latest_infos.<locals>.__annotate__   s"      +/0r&   c                 s  < SP                  V P                  4      pSP                  '       g0   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 ))Zproject_nameNZwheelZsdist)Zfind_all_candidatesrg   rK   ra   Zis_prereleaseZmake_candidate_evaluatorZsort_best_candidateZlinkZis_wheelr   r   )	rc   Zall_candidatesZ	candidateZ	evaluatorZbest_candidateZremote_versionZtypfinderr@   s	   &      r$   latest_infoZ;ListCommand.iter_packages_latest_infos.<locals>.latest_info   s     "(!;!;D<O<O!P{{{ *8&)7I(00>> "	)7 # & #;;!%!4!4 < 	 "+!>!>~!N!)!/!7!7!&&///!C!C&4#'*$)&s   CCN)Z_build_sessionrM   Zmap)r=   rX   r@   rF   rk   rc   rj   s   &&f   @r$   r`   Z&ListCommand.iter_packages_latest_infos   sa        ))W//AF 8 K2#J 3? *)))s"   A5,A!A!
A5!A2	,	A5c                s(   < V ^8  d   QhRRRS[ RR/# )r   rX   r]   r@   r0   Nr   r    r#   r$   r%   r1     s%     = =)=4:=	=r&   c                s   \        VR  R7      pVP                  R8X  d)   V'       d!   \        W4      w  r4V P                  W44       R# VP                  R8X  dl   V Fc  pVP                  ^8  d/   \        RVP                  VP                  VP                  4       KB  \        RVP                  VP                  4       Ke  	  R# VP                  R8X  d   \        \        W4      4       R# R# )c                 s    V P                   # rA   )rg   )rc   s   &r$   Z<lambda>Z4ListCommand.output_package_listing.<locals>.<lambda>  s
    T00r&   )Zkeyr8   r;   z%s==%s (%s)z%s==%sr<   N)
Zsortedr7   format_for_columnsoutput_package_listing_columnsverboser   raw_namera   locationformat_for_json)r=   rX   r@   dataheaderrc   rY   r$   rW   Z"ListCommand.output_package_listing  s     0
 )+-h@LD//=  H, ??a' %t}}dllDMM !4==$,,G !   F*;< +r&   c                sZ   < V ^8  d   QhRS[ S[ S[,          ,          RS[ S[,          RR/# )r   rr   rs   r0   N)r   r   r    r#   r$   r%   r1   )  s1      cO-1#Y	r&   c                s    \        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    Z c              3   s4   "   T F  pR V,          x  K  	  R# 5i)Z-Nr'   rO   Zxr>   r$   rP   Z=ListCommand.output_package_listing_columns.<locals>.<genexpr>4  s     *BEq377Es   N)ZlenZinsertr   Zjoinr   )r=   rr   rs   Zpkg_stringsZsizesZvalrY   r$   rm   Z*ListCommand.output_package_listing_columns)  sg     t9q=KK6"%d^ t9q=q#((*BE*B"BCC r&   r'   )r(   r)   r*   r+   r,   Zignore_require_venvZusager?   rD   rM   rZ   rU   rV   rT   r`   rW   rm   r-   r.   Z__classcell__)rE   r"   s   @@r$   r/   r/   '   s      EV: V:p6 6
 
.' 'R
 

 
U U$ $L= =*  r&   r/   c          	      s    V ^8  d   QhRRR\         R\        \        \        \        ,          ,          \        \        ,          3,          /# )r   pkgsr]   r@   r0   )r   r	   r   r   rh   ri   r$   r%   r%   :  s:     9 9
9&,9
4S	?DI%&9r&   c                s   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       VP                  ^8  d   VP                  R4       VP                  ^8  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       . 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.
ZPackager   ZLatestZTypec                sF    V ^8  d   QhR\         R\        \        ,          /# )r   rc   r0   )r   r   r   rh   ri   r$   r%   Z(format_for_columns.<locals>.__annotate__G  s     : :. :8C= :r&   c                 s     V P                  R 4      p\        4       P                  T4      P	                  R4      #   \         d     R# i ; i)ZWHEELNBuild)Z	read_textZFileNotFoundErrorr   ZparsestrZget)rc   Z
wheel_filer>   r$   wheel_build_tagZ+format_for_columns.<locals>.wheel_build_tagG  sI    	0J x  ,0099 ! 		s   ; A
	A
rv   ZLocationZ	Installerc              3   s8   "   T F  qP                   x  K  	  R # 5irA   )rS   rt   r>   r$   rP   Z%format_for_columns.<locals>.<genexpr>X  s     1Dq

DrQ   TFzEditable project location )rB   ZextendZanyappendrn   Z	enumeratero   Zraw_versionr   r   r   editable_project_locationrp   	installer)ru   r@   rs   Zrunning_outdatedrw   ZpZ
build_tagsZhas_build_tagsZhas_editablesrr   ZiZprojZrows   &&           r$   rl   rl   :  s    #F''x(): /33d/!$dJ3_Ng!j!!k"C1D1CCC1D11M12DT? }}d../JJs4../0JJt++,JJz}**+JJt55;;<??aJJt}}**+??aJJt~~&C) #, <K 4s   I c                s4    V ^8  d   QhRRR\         R\        /# r\   )r   r   rh   ri   r$   r%   r%   v  s"      / & S r&   c                 s   . pV  F  pR VP                   R\        VP                  4      /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   WTR&   VP                  V4       K  	  \        P                  ! V4      # )rf   ra   rx   rp   r{   r   r   rz   )ro   r   ra   rn   rp   r{   rB   r   r   rz   ry   r<   Zdumps)rX   r@   rr   rc   Zinforz   s   &&    r$   rq   rq   v  s    DDMMs4<<(
 ??a#}}22D $D%()<)<%=D!"&*&:&:D"#$($B$B!$0I,-D  ::dr&   )0r<   ZloggingZemail.parserr   Zoptparser   Ztypingr   r   r   r   r   r	   r
   Zpip._vendor.packaging.utilsr   Zpip._vendor.packaging.versionr   Zpip._internal.clir   Zpip._internal.cli.index_commandr   Zpip._internal.cli.status_codesr   Zpip._internal.exceptionsr   Zpip._internal.metadatar   r   Z$pip._internal.models.selection_prefsr   Zpip._internal.utils.compatr   Zpip._internal.utils.miscr   r   rJ   r   Zpip._internal.network.sessionr   r   r]   Z	getLoggerr(   Zloggerr/   rl   rq   r'   r&   r$   <module>r|      s        R R R 9 1 ( = 2 1 D E 2 ;@8.  23O 
		8	$P# Pf9xr&   