+
    kGjP                         ^ RI 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 ^ RIHtHt ^ R	IHt R
 R ltR R ltR# )    N)	Namespace_SubParsersAction)Path)TemporaryDirectory)dals)context)ArgumentError)buildpaths)validate_name_mapping_formatc                (    V ^8  d   QhR\         RR/# )   parserreturnN)r   )formats   "6lib/python3.14/site-packages/conda_pypi/cli/convert.py__annotate__r      s     O O. O4 O    c           	     r   RpTp\        R4      pV P                  RVVVR7      pVP                  RR\        R\        P                  ! 4       R,          R	7       VP                  R
RRR7       VP                  RRRRR7       VP                  RR\        RRRR7       VP                  RR\        RRR	7       R# )z=
Configure all subcommand arguments and options via argparse
zKBuild and convert local Python sdists, wheels or projects to conda packagesay  
        Examples:

        Convert a PyPI package to conda format without installing::

            conda pypi convert ./requests-2.32.5-py3-none-any.whl

        Convert a local Python project to conda package::

            conda pypi convert ./my-python-project

        Convert a package and save to a specific output folder::

            conda pypi convert --output-folder ./conda-packages ./numpy-2.3.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

        Convert a local Python project to an editable package::

            conda pypi convert -e . --output-folder ./conda-packages

        Convert a package from a Git repository::

            git clone https://github.com/user/repo.git
            conda pypi convert ./repo

        Convert a package and inject test files::

            conda pypi convert --test-dir ./my-tests-dir ./my-python-project

        convert)helpdescriptionepilogz--output-folderz!Folder to write output package(s)Fzconda-pypi-output)r   typerequireddefaultproject_pathPROJECTz$Convert named path as conda package.)metavarr   z-ez
--editable
store_truezYBuild an editable package linking PROJECT to the target conda environment when installed.)actionr   z-tz
--test-dirNzDirectory containing test files to inject into the conda package. Must be structured as a conda test directory for the tests to work.)r   r   r   r   z--name-mappingz7Path to json file containing pypi to conda name mapping)r   
add_parseradd_argumentr   cwd)r   summaryr   r   r   s   &    r   configure_parserr&      s    
 \GK	F@ 	   G 0
00   3  
 h	   N   F  r   c                0    V ^8  d   QhR\         R\        /# )r   argsr   )r   int)r   s   "r   r   r   `   s     A A) A Ar   c                $   \        \        P                  4      p\        V P                  4      P	                  4       '       g   \        R4      h\        V P                  4      P                  4       pV P                  '       d   V P                  P                  4       MRpV'       dy   VP	                  4       '       g   \        RV 24      hVP                  4       '       g   \        RV 24      h\        VP                  R4      4      pV'       g   \        RV 24      h\        V P                  4      P                  4       pVP                  RRR7       RpV P                   e   V P                   P	                  4       '       g   \        R	V P                    24      h\#        V P                   R
4      ;_uu_ 4       p\$        P&                  ! V4      pRRR4       \)        V4       VP*                  R8X  d   V P,                  '       d   \        R4      h\/        \0        P2                  ! V4      4      p\5        RR7      ;_uu_ 4       p	\6        P8                  ! V\        V	4      VVVV\;        \        P<                  4      R7      p
RRR4       MJV P,                  '       d   RMRp\6        P>                  ! VVVVVV\;        \        P<                  4      R7      p
\A        RX
 RV R24       ^ #   + '       g   i     EL"; i  + '       g   i     L8; i)z5
Entry point for the `conda pypi convert` subcommand
z<PROJECT must be a local path to a sdist, wheel or directory.NzTest directory does not exist: zTest path is not a directory: z
run_test.*z:Test directory must contain at least one run_test.* file: T)parentsexist_okzCould not open rz.whlz1Cannot create editable package from a wheel file.conda)prefix)test_dirpypi_to_conda_name_mappingchannelseditablewheel)distributionoutput_pathr/   r0   r1   r2   zConda package at z$ built successfully. Output folder: .)!r   r   target_prefixr   existsr	   
expanduserr0   FileNotFoundErroris_dirNotADirectoryErrorlistglob
ValueErroroutput_foldermkdirname_mappingopenjsonloadr   suffixr3   strr   get_python_executabler   r
   build_condatupler2   pypa_to_condaprint)r(   prefix_pathr   r0   run_test_filesrA   r1   fpython_executable
build_pathpackage_pathr5   s   &           r   executerT   `   s~    w,,-K!!"))++Z[[))*557L-1]]]t}}'')H  #&EhZ$PQQ  $'EhZ%PQQhmmL9:LXJW  ++,779Mt4 "&$  ''))/$2C2C1D EFF$##S))Q)-1& * 	%%?@ f$=== STT ; ;K HIw//: ,,Z !!+Ew//0L 0/ &*]]]z**%%'A7++,
 
l^+OP]^_
`aG *)) 0/s   ;K+>K?+K<	?L	)rE   argparser   r   pathlibr   tempfiler   conda.auxlib.ishr   conda.base.contextr   conda.exceptionsr	   
conda_pypir
   r   conda_pypi.translater   r&   rT    r   r   <module>r^      s-     1  ' ! & * # =OdAr   