+
    h                         R t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIHt ^ RIt^ RI	t	^ RI
Ht ^RIHt ]! ]P                  P                  RR7      t ! R R4      t ! R	 R
4      tR tR tR# )z$Test .dist-info style distributions.N)partial)unpack_archive)DALSutf-8encodingc                      a  ] tR t^t o ]! R4      t]R 4       t]P                  R 4       t
R tR tR tR t]P                  P!                  RR4      R	 4       tR
tV tR# )TestDistInfoz
        Metadata-Version: 1.2
        Requires-Dist: splort (==4)
        Provides-Extra: baz
        Requires-Dist: quux (>=1.1); extra == 'baz'
        c                t    R  VP                  4        4       pV P                  RP                  V4      ,           # )c              3   Z   "   T F!  w  rR P                   ! R/ \        4       B x  K#  	  R# 5i)z{key}: {value}
N )formatlocals).0keyvalues   &  A/usr/lib/python3/dist-packages/setuptools/tests/test_dist_info.py	<genexpr>.TestDistInfo.build_metadata.<locals>.<genexpr>    s#     X:3#**6VX6s   )+ )itemsmetadata_basejoin)clskwargsliness   &, r   build_metadataTestDistInfo.build_metadata   s+    XX  2775>11    c                :   R pW,          pVP                  4        VR,          pV P                  RR7      pVP                  VRR7       RpW,          pVP                  4        VR,          pV P                  RRR	7      pVP                  VRR7       \        V4      # )
z%VersionedDistribution-2.718.dist-infoMETADATAVersionedDistribution)Namer   r   z!UnversionedDistribution.dist-infoUnversionedDistribution0.3)r"   Version)mkdirr   
write_textstr)selftmpdirdist_info_name	versionedfilenamecontentunversioneds   &&     r   metadataTestDistInfo.metadata#   s    @+	z)%%( & 
 	Gg6<-+%%* & 
 	Gg66{r   c                    \        R  \        P                  ! V4       4       4      p\        V4      ^8X  g   Q V4       hVR,          pVR,          pVP                  R8X  g   Q hVP                  R8X  g   Q hR# )c              3   <   "   T F  qP                   V3x  K  	  R # 5iN)project_name)r   ds   & r   r   -TestDistInfo.test_distinfo.<locals>.<genexpr>;   s      
)SA^^Q)Ss   r#   r!   z2.718r$   N)dictpkg_resourcesfind_distributionslenversion)r)   r0   distsr/   r,   s   &&   r   test_distinfoTestDistInfo.test_distinfo:   sy     
)6)I)I()S
 
 5zQ%%5612	  G+++""e+++r   c                   Rp\        \        \        P                  P                  V4      4      p\        P
                  ! V4       Ft  pVP                  4       VR,          8X  g   Q hVP                  RR7      V^ ,          \        P                  P	                  R4      .8X  g   Q hVP                  R.8X  d   Kt  Q h	  R# )	splort==4:N   Nbaz)extraszquux>=1.1;extra=="baz"N)rA   z	quux>=1.1)rC   )listmapr9   Requirementparser:   requiresrD   )r)   r0   specsrI   r6   s   &&   r   test_conditional_dependencies*TestDistInfo.test_conditional_dependenciesG   s    (M55;;UCD11(;A::<8B<///::X:.))//0HI3    88w&&& <r   c                   RpVR,          P                  VRR7       \        P                  ! R\        P                  \        P                  ,          4      p\        RVRR7      pVP                  '       g   Q hVP                  VP                  4      '       g   Q h\        VP                  R	4      4      '       d   Q hR
# )z1
Supplying an invalid version crashes dist_info.
z@[metadata]
name=proj
version=42
[egg_info]
tag_build=invalid!!!
	setup.cfgr   r   zinvalid version	dist_infoF)cwdcheck*.dist-infoN)r'   recompileMIrun_command_inner
returncodesearchstdoutrE   glob)r)   tmp_pathconfigmsgprocs   &&   r   test_invalid_version!TestDistInfo.test_invalid_versionS   s     Y	K	++FW+Ejj*BDD244K8 (%Hzz$++&&&&m455555r   c           	        R pVR,          P                  VRR7       \        \        RRVR7      4       \        VP	                  R4      4      pVP
                  P                  R4      '       g   Q h\        P                  ! V4       \        \        RR	R
VR7      4       \        VP	                  R4      4      pVP
                  P                  R4      '       g   Q hR# )z
        [metadata]
        name=proj
        version=42
        [egg_info]
        tag_date=1
        tag_build=.post
        rN   r   r   rO   z	--no-daterP   rR   zproj-42z--tag-buildz.azproj-42aN)	r'   printrun_commandnextr[   name
startswithshutilrmtree)r)   r\   r]   rO   s   &&  r   test_tag_argumentsTestDistInfo.test_tag_arguments_   s     
K	++FW+Ek+{AB}56	~~((3333i k+}dIJ}56	~~((4444r   keep_egg_infoc                   R pVR,          P                  VRR7       VR,          pVP                  4        V'       d   R.M. p\        RRV.VO5RV/  \        \	        VP                  R	4      4      4      ^8X  g   Q h\        \	        VP                  R	4      4      4      ^ 8X  g   Q h\        V4      p\        \	        VP                  R
4      4      4      V8X  g   Q h\        \	        VP                  R
4      4      4      ^ 8X  g   Q h\        \	        VP                  R4      4      4      ^ 8X  g   Q h\        \	        VP                  R4      4      4      ^ 8X  g   Q hR# )z [metadata]
name=proj
version=42
rN   r   r   __outz--keep-egg-inforO   z--output-dirrP   rR   z
*.egg-infoz	*.__bkp__N)r'   r&   re   r;   rE   r[   int)r)   r\   rm   r]   outoptsexpected_egg_infos   &&&    r   test_output_dirTestDistInfo.test_output_dirs   s'   6	K	++FW+E 		&3!"KJtJJ4/01Q6664m456!;;;.4./04EEEE4l345:::4-./14444k234999r   r   N)FT)__name__
__module____qualname____firstlineno__r   r   classmethodr   pytestfixturer0   r>   rK   r`   rk   markparametrizert   __static_attributes____classdictcell____classdict__s   @r   r	   r	      sy     	M 2 2 ^^ ,,
'
65( [[_m<: =:r   r	   c                     a  ] tR t^t o Rt]! R4      t. R
Ot]P                  P                  RRP                  4       4      ]P                  P                  RR.4      ]P                  P                  R]4      R 4       4       4       tRtV tR	# )TestWheelCompatibilityzMake sure the .dist-info directory produced with the ``dist_info`` command
is the same as the one produced by ``bdist_wheel``.
ae  
    [metadata]
    name = {name}
    version = {version}

    [options]
    install_requires =
        foo>=12; sys_platform != "linux"

    [options.extras_require]
    test = pytest

    [options.entry_points]
    console_scripts =
        executable-name = my_package.module:function
    discover =
        myproj = my_package.other_module:function
    rg   zmy-proj my_proj my.proj My.Projr<   z0.42.13c                   V P                   P                  WR 7      V,           pR F9  pW7,          P                  4        W7,          R,          P                  VRR7       K;  	  \	        RVR,          R7       \        VP                  R4      4      p\        WR	,          4       \        VP                  R
4      4      p	\	        RVR,          R7       \        VP                  R4      4      p
V
P                  V	P                  8X  g   Q hV
P                  P                  RV V 24      '       g   Q hR F*  p\        W,          4      \        W,          4      8X  d   K*  Q h	  R# ))rg   r<   	dir_wheeldir_distrN   r   r   bdist_wheelrc   zdir_wheel/dist/*.whlunpackzunpack/*.dist-inforO   zdir_dist/*.dist-infozmy_proj-N)r   r   )r    zentry_points.txt)SETUPCFGr   r&   r'   re   rf   r[   r   rg   rh   read)r)   rg   r<   r\   suffixcfgr]   iwheelwheel_dist_inforO   files   &&&&&&      r   &test_dist_info_is_the_same_as_in_wheel=TestWheelCompatibility.test_dist_info_is_the_same_as_in_wheel   s!    %%4%ACG(A\  "\K'33FW3M ) 	Mx+'=>X]]#9:;u12x}}-ABCKX
%:;'=>?	~~!5!5555~~((8G9VH)EFFFF2D	()T/2H-IIII 3r   r   N))r   r   ).postz[egg_info]
tag_build = post
)r   z[egg_info]
tag_build = .post
)r   z)[egg_info]
tag_build = post
tag_date = 1
).devz[egg_info]
tag_build = .dev
)r   z)[egg_info]
tag_build = .dev
tag_date = 1
)a1z[egg_info]
tag_build = .a1
)z+localz[egg_info]
tag_build = +local
)r   r   )rv   rw   rx   ry   __doc__r   r   EGG_INFO_OPTSr{   r}   r~   splitr   r   r   r   s   @r   r   r      s      	H*
M [[V%F%L%L%NO[[Y4[[.>J ? 5 PJr   r   c            
          R \         P                  R\         P                  RRRRRR/VCp\        P                  RR.\        \        V 4      Op \         P                  ! V 3/ VB # )	stderrrZ   textTr   r   rQ   z-cz __import__('setuptools').setup())
subprocessSTDOUTPIPEsys
executablerF   r(   run)cmdr   rr   s   *, r   rW   rW      sh    *##*//G D >>4!C
Tc#sm
TC>>#&&&r   c                  ,    \        V / VB P                  # r4   )rW   rZ   )argsr   s   *,r   re   re      s    d-f-444r   )r   pathlibrS   ri   r   r   	functoolsr   r{   r9   setuptools.archive_utilr   textwrapr   Path	read_textr   r	   r   rW   re   r   r   r   <module>r      s`    *  	   
    2 w||%%8m: m:`=J =J@
'5r   