Ñò §ÚêLc @ sÒ d Z d d k Td d k l Z d d k l Z d d k l Z d d k l Z d d k Z d d k Z d d k Z d d k Z d d k l Z d d k Z d d k Z d d k l Z d e f d „ ƒ YZ d S( s` distutils.command.upload Implements the Distutils 'upload' subcommand (upload package to PyPI).iÿÿÿÿ( t *( t PyPIRCCommand( t spawn( t log( t md5N( t standard_b64encode( t ConfigParsert uploadc B sU e Z d Z e i d d g Z e i d g Z d „ Z d „ Z d „ Z d „ Z RS( s upload binary package to PyPIt signt ss sign files to upload using gpgs identity=t is GPG identity used to sign filesc C s> t i | ƒ d | _ d | _ d | _ t | _ d | _ d S( Nt i ( R t initialize_optionst usernamet passwordt show_responset FalseR t Nonet identity( t self( ( s0 /usr/lib64/python2.6/distutils/command/upload.pyR s c C s‡ t i | ƒ | i o | i o t d ƒ ‚ n | i ƒ } | h j o8 | d | _ | d | _ | d | _ | d | _ n d S( Ns. Must use --sign for --identity to have meaningR R t repositoryt realm( R t finalize_optionsR R t DistutilsOptionErrort _read_pypircR R R R ( R t config( ( s0 /usr/lib64/python2.6/distutils/command/upload.pyR ( s c C sT | i i p t d ƒ ‚ n x0 | i i D]" \ } } } | i | | | ƒ q* Wd S( Ns' No dist file created in earlier command( t distributiont dist_filesR t upload_file( R t commandt pyversiont filename( ( s0 /usr/lib64/python2.6/distutils/command/upload.pyt run5 s c C s„ | i oM d d d | g } | i o d | i g | d d +n t | d | i ƒn t | d ƒ i ƒ } | i i } h d d 6d d 6| i ƒ d 6| i ƒ d 6t i i | ƒ | f d 6| d 6| d 6t | ƒ i ƒ d 6d d 6| i ƒ d 6| i ƒ d 6| i ƒ d 6| i ƒ d 6| i ƒ d 6| i ƒ d 6| i ƒ d 6| i ƒ d 6| i ƒ d 6| i ƒ d 6| i ƒ d 6| i ƒ d 6| i ƒ d 6} d! } | d" j o4 t i ƒ \ } } } | o d# | | f } qþn( | d$ j o d% t i d&