+
    êh*  ã                   ó    € R t ^ RIt^ RIt^ RIt^ RIHtHt ^ RIHt ^ RI	H
t
HtHt ^ RIt^ RIt^RIHt RtR t ! R R	4      t ! R
 R4      tR# )zTests for distutils.filelist.N)ÚdebugÚfilelist)ÚDistutilsTemplateError)ÚFileListÚ
glob_to_reÚtranslate_pattern)Úpy39zÎinclude ok
include xo
exclude xo
include foo.tmp
include buildout.cfg
global-include *.x
global-include *.txt
global-exclude *.tmp
recursive-include f *.oo
recursive-exclude global *.x
graft dir
prune dir3
c                óB   € V P                  R\        P                  4      # )z"Converts '/' in a string to os.sepÚ/)ÚreplaceÚosÚsep)Úss   &ÚK/usr/lib/python3/dist-packages/setuptools/_distutils/tests/test_filelist.pyÚmake_local_pathr      s   € à�9‰9�Sœ"Ÿ&™&Ó!Ð!ó    c                   ób   a € ] tR t^$t o R tR tR tR tR tR t	R t
R tR	 tR
 tR tRtV tR# )ÚTestFileListc                óº   € VP                    Uu. uF%  q"P                  \        P                  8X  g   K#  VNK'  	  ppV'       d   Q hVP	                  4        R # u upi ©N©ÚrecordsÚlevelnoÚloggingÚWARNINGÚclear©ÚselfÚcaplogÚrecÚwarningss   &&  r   ÚassertNoWarningsÚTestFileList.assertNoWarnings%   s@   € Ø#)§>¢>ÓT¡>˜C·[±[ÄGÇOÁOÑ5S—C�C¡>ˆÐTßÐˆ|Ø�‰Žùò Uó
   � A´Ac                óº   € VP                    Uu. uF%  q"P                  \        P                  8X  g   K#  VNK'  	  ppV'       g   Q hVP	                  4        R # u upi r   r   r   s   &&  r   ÚassertWarningsÚTestFileList.assertWarnings*   s?   € Ø#)§>¢>ÓT¡>˜C·[±[ÄGÇOÁOÑ5S—C�C¡>ˆÐTßˆˆxØ�‰Žùò Ur#   c                óè   € \         P                  p\         P                  R 8X  d%   \        P                  ! \         P                  4      pR F"  w  r#VRV/,          p\	        V4      V8X  d   K"  Q h	  R# )Ú\r   N))zfoo*z(?s:foo[^%(sep)s]*)\Z)zfoo?z(?s:foo[^%(sep)s])\Z)zfoo??z(?s:foo[^%(sep)s][^%(sep)s])\Z)zfoo\\*z(?s:foo\\\\[^%(sep)s]*)\Z)zfoo\\\*z(?s:foo\\\\\\[^%(sep)s]*)\Z)zfoo????z2(?s:foo[^%(sep)s][^%(sep)s][^%(sep)s][^%(sep)s])\Z)zfoo\\??z"(?s:foo\\\\[^%(sep)s][^%(sep)s])\Z)r   r   ÚreÚescaper   )r   r   ÚglobÚregexs   &   r   Útest_glob_to_reÚTestFileList.test_glob_to_re/   sY   € Ü�f‰fˆÜ�6‰6�TŒ>Ü—)’)œBŸF™FÓ#ˆCó

‰KˆDð ˜U C˜LÕ(ˆEÜ˜dÓ# uÖ,Ð,Ð,ó

r   c                óÖ  € \        4       p\        pR RRRRV! R4      V! R4      V! R4      V! R4      V! R	4      V! R
4      V! R4      V! R4      V! R4      V! R4      .Vn        \        P	                  R4       F+  pVP                  4       R8X  d   K  VP                  V4       K-  	  RRRV! R4      V! R4      V! R4      V! R
4      V! R4      V! R4      .	pVP                  V8X  g   Q hR# )zfoo.tmpÚokÚxozfour.txtzbuildout.cfgz.hg/last-message.txtzglobal/one.txtzglobal/two.txtzglobal/files.xzglobal/here.tmpzf/o/f.oozdir/graft-onezdir/dir2/graft2zdir3/okzdir3/sub/ok.txtÚ
Ú N)r   r   ÚallfilesÚMANIFEST_INÚsplitÚstripÚprocess_template_lineÚfiles)r   Ú	file_listÚmlpÚlineÚwanteds   &    r   Útest_process_template_lineÚ'TestFileList.test_process_template_lineB   s  € ä“Jˆ	Üˆð ØØØØñ Ð&Ó'ÙÐ Ó!ÙÐ Ó!ÙÐ Ó!ÙÐ!Ó"Ù�
‹OÙ�Ó ÙÐ!Ó"Ù�	‹NÙÐ!Ó"ð#
ˆ	Ôô(  ×%Ñ% dÖ+ˆDØ�z‰z‹|˜rÔ!ÙØ×+Ñ+¨DÖ1ñ ,ð ØØÙÐ&Ó'ÙÐ Ó!ÙÐ Ó!Ù�
‹OÙ�Ó ÙÐ!Ó"ð

ˆð �‰ &Ô(Ð(Ò(r   c                ó  € \        4       pVP                  R 4       VP                  4       P                  R8X  g   Q hVP	                  \
        RR4       VP                  R 4       VP                  4       P                  R8X  g   Q hR# )Úxxxr3   ÚDEBUGTzxxx
N)r   Údebug_printÚ
readouterrÚoutÚsetattrr   )r   ÚcapsysÚmonkeypatchr:   s   &&& r   Útest_debug_printÚTestFileList.test_debug_printo   sq   € Ü“Jˆ	Ø×Ñ˜eÔ$Ø× Ñ Ó"×&Ñ&¨"Ô,Ð,Ð,à×ÑœE 7¨DÔ1Ø×Ñ˜eÔ$Ø× Ñ Ó"×&Ñ&¨'Ô1Ð1Ò1r   c                ój   € \        4       p. ROpVP                  V4       VP                  V8X  g   Q hR# )ÚaN)rL   ÚbÚc)r   Úset_allfilesr4   )r   r:   r9   s   &  r   Útest_set_allfilesÚTestFileList.test_set_allfilesx   s0   € Ü“Jˆ	ÚˆØ×Ñ˜uÔ%Ø×!Ñ! UÔ*Ð*Ò*r   c                ó–   € \        4       p. ROVn        VP                  4        VP                  4        VP                  . RO8X  g   Q hR# )rL   N)rL   rM   rL   ÚgrN   rS   )rL   rM   rN   rS   )r   r9   ÚsortÚremove_duplicates©r   r:   s   & r   Útest_remove_duplicatesÚ#TestFileList.test_remove_duplicates~   s9   € Ü“Jˆ	Ú8ˆ	Œà�‰ÔØ×#Ñ#Ô%Ø�‰Ò"6Ô6Ð6Ò6r   c                ó&  € \        \        R RRR7      R4      '       g   Q h\        P                  ! R 4      p\        VRRR7      V8X  g   Q h\        \        R RRR7      R4      '       g   Q h\        RRRR7      P	                  R4      '       g   Q hR# )rL   TF)ÚanchorÚis_regexÚsearchú*.pyzfilelist.pyN)Úhasattrr   r)   Úcompiler\   )r   r,   s   & r   Útest_translate_patternÚ#TestFileList.test_translate_pattern†   s�   € äÔ(¨°TÀEÔJÈH×UÒUÐUÐUô —
’
˜3“ˆÜ  ¨t¸dÔCÀuÔLÐLÐLô Ô(¨°TÀDÔIÈ8×TÒTÐTÐTô ! °¸uÔE×LÑLØ÷
ò 
ð 	
ò 
r   c                ó  € \        4       pVP                  R 4      '       d   Q h\        4       pRR.Vn        VP                  R 4      '       g   Q h\        4       pRR.Vn        VP                  R 4       VP                  R.8X  g   Q hR# )r]   úa.pyzb.pyza.txtN)r   Úexclude_patternr9   rV   s   & r   Útest_exclude_patternÚ!TestFileList.test_exclude_pattern–   sƒ   € ä“Jˆ	Ø×,Ñ,¨V×4Ò4Ð4Ð4ô “Jˆ	Ø! 6Ð*ˆ	ŒØ×(Ñ(¨×0Ò0Ð0Ð0ô “Jˆ	Ø! 7Ð+ˆ	ŒØ×!Ñ! &Ô)Ø�‰ 7 )Ô+Ð+Ò+r   c                ó€  € \        4       pVP                  . 4       VP                  R 4      '       d   Q h\        4       pVP                  RR.4       VP                  R 4      '       g   Q h\        4       pVP                  e   Q hVP                  RR.4       VP                  R4       VP                  RR.8X  g   Q hR# )r]   rc   úb.txtNÚ*)r   rO   Úinclude_patternr4   rV   s   & r   Útest_include_patternÚ!TestFileList.test_include_pattern¦   s¶   € ä“Jˆ	Ø×Ñ˜rÔ"Ø×,Ñ,¨V×4Ò4Ð4Ð4ô “Jˆ	Ø×Ñ ¨Ð0Ô1Ø×(Ñ(¨×0Ò0Ð0Ð0ô “Jˆ	Ø×!Ñ!Ò)Ð)Ð)Ø×Ñ ¨Ð0Ô1Ø×!Ñ! #Ô&Ø×!Ñ! f¨gÐ%6Ô6Ð6Ò6r   c                óÊ
  € \         p\        4       pR F?  p\        P                  ! \        4      ;_uu_ 4        VP                  V4       RRR4       KA  	  \        4       pVP                  RRV! R4      .4       VP                  R4       VP                  R.8X  g   Q hV P                  V4       VP                  R4       VP                  R.8X  g   Q hV P                  V4       \        4       pRRV! R4      .Vn        VP                  R4       VP                  RV! R4      .8X  g   Q hV P                  V4       VP                  R4       VP                  RV! R4      .8X  g   Q hV P                  V4       \        4       pVP                  RRV! R4      .4       VP                  R	4       VP                  RV! R4      .8X  g   Q hV P                  V4       VP                  R
4       VP                  RV! R4      .8X  g   Q hV P                  V4       \        4       pRRV! R4      .Vn        VP                  R4       VP                  R.8X  g   Q hV P                  V4       VP                  R4       VP                  R.8X  g   Q hV P                  V4       \        4       pVP                  RV! R4      V! R4      V! R4      .4       VP                  R4       VP                  V! R4      V! R4      .8X  g   Q hV P                  V4       VP                  R4       VP                  V! R4      V! R4      .8X  g   Q hV P                  V4       \        4       pRV! R4      V! R4      V! R4      .Vn        VP                  R4       VP                  RV! R4      .8X  g   Q hV P                  V4       VP                  R4       VP                  RV! R4      .8X  g   Q hV P                  V4       \        4       pVP                  RV! R4      V! R4      V! R4      .4       VP                  R4       VP                  V! R4      V! R4      .8X  g   Q hV P                  V4       VP                  R4       VP                  V! R4      V! R4      .8X  g   Q hV P                  V4       \        4       pRV! R4      V! R4      V! R4      .Vn        VP                  R4       VP                  RV! R4      .8X  g   Q hV P                  V4       VP                  R4       VP                  RV! R4      .8X  g   Q hV P                  V4       R#   + '       g   i     EKO  ; i)ÚincludeNrc   rh   zd/c.pyzinclude *.pyzinclude *.rbzexclude *.pyzexclude *.rbzglobal-include *.pyzglobal-include *.rbzglobal-exclude *.pyzglobal-exclude *.rbzd/b.pyzd/c.txtzd/d/e.pyzrecursive-include d *.pyzrecursive-include e *.pyzrecursive-exclude d *.pyzrecursive-exclude e *.pyzf/f.pyzgraft dzgraft ezprune dzprune e)	rn   Úexcludezglobal-includezglobal-excludezrecursive-includezrecursive-excludeÚgraftÚpruneÚblarg)
r   r   ÚpytestÚraisesr   r8   rO   r9   r!   r%   )r   r   r;   r:   Úactions   &&   r   Útest_process_templateÚ"TestFileList.test_process_template¸   s×  € Üˆä“Jˆ	ó

ˆFô —’Ô5×6Õ6Ø×/Ñ/°Ô7÷ 7Ñ6ñ

ô “Jˆ	Ø×Ñ ¨±°X³Ð?Ô@à×'Ñ'¨Ô7Ø�‰ 6 (Ô*Ð*Ð*Ø×Ñ˜fÔ%à×'Ñ'¨Ô7Ø�‰ 6 (Ô*Ð*Ð*Ø×Ñ˜FÔ#ô “Jˆ	Ø! 7©C°«MÐ:ˆ	Œà×'Ñ'¨Ô7Ø�‰ 7©C°«MÐ":Ô:Ð:Ð:Ø×Ñ˜fÔ%à×'Ñ'¨Ô7Ø�‰ 7©C°«MÐ":Ô:Ð:Ð:Ø×Ñ˜FÔ#ô “Jˆ	Ø×Ñ ¨±°X³Ð?Ô@à×'Ñ'Ð(=Ô>Ø�‰ 6©3¨x«=Ð"9Ô9Ð9Ð9Ø×Ñ˜fÔ%à×'Ñ'Ð(=Ô>Ø�‰ 6©3¨x«=Ð"9Ô9Ð9Ð9Ø×Ñ˜FÔ#ô “Jˆ	Ø! 7©C°«MÐ:ˆ	Œà×'Ñ'Ð(=Ô>Ø�‰ 7 )Ô+Ð+Ð+Ø×Ñ˜fÔ%à×'Ñ'Ð(=Ô>Ø�‰ 7 )Ô+Ð+Ð+Ø×Ñ˜FÔ#ô “Jˆ	Ø×Ñ ©¨H«±s¸9³~ÁsÈ:ÃÐWÔXà×'Ñ'Ð(BÔCØ�‰¡3 x£=±#°j³/Ð"BÔBÐBÐBØ×Ñ˜fÔ%à×'Ñ'Ð(BÔCØ�‰¡3 x£=±#°j³/Ð"BÔBÐBÐBØ×Ñ˜FÔ#ô “Jˆ	Ø!¡3 x£=±#°i³.Á#ÀjÃ/ÐRˆ	Œà×'Ñ'Ð(BÔCØ�‰ 6©3¨y«>Ð":Ô:Ð:Ð:Ø×Ñ˜fÔ%à×'Ñ'Ð(BÔCØ�‰ 6©3¨y«>Ð":Ô:Ð:Ð:Ø×Ñ˜FÔ#ô “Jˆ	Ø×Ñ ©¨H«±s¸:³ÉÈHËÐVÔWà×'Ñ'¨	Ô2Ø�‰¡3 x£=±#°j³/Ð"BÔBÐBÐBØ×Ñ˜fÔ%à×'Ñ'¨	Ô2Ø�‰¡3 x£=±#°j³/Ð"BÔBÐBÐBØ×Ñ˜FÔ#ô “Jˆ	Ø!¡3 x£=±#°j³/Á3ÀxÃ=ÐQˆ	Œà×'Ñ'¨	Ô2Ø�‰ 6©3¨x«=Ð"9Ô9Ð9Ð9Ø×Ñ˜fÔ%à×'Ñ'¨	Ô2Ø�‰ 6©3¨x«=Ð"9Ô9Ð9Ð9Ø×Ñ˜FÖ#÷C 7×6Ñ6ús   ¸UÕU"© N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r!   r%   r-   r>   rI   rP   rW   r`   re   rk   rv   Ú__static_attributes__Ú__classdictcell__©Ú__classdict__s   @r   r   r   $   sD   ø‡ € òò
ò
-ò&+)òZ2ò+ò7ò
ò ,ò 7÷$p$ð p$r   r   c                   ót   a € ] tR tRt o ]P
                  R 4       tR tR t]P
                  R 4       t	Rt
V tR# )ÚTestFindAlli+  c                ól   € \         P                  ! R R4       \        P                  ! 4       . 8X  g   Q hR# )ÚfooÚbarN)r   Úsymlinkr   Úfindall)r   Útemp_cwds   &&r   Útest_missing_symlinkÚ TestFindAll.test_missing_symlink,  s'   € ä
�
Š
�5˜%Ô Ü×ÒÓ! RÔ'Ð'Ò'r   c                ó$  € \         P                  P                  RRR/RRR//4       \        P                  P	                  RR4      p\        P                  P	                  RR4      pW2.p\        \        P                  ! 4       4      V8X  g   Q hR# )zu
When findall is called with no parameters or with
'.' as the parameter, the dot should be omitted from
the results.
r„   ú	file1.txtr3   r…   z	file2.txtN)ÚjaracoÚpathÚbuildr   ÚjoinÚsortedr   r‡   )r   rˆ   Úfile1Úfile2Úexpecteds   &&   r   Útest_basic_discoveryÚ TestFindAll.test_basic_discovery1  st   € ô 	�‰×Ñ˜5 ;°Ð"3°U¸[È"Ð<MÐNÔOÜ—‘—‘˜U KÓ0ˆÜ—‘—‘˜U KÓ0ˆØ�>ˆÜ”h×&Ò&Ó(Ó)¨XÔ5Ð5Ò5r   c                óª   € \         P                  P                  RR/V4       \        VR,          4      .p\        P
                  ! V4      V8X  g   Q hR# )zR
When findall is called with another path, the full
path name should be returned.
rŒ   r3   N)r�   rŽ   r�   Ústrr   r‡   )r   Útmp_pathr”   s   && r   Útest_non_local_discoveryÚ$TestFindAll.test_non_local_discovery=  sH   € ô
 	�‰×Ñ˜;¨Ð+¨XÔ6Ü˜ ;Õ.Ó/Ð0ˆÜ×Ò Ó)¨XÔ5Ð5Ò5r   c                óØ   € \         P                  P                  R \         P                  P                  R4      RR/V4       \        P
                  ! V4      p\        V4      ^8X  g   Q hR# )zlink-to-parentÚ.Úsomefiler3   N)r�   rŽ   r�   ÚSymlinkr   r‡   Úlen)r   r™   r9   s   && r   Útest_symlink_loopÚTestFindAll.test_symlink_loopF  sY   € ä�‰×Ñà ¤&§+¡+×"5Ñ"5°cÓ":Ø˜Bðð ô	
ô × Ò  Ó*ˆÜ�5‹z˜QŒÐŠr   rx   N)ry   rz   r{   r|   Ú	os_helperÚskip_unless_symlinkr‰   r•   rš   r¡   r}   r~   r   s   @r   r‚   r‚   +  sA   ø‡ € Ø×"Ñ"ñ(ó #ð(ò
6ò6ð ×"Ñ"ñ	ó #ö	r   r‚   )Ú__doc__r   r   r)   Ú	distutilsr   r   Údistutils.errorsr   Údistutils.filelistr   r   r   Újaraco.pathr�   rs   Úcompatr   r£   r5   r   r   r‚   rx   r   r   Ú<module>r«      sI   ðÙ #ã Û 	Û 	ß %Ý 3ß FÑ Fã Û å %ð€ò "÷
D$ñ D$÷N%ó %r   