ó
>ò[c           @  s]   d  Z  d d l m Z d d l Z d d l m Z m Z e j d  Z d   Z	 d   Z
 d S(   s'   
Anaconda repository package utilities
i˙˙˙˙(   t   print_functionN(   t   get_server_apit   parse_specss   binstar.packagec      
   C  s  t  |  j |  j  } |  j } | j } | j } |  j r_ |  j } | j | | |  |  j nİ |  j rĤ t	 j
 d  x | j | |  D] } t	 j
 | d  q Wnb |  j r|  j d k } | j |  j j |  j j |  j d | d |  j d |  j t	 j
 d  n  d  S(   Ns   :Collaborators:t   logint   privatet   publict   licenset   license_urls   Package created!(   R   t   tokent   sitet   spect   usert   packaget   add_collaboratort   package_add_collaboratort   list_collaboratorst   loggert   infot   package_collaboratorst   createt   accesst   add_packaget   summaryR   R   (   t   argst   aserver_apiR
   t   ownerR   t   collaboratort   collabR   (    (    s^   lib/python2.7/site-packages/anaconda_client-1.7.2-py2.7.egg/binstar_client/commands/package.pyt   main   s$    					
		!c      
   C  sm  |  j  d d d d t } | j d d d d t d d	 | j d
  } | j d t  } | j d d d d d | j d d d d d | j d d d d d | j d  } | j d d d | j d d d | j d d d | j d  } | j d t  } | j d d d d d  d! d" d d# | j d$ d d d d% d! d" d d& | j d' t	  d  S((   NR   t   helps   Package utilst   descriptionR
   s   Package to operate ont   typet   metavars   USER/PACKAGEt   actionst   requireds   --add-collaboratorR   s,   username of the collaborator you want to adds   --list-collaboratorst   actiont
   store_trues*   list all of the collaborators in a packages   --creates   Create a packages   metadata argumentss	   --summarys   Set the package short summarys	   --licenses   Set the package licenses   --license-urls   Set the package license urlt   privacys
   --personalt   store_constt   constt   personalt   destR   sb   Set the package access to personal This package will be available only on your personal registriess	   --privateR   sj   Set the package access to private This package will require authorized and authenticated access to installR   (
   t
   add_parsert   __doc__t   add_argumentR   t   add_argument_groupt   add_mutually_exclusive_groupt   Truet   Falset   set_defaultsR   (   t
   subparserst   parsert   agroupt   groupt   mgroupt   pgroup(    (    s^   lib/python2.7/site-packages/anaconda_client-1.7.2-py2.7.egg/binstar_client/commands/package.pyR*   %   s*    	(   R+   t
   __future__R    t   loggingt   binstar_client.utilsR   R   t	   getLoggerR   R   R*   (    (    (    s^   lib/python2.7/site-packages/anaconda_client-1.7.2-py2.7.egg/binstar_client/commands/package.pyt   <module>   s   	