й¼]Õ-ã@sœddlZddlZddlZddlZddlZddlZddlmZddl m Z ddl Tddl m Z Gdd„de ƒZdS)éN)Úwarn)Ú PyPIRCCommand)Ú*)Úlogc@sÏeZdZdZejdd gZejdddgZdd d „fgZd d „Zd d„Z dd„Z dd„Z dd„Z dd„Z dd„Zdd„Zdd„Zddd„ZdS)!Úregisterz7register the distribution with the Python package indexúlist-classifiersNú list the valid Trove classifiersÚstrictúBWill stop the registering if the meta-data are not fully compliantÚverifyÚcheckcCsdS)NT©)Úselfr r ú-/opt/alt/python35/lib64/python3.5/register.pyÚszregister.cCs#tj|ƒd|_d|_dS)Nr)rÚinitialize_optionsÚlist_classifiersr )rr r rrs  zregister.initialize_optionscCs<tj|ƒdd|jfddi}||jjdÚioÚStringIOÚitemsÚtypeÚstrÚwriteÚgetvalueÚencodeÚlenr&r'ZRequestZ build_openerZHTTPBasicAuthHandlerÚopenÚerrorÚ HTTPErrorZ show_responseÚfpÚreadr.ÚmsgÚURLErrorr*Újoin)rrIrGÚboundaryZ sep_boundaryZ end_boundaryZbodyÚkeyÚvalueZheadersZreqZopenerr/Úerfr r rr,ùsV      $           $%   zregister.post_to_server)rNr)r Nr )Ú__name__Ú __module__Ú __qualname__rLrZ user_optionsZboolean_optionsZ sub_commandsrrrrrrrrr-r,r r r rrs&         z r)ÚosÚstringrArXZ urllib.parser&Zurllib.requestÚwarningsrZdistutils.corerZdistutils.errorsZ distutilsrrr r r rÚs$