+
    SBi-                     v   ^ RI t ^ RI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t^ RIHt ^RIHtHt ^RIHt ]P(                  R 4       t]P(                  R 4       t]P(                  ! RR	R
7      R 4       t]P(                  R 4       t]P(                  R 4       tR t]P(                  ! R	R7      R 4       t]P(                  ! R	R7      R 4       t]P(                  R 4       t]P(                  R 4       t]P(                  R 4       tR t R t!R t"R t#RR]!RRR3R lt$]P(                  R 4       t%R# )    N)Path)
safer_name)contextsenvironment)DALSc              #    "   \         P                  ! 4       ;_uu_ 4       pV P                  RV4       \         P                  ! 4       ;_uu_ 4       pV P                  RV4       \         P                  ! 4       ;_uu_ 4        Rx  RRR4       RRR4       RRR4       R#   + '       g   i     L"; i  + '       g   i     L-; i  + '       g   i     R# ; i5i)zU
Override site.USER_BASE and site.USER_SITE with temporary directories in
a context.
zsite.USER_BASEzsite.USER_SITEN)r   tempdirsetattrsave_user_site_setting)monkeypatch	user_base	user_sites   &  >/usr/lib/python3.14/site-packages/setuptools/tests/fixtures.pyuser_overrider      s      
				y,i89 0)<0022 3   
	 32   
		sL   C0C0B2	 BB2	C
CB/*B2	2C=CC		Cc              #      "   V P                  4       ;_uu_ 4       pVx  R R R 4       R #   + '       g   i     R # ; i5iN)as_cwd)tmpdirorigs   & r   
tmpdir_cwdr   "   s"     	D
 
s   >*
>;		>Tsession)autousescopec                   V P                   P                  P                  R4      '       g   R# \        P                  ! \
        4      ;_uu_ 4        \        P                  P                  R4       RRR4       R#   + '       g   i     R# ; i)z
Workaround pytest-dev/pytest-xdist#376

``pytest-xdist`` tends to inject '' into ``sys.path``,
which may break certain isolation expectations.
Remove the entry so the import
machinery behaves the same irrespective of xdist.
xdistN )	configpluginmanager
has_plugin
contextlibsuppress
ValueErrorsyspathremove)requests   &r   workaround_xdist_376r'   (   sR     >>''227;;			Z	(	( 
)	(	(	(s    A::B	c                    . ROp \         P                  ! V\        V 4      R7       V R,          #   \         d"    \        P
                  ! R4        T R,          # i ; i)z4
Clone the 'sampleproject' and return a path to it.
)cwdzUnable to clone sampleprojectsampleproject)gitclonez%https://github.com/pypa/sampleproject)
subprocess
check_callstr	Exceptionpytestskip)tmp_pathcmds   & r   sample_projectr5   9   sY    
 DC5cs8}5 o%%  534o%%5s   !0 !AAc              #      "   \         P                  ! V 4      ;_uu_ 4        R x  R R R 4       R #   + '       g   i     R # ; i5ir   )r$   r   )r5   s   &r   sample_project_cwdr7   F   s%     	>	"	" 
#	"	"	"s   A0
AA		Ac                    \         P                  ! WR 4      ;_uu_ 4       p\        VP                  R4      R4      p\        VP                  R4      R4      pV'       d   V'       d   W43uuRRR4       # \	        VP
                  P                  R4      P                  4       '       d   Q h\        P                  ! \        P                  RRR\        V4      \        VP
                  P                  4      .4       \	        VP
                  P                  R4      P                  4       '       d   Q h\        VP                  R4      4      \        VP                  R4      4      3uuRRR4       #   + '       g   i     R# ; i)
dist_buildz*.tar.gzNz*.whlzbuild/lib/build-mbuildz--outdir)r   session_locked_tmp_dirnextglobr   r   rootdirexistsr-   check_outputr#   
executabler/   )tmp_path_factoryr&   tmpsdistwheels   &&   r   _build_distributionsrG   T   s"   		(	(<
 
	SXXj)40SXXg&-U>
 
 ..0ABIIKKKKNNH&&'!
 	 ..0ABIIKKKKCHHZ()40A+BB/
 
 
 
s   AE.'E.4C/E..E?	)r   c                     \         P                  ! R 4      pV'       d?   \         P                  P                  V4      '       d   \	        V4      P                  4       # \        W4      w  r4V# )PRE_BUILT_SETUPTOOLS_SDISTosgetenvr$   r@   r   resolverG   )rC   r&   prebuiltrE   _s   &&   r   setuptools_sdistrP   o   sK    yy56HBGGNN8,,H~%%''#$4>HEL    c                     \         P                  ! R 4      pV'       d?   \         P                  P                  V4      '       d   \	        V4      P                  4       # \        W4      w  r4V# )PRE_BUILT_SETUPTOOLS_WHEELrJ   )rC   r&   rN   rO   rF   s   &&   r   setuptools_wheelrT   y   sK    yy56HBGGNN8,,H~%%''#$4>HALrQ   c                >   \         P                  ! 4       p\        P                  ! V R,          4      Vn        RR.Vn        \        V4      Vn        \        P                   ! RR7      ;_uu_ 4        VP                  4       uuRRR4       #   + '       g   i     R# ; i)z?Virtual env with the version of setuptools under test installedvenv--no-setuptoolsz--wheel=bundleN)
PYTHONPATH)
r   
VirtualEnvr$   r   rootcreate_optsr/   reqr   create)r3   rT   envs   && r   rV   rV      sl     
 
 
"CyyF*+CH(*:;CO"#CG 
			.	.zz| 
/	.	.	.s   0BB	c                    \         P                  ! 4       p\        P                  ! V R,          4      Vn        RR.Vn        VP                  4        V# )z7Virtual env without any version of setuptools installedvenv_without_setuptoolsrW   
--no-wheelr   rY   r$   r   rZ   r[   
ensure_envr3   r^   s   & r   r`   r`      sC     
 
 
"Cyy$==>CH(,7CONNJrQ   c                    \         P                  ! 4       p\        P                  ! V R,          4      Vn        . ROVn        VP                  4        V# )z1Virtual env without any common packages installed	bare_venv)rW   z--no-pipra   z	--no-seedrb   rd   s   & r   rf   rf      s=     
 
 
"CyyK/0CHPCONNJrQ   c                   \        V4      ^8  g   Q h\        P                  ! V R4      ;_uu_ 4       pV F  w  r4\        P                  ! VP                  R4      4      p\        P                  ! VR7      p\        VP                  4       4      Vn        \        \        P                  ! 4       4      Vn        VP                  WeR7       K  	  RRR4       R#   + '       g   i     R# ; i)zy
Create a simple sdist tarball at dist_path, containing the files
listed in ``files`` as ``(filename, content)`` tuples.
zw:gzutf-8)name)fileobjN)lentarfileopenioBytesIOencodeTarInfogetvaluesizeinttimemtimeaddfile)	dist_pathfilesdistfilenamecontent
file_bytes	file_infos   &&     r   
make_sdistr      s     u:>>	i	(	(D!&HGNN7$;<JX6I !4!4!67IN!$))+.IOLLL7 "' 
)	(	(	(s   BCC(	c                J    \        V R\        RV: RV: R24      3R.4       R# )zP
Create a simple sdist tarball at dist_path, containing just a simple
setup.py.
setup.pyzT             import setuptools
             setuptools.setup(
                 name=z,
                 version=z
             )
         N	setup.cfgr   )r   r   )rx   distnameversions   &&&r   make_trivial_sdistr      sK        l #! %
	 	
rQ   c                   RV9   g   Q hVP                  R4      pV^ ,          p\        ^\        V4      ^,           4       Uu. uF  pRP                  VRV 4      NK  	  pp\	        RV: RV: RV: RV: R2	4      pRpR	V3\
        P                  P                  VR
4      V3.p	VR,           FK  p
\
        P                  P                  ! V
P                  R4      R
.,           !  pV	P                  VR34       KM  	  \        W	4       R# u upi )z
Make an sdist tarball with distname and version which also contains one
package with the same name as distname.  The top-level package is
designated a namespace package).
.NzE        import setuptools
        setuptools.setup(
            name=z,
            version=z,
            packages=z",
            namespace_packages=[z]
        )
    z7__import__('pkg_resources').declare_namespace(__name__)r   __init__.py:   NNr   )	splitrangerk   joinr   rK   r$   appendr   )rx   r   r   parts	nspackageidxpackagessetup_pyinitry   packager{   s   &&&         r   make_nspkg_sdistr      s    (??NN3EaI16q#e*q.1IJ1I#t%1IHJ  K  \ "!!* .	
H ED(#bggll9m&Ld%STEB<<77<<'--"4"FHh^$   y + Ks   D
c           
      Z    \        V R \        R4      P                  WVR7      3R.4       R# )r   z                import setuptools
                setuptools.setup(
                  name={name!r},
                  version={version!r},
                  python_requires={python_requires!r},
                )
                )ri   r   python_requiresNr   )r   r   format)rx   r   r   r   s   &&&&r   make_python_requires_sdistr      sD     	 &!O   !	
rQ   foobarz0.1c           
        \        V4      pRRRRRV RV 2.R\        P                  P                  V 4      ./pV'       d   VP	                  V4       \        P                  P                  V R4      p	\        P                  ! V	4       V'       d   . p
. pV Fq  pVP                  V4      pVRP                  4       9   d   TpMT
p\        V\        \        34      '       d   R	P                  V4      pVP                  V R
V 24       Ks  	  \        R4      P                  RP                  V
4      RP                  V4      R7      pMRp\        \        P                  P                  V	R4      RRR7      ;_uu_ 4       pVP!                  V4       RRR4       Vf   \        R4      p\        \        P                  P                  V	R4      RRR7      ;_uu_ 4       pVP!                  WH,          4       RRR4       \        P                  P                  W RV R24      pV! VW4       V	#   + '       g   i     L; i  + '       g   i     LS; i)a  Creates a source tree under path for a trivial test package that has a
single requirement in setup_requires--a tarball for that requirement is
also created and added to the dependency_links argument.

``distname`` and ``version`` refer to the name/version of the package that
the test package requires via ``setup_requires``.  The name of the test
package itself is just 'test_pkg'.
ri   test_pkgr   z0.0setup_requiresz==dependency_linkszname version;z: zg
            [metadata]
            {metadata}
            [options]
            {options}
            
)optionsmetadatar   r   wrh   )encodingNzI            import setuptools
            setuptools.setup(**%r)
        r   -z.tar.gz)r   rK   r$   abspathupdater   mkdirpopr   
isinstancetuplelistr   r   r   rm   write)r$   r   r   make_packagesetup_py_templatesetup_attrsuse_setup_cfgnormalized_distnametest_setup_attrsr   r   r   ri   valuesectiontest_setup_cfg_contentsffoobar_paths   &&&&&&&           r   create_setup_requires_packager     s   $ %X.
512"WI>?RWW__T23	 ,ww||D*-HHHX !D$((.E~++--"!%%//NNdV2eW-. " #'#
 &IIg&YYx(  
 	  #%	bggll8[13	I	IQ	'( 
J   
 
bggll8Z0#	H	HA	!45 
I '',,t'<AgYg%NOKh0O# 
J	I 
I	Hs   =H*H=*H:	=I	c                    R \        R4      R\        R4      R\        R4      RRRR	R
/RRR//pVP                  . RO4       V R,          pVP                  4        \        P                  P                  W4R7       VP                  RR4       V# )zpyproject.tomlz
            [build-system]
            requires = ["setuptools"]
            build-backend = "setuptools.build_meta"
            r   z
            __import__('setuptools').setup(
                pbr=True,
                setup_requires=["pbr"],
            )
            r   z
            [metadata]
            name = mypkg

            [files]
            packages =
                mypkg
            mypkgr   r   zhello.pyzprint('Hello world!')otherztest.txtzAnother file in here.)prefixPBR_VERSIONz0.42)pythonr:   pipinstallpbr)r   runr   jaracor$   r;   setenv)r3   r   rV   ry   r   s   &&&  r   pbr_packager   a  s     	$
 	D
 	T	
 	2/
 	*56=E@ 	HH67F
LLN
KKe+}f-MrQ    )&r    rn   rK   r-   r#   rl   ru   pathlibr   jaraco.pathr   r$   r1   setuptools._normalizationr   r   r   r   textwrapr   fixturer   r   r'   r5   r7   rG   rP   rT   rV   r`   rf   r   r   r   r   r   r   r   rQ   r   <module>r      s~    	 	  
       0 #  
 
  
 I. /  	& 	&  C6 i  ! i  !  *    8"4!!H4 #JZ & &rQ   