/usr/lib64/python3.6/distutils/command/__pycache__
NameSizeModeActions
bdist.cpython-36.opt-1.pyc37810644editdlrm
bdist.cpython-36.opt-2.pyc35870644editdlrm
bdist.cpython-36.pyc37810644editdlrm
bdist_dumb.cpython-36.opt-1.pyc37430644editdlrm
bdist_dumb.cpython-36.opt-2.pyc35430644editdlrm
bdist_dumb.cpython-36.pyc37430644editdlrm
bdist_msi.cpython-36.opt-1.pyc196790644editdlrm
bdist_msi.cpython-36.opt-2.pyc181380644editdlrm
bdist_msi.cpython-36.pyc197670644editdlrm
bdist_rpm.cpython-36.opt-1.pyc130040644editdlrm
bdist_rpm.cpython-36.opt-2.pyc126850644editdlrm
bdist_rpm.cpython-36.pyc130700644editdlrm
bdist_wininst.cpython-36.opt-1.pyc83030644editdlrm
bdist_wininst.cpython-36.opt-2.pyc81640644editdlrm
bdist_wininst.cpython-36.pyc83710644editdlrm
build.cpython-36.opt-1.pyc40650644editdlrm
build.cpython-36.opt-2.pyc39820644editdlrm
build.cpython-36.pyc40650644editdlrm
build_clib.cpython-36.opt-1.pyc49710644editdlrm
build_clib.cpython-36.opt-2.pyc44170644editdlrm
build_clib.cpython-36.pyc49710644editdlrm
build_ext.cpython-36.opt-1.pyc165580644editdlrm
build_ext.cpython-36.opt-2.pyc146000644editdlrm
build_ext.cpython-36.pyc165580644editdlrm
build_py.cpython-36.opt-1.pyc104590644editdlrm
build_py.cpython-36.opt-2.pyc92500644editdlrm
build_py.cpython-36.pyc105180644editdlrm
build_scripts.cpython-36.opt-1.pyc43340644editdlrm
build_scripts.cpython-36.opt-2.pyc39400644editdlrm
build_scripts.cpython-36.pyc43340644editdlrm
check.cpython-36.opt-1.pyc52250644editdlrm
check.cpython-36.opt-2.pyc46570644editdlrm
check.cpython-36.pyc52250644editdlrm
clean.cpython-36.opt-1.pyc21790644editdlrm
clean.cpython-36.opt-2.pyc20960644editdlrm
clean.cpython-36.pyc21790644editdlrm
config.cpython-36.opt-1.pyc103140644editdlrm
config.cpython-36.opt-2.pyc69980644editdlrm
config.cpython-36.pyc103140644editdlrm
install.cpython-36.opt-1.pyc142370644editdlrm
install.cpython-36.opt-2.pyc131800644editdlrm
install.cpython-36.pyc142370644editdlrm
install_data.cpython-36.opt-1.pyc23240644editdlrm
install_data.cpython-36.opt-2.pyc21790644editdlrm
install_data.cpython-36.pyc23240644editdlrm
install_egg_info.cpython-36.opt-1.pyc29850644editdlrm
install_egg_info.cpython-36.opt-2.pyc23060644editdlrm
install_egg_info.cpython-36.pyc29850644editdlrm
install_headers.cpython-36.opt-1.pyc17240644editdlrm
install_headers.cpython-36.opt-2.pyc15580644editdlrm
install_headers.cpython-36.pyc17240644editdlrm
install_lib.cpython-36.opt-1.pyc51760644editdlrm
install_lib.cpython-36.opt-2.pyc46030644editdlrm
install_lib.cpython-36.pyc51760644editdlrm
install_scripts.cpython-36.opt-1.pyc21900644editdlrm
install_scripts.cpython-36.opt-2.pyc20560644editdlrm
install_scripts.cpython-36.pyc21900644editdlrm
register.cpython-36.opt-1.pyc84120644editdlrm
register.cpython-36.opt-2.pyc71470644editdlrm
register.cpython-36.pyc84120644editdlrm
sdist.cpython-36.opt-1.pyc131090644editdlrm
sdist.cpython-36.opt-2.pyc99220644editdlrm
sdist.cpython-36.pyc131090644editdlrm
upload.cpython-36.opt-1.pyc52930644editdlrm
upload.cpython-36.opt-2.pyc51670644editdlrm
upload.cpython-36.pyc52930644editdlrm
__init__.cpython-36.opt-1.pyc5350644editdlrm
__init__.cpython-36.opt-2.pyc4260644editdlrm
__init__.cpython-36.pyc5350644editdlrm
Edit: /usr/lib64/python3.6/distutils/command/__pycache__/register.cpython-36.opt-2.pyc (7147B)
3 \À-ã@s`ddlZddlZddlZddlZddlmZddlmZddl Tddl m Z Gdd„deƒZ dS)éN)Úwarn)Ú PyPIRCCommand)Ú*)Úlogc@sŽeZdZdZejdd gZejdddgZdd d „fgZd d „Zd d„Z dd„Z dd„Z dd„Z dd„Z dd„Zdd„Zdd„Zd!dd„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 ú2/usr/lib64/python3.6/distutils/command/register.pyÚszregister.cCstj|ƒd|_d|_dS)Nr)rÚinitialize_optionsÚlist_classifiersr )rr r rrs zregister.initialize_optionscCs*tj|ƒd|jfddœ}||jjd<dS)Nré)r Úrestructuredtextr )rr)rÚfinalize_optionsr Ú distributionZcommand_options)rZ check_optionsr r rr$s zregister.finalize_optionscCsX|jƒ|jƒx|jƒD]}|j|ƒqW|jr<|jƒn|jrL|jƒn|jƒdS)N) rÚ _set_configZget_sub_commandsZ run_commandZdry_runÚverify_metadatarÚ classifiersÚ send_metadata)rZcmd_namer r rÚrun+s  z register.runcCs8tdtƒ|jjdƒ}|jƒ|j|_d|_|jƒdS)Nzddistutils.command.register.check_metadata is deprecated, use the check command insteadr r)rÚPendingDeprecationWarningrZget_command_objZensure_finalizedr rr)rr r r rÚcheck_metadata:s zregister.check_metadatacCsz|jƒ}|ikr@|d|_|d|_|d|_|d|_d|_n6|jd|jfkr^td|jƒ‚|jdkrp|j|_d|_dS) NÚusernameÚpasswordÚ repositoryÚrealmTZpypiz%s not found in .pypircF)Z _read_pypircrrr r!Ú has_configZDEFAULT_REPOSITORYÚ ValueError)rÚconfigr r rrDs     zregister._set_configcCs*|jd}tjj|ƒ}tj|j|ƒƒdS)Nz?:action=list_classifiers)r ÚurllibÚrequestZurlopenrÚinfoÚ_read_pypi_response)rZurlZresponser r rrUs  zregister.classifierscCs&|j|jdƒƒ\}}tjd||ƒdS)Nr zServer response (%s): %s)Úpost_to_serverÚbuild_post_datarr')rÚcodeÚresultr r rr\szregister.verify_metadatac Cs|jrd}|j}|j}n d}d}}djƒ}x:||krf|jdtjƒtƒ}|sTd}q.||kr.tdƒq.W|dkr|x|s‚tdƒ}qtWx|s–t j dƒ}q†Wt j j ƒ}t j j|jƒd }|j|j|||ƒ|j|jd ƒ|ƒ\}}|jd ||ftjƒ|d kr|jr||j_nj|jd tjƒ|jd|jƒtjƒd}x&|jƒdkr\tdƒ}|s8d}q8W|jƒdkr|j||ƒn„|dkr¬ddi} d| d<| d<| d<d| d<x| dsÊtdƒ| d<q°Wx‚| d| dkrNx| dsþt j dƒ| d<qâWx| dst j dƒ| d<qW| d| dkrÎd| d<d| d<tdƒqÎWx| dsltdƒ| d<qRW|j| ƒ\}}|d kr–tjd ||ƒntjdƒtjdƒnT|d krdd!i} d| d<x| dsâtd"ƒ| d<qÈW|j| ƒ\}}tjd ||ƒdS)#NÚ1ÚxÚz1 2 3 4zâWe need to know who you are, so please choose either: 1. use your existing login, 2. register as a new user, 3. have the server generate a new password for you (and email it to you), or 4. quit Your selection [default 1]: z&Please choose one of the four options!z Username: z Password: rZsubmitzServer response (%s): %séÈzAI can store your PyPI login so future submissions will be faster.z (the login will be stored in %s)ÚXZynzSave your login (y/N)?ÚnÚyÚ2z:actionÚuserÚnamerZemailZconfirmz Confirm: z!Password and confirm don't match!z EMail: z"You will receive an email shortly.z7Follow the instructions in it to complete registration.Ú3Zpassword_resetzYour email address: )r"rrÚsplitÚannouncerÚINFOÚinputÚprintÚgetpassr%r&ZHTTPPasswordMgrÚparseZurlparser Z add_passwordr!r)r*rZ _get_rc_fileÚlowerZ _store_pypircr') rZchoicerrÚchoicesÚauthÚhostr+r,Údatar r rrcsŒ                     zregister.send_metadatacCs|jj}|d|jƒ|jƒ|jƒ|jƒ|jƒ|jƒ|jƒ|j ƒ|j ƒ|j ƒ|j ƒ|j ƒ|jƒ|jƒ|jƒdœ}|ds„|ds„|drŒd|d<|S)Nz1.0)z:actionÚmetadata_versionr6ÚversionZsummaryZ home_pageZauthorZ author_emailÚlicenseÚ descriptionÚkeywordsÚplatformrZ download_urlÚprovidesÚrequiresÚ obsoletesrJrKrLz1.1rD)rZmetadataZget_nameZ get_versionZget_descriptionZget_urlZ get_contactZget_contact_emailZ get_licenceZget_long_descriptionZ get_keywordsZ get_platformsZget_classifiersZget_download_urlZ get_providesZ get_requiresZ get_obsoletes)rÚactionÚmetarCr r rr*Ýs* zregister.build_post_datacCsd|kr$|jd|d|jftjƒd}d|}|d}tjƒ}xŽ|jƒD]‚\}}t|ƒtgƒtfƒfkrp|g}xZ|D]R}t|ƒ}|j |ƒ|j d|ƒ|j dƒ|j |ƒ|rv|dd krv|j d ƒqvWqJW|j |ƒ|j d ƒ|j ƒj d ƒ}d |tt |ƒƒd œ} t jj|j|| ƒ} t jjt jj|dƒ} d}y| j| ƒ} Wnxt jjk rˆ} z$|jrl| jjƒ}| j| jf} WYdd} ~ XnJt jjk rº} zdt| ƒf} WYdd} ~ XnX|jrÎ|j| ƒ}d} |jrd jdd|ddfƒ}|j|tjƒ| S)Nr6zRegistering %s to %sz3--------------GHSKFJDLGDS7543FJKLFHRE75642756743254z --z--z* Content-Disposition: form-data; name="%s"z rú Ú zutf-8z/multipart/form-data; boundary=%s; charset=utf-8)z Content-typezContent-length)Z password_mgrr/iôr0ÚOKú-éKéÿÿÿÿ)r0rQ)r9r rr:ÚioÚStringIOÚitemsÚtypeÚstrÚwriteÚgetvalueÚencodeÚlenr%r&ZRequestZ build_openerZHTTPBasicAuthHandlerÚopenÚerrorZ HTTPErrorZ show_responseÚfpÚreadr+ÚmsgZURLErrorr(Újoin)rrCrAÚboundaryZ sep_boundaryZ end_boundaryZbodyÚkeyÚvalueZheadersZreqÚopenerr,Úerbr r rr)ùsV         zregister.post_to_server)rNr)r Nr )N)Ú__name__Ú __module__Ú __qualname__rGrZ user_optionsZboolean_optionsZ sub_commandsrrrrrrrrr*r)r r r rrs&  zr) r=rUZ urllib.parser%Zurllib.requestÚwarningsrZdistutils.corerZdistutils.errorsZ distutilsrrr r r rÚs