
    xhe                        d dl mZ d dlZd dlZd dlmZ d dlmZ ddlmZ ddl	m
Z
mZmZ  ej        ej                   ddZdddZdS )    )annotationsN)	Namespace)Sequence   )api)ArgumentParseradd_parser_channelsbinstar_upload)levelargsSequence[str] | Nonereturn tuple[ArgumentParser, Namespace]c                J   t          dd          }|                    ddddt                     |                    d	dt          j        dt                     |                    d
d           |                    dd           |                    dddg d           |                    dd           |                    dd           |                    dt
          dd           |                    dd d           |                    dd d!d"d#$           |                    d%d&           |                    d'd(d)*           |                    d+d,           |                    d-d!d"d.$           t          |           ||                    |           fS )/Nzconda metapackagea  
Tool for building conda metapackages.  A metapackage is a package with no
files, only metadata.  They are typically used to collect several packages
together into a single package via dependencies.

NOTE: Metapackages can also be created by creating a recipe with the necessary
metadata in the meta.yaml, but a metapackage can be created entirely from the
command line with the conda metapackage command.
)progdescriptionz--no-anaconda-uploadstore_falsez1Do not ask to upload the package to anaconda.org.anaconda_upload)actionhelpdestdefaultz--no-binstar-uploadz--tokenz(Token to pass through to anaconda upload)r   z--userz7User/organization to upload packages to on anaconda.orgz--labelappendlabelsz1Label argument to pass through to anaconda upload)r   r   r   r   namezName of the created package.versionzVersion of the created package.z--build-numberr   z,Build number for the package (default is 0).)typer   r   z--build-stringzBBuild string for the package (default is automatically generated).)r   r   z--dependenciesz-d* zThe dependencies of the package. To specify a version restriction for a
        dependency, wrap the dependency in quotes, like 'package >=2.0'.)nargsr   r   z--homez!The homepage for the metapackage.z	--licensezThe license of the metapackage.license_name)r   r   z	--summarya  Summary of the package.  Pass this in as a string on the command
        line, like --summary 'A metapackage for X'. It is recommended to use
        single quotes if you are not doing variable substitution to avoid
        interpretation of special characters.z--entry-pointsa  Python entry points to create automatically. They should use the same
        syntax as in the meta.yaml of a recipe, e.g., --entry-points
        bsdiff4=bsdiff4.cli:main_bsdiff4 will create an entry point called
        bsdiff4 that calls bsdiff4.cli.main_bsdiff4(). )r   add_argumentr
   argparseSUPPRESSintr	   
parse_args)r   parsers     @lib/python3.11/site-packages/conda_build/cli/main_metapackage.pyr&   r&      s      F @          	(RSSS
P     @     +     .     ;	     Q    
 L     0     ;.     1     ;	     6$$T****    r%   c                    t          |           \  }} | j                            d          p| j                            d          pd}t          j        dd|i| j         dS )Nchannelchannelsr   channel_urlsr   )r&   __dict__getr   create_metapackage)r   _r-   s      r(   executer2   o   sf    GAt=$$Y//V4=3D3DZ3P3PVTVLFFFFFF1r)   )r   r   r   r   )N)r   r   r   r%   )
__future__r   r#   loggingr   typingr    r   conda_interfacer   r	   r
   basicConfigINFOr&   r2   r   r)   r(   <module>r:      s    # " " " " "                     Q Q Q Q Q Q Q Q Q Q  ', ' ' ' '\+ \+ \+ \+~      r)   