/usr/lib64/python3.9/distutils/command/__pycache__
NameSizeModeActions
bdist.cpython-39.opt-1.pyc36050644editdlrm
bdist.cpython-39.opt-2.pyc34110644editdlrm
bdist.cpython-39.pyc36050644editdlrm
bdist_dumb.cpython-39.opt-1.pyc35880644editdlrm
bdist_dumb.cpython-39.opt-2.pyc33880644editdlrm
bdist_dumb.cpython-39.pyc35880644editdlrm
bdist_msi.cpython-39.opt-1.pyc197030644editdlrm
bdist_msi.cpython-39.opt-2.pyc181620644editdlrm
bdist_msi.cpython-39.pyc197700644editdlrm
bdist_rpm.cpython-39.opt-1.pyc121750644editdlrm
bdist_rpm.cpython-39.opt-2.pyc118560644editdlrm
bdist_rpm.cpython-39.pyc122250644editdlrm
bdist_wininst.cpython-39.opt-1.pyc84950644editdlrm
bdist_wininst.cpython-39.opt-2.pyc83560644editdlrm
bdist_wininst.cpython-39.pyc85450644editdlrm
build.cpython-39.opt-1.pyc38810644editdlrm
build.cpython-39.opt-2.pyc37980644editdlrm
build.cpython-39.pyc38810644editdlrm
build_clib.cpython-39.opt-1.pyc48000644editdlrm
build_clib.cpython-39.opt-2.pyc42460644editdlrm
build_clib.cpython-39.pyc48000644editdlrm
build_ext.cpython-39.opt-1.pyc161910644editdlrm
build_ext.cpython-39.opt-2.pyc142340644editdlrm
build_ext.cpython-39.pyc161910644editdlrm
build_py.cpython-39.opt-1.pyc103810644editdlrm
build_py.cpython-39.opt-2.pyc91740644editdlrm
build_py.cpython-39.pyc104330644editdlrm
build_scripts.cpython-39.opt-1.pyc43300644editdlrm
build_scripts.cpython-39.opt-2.pyc39360644editdlrm
build_scripts.cpython-39.pyc43300644editdlrm
check.cpython-39.opt-1.pyc49080644editdlrm
check.cpython-39.opt-2.pyc42780644editdlrm
check.cpython-39.pyc49080644editdlrm
clean.cpython-39.opt-1.pyc20820644editdlrm
clean.cpython-39.opt-2.pyc19990644editdlrm
clean.cpython-39.pyc20820644editdlrm
config.cpython-39.opt-1.pyc102120644editdlrm
config.cpython-39.opt-2.pyc68750644editdlrm
config.cpython-39.pyc102120644editdlrm
install.cpython-39.opt-1.pyc136340644editdlrm
install.cpython-39.opt-2.pyc125790644editdlrm
install.cpython-39.pyc136340644editdlrm
install_data.cpython-39.opt-1.pyc22850644editdlrm
install_data.cpython-39.opt-2.pyc21400644editdlrm
install_data.cpython-39.pyc22850644editdlrm
install_egg_info.cpython-39.opt-1.pyc30200644editdlrm
install_egg_info.cpython-39.opt-2.pyc23410644editdlrm
install_egg_info.cpython-39.pyc30200644editdlrm
install_headers.cpython-39.opt-1.pyc17100644editdlrm
install_headers.cpython-39.opt-2.pyc15440644editdlrm
install_headers.cpython-39.pyc17100644editdlrm
install_lib.cpython-39.opt-1.pyc50820644editdlrm
install_lib.cpython-39.opt-2.pyc45010644editdlrm
install_lib.cpython-39.pyc50820644editdlrm
install_scripts.cpython-39.opt-1.pyc21330644editdlrm
install_scripts.cpython-39.opt-2.pyc19990644editdlrm
install_scripts.cpython-39.pyc21330644editdlrm
register.cpython-39.opt-1.pyc84530644editdlrm
register.cpython-39.opt-2.pyc71880644editdlrm
register.cpython-39.pyc84530644editdlrm
sdist.cpython-39.opt-1.pyc144800644editdlrm
sdist.cpython-39.opt-2.pyc111210644editdlrm
sdist.cpython-39.pyc144800644editdlrm
upload.cpython-39.opt-1.pyc52290644editdlrm
upload.cpython-39.opt-2.pyc51030644editdlrm
upload.cpython-39.pyc52290644editdlrm
__init__.cpython-39.opt-1.pyc4750644editdlrm
__init__.cpython-39.opt-2.pyc3660644editdlrm
__init__.cpython-39.pyc4750644editdlrm
Edit: /usr/lib64/python3.9/distutils/command/__pycache__/register.cpython-39.opt-2.pyc (7188B)
a ´iÀ-ã@s`ddlZddlZddlZddlZddlmZddlmZddl Tddl m Z Gdd„deƒZ dS)éN)Úwarn)Ú PyPIRCCommand)Ú*)Úlogc@sŒeZdZdZejddgZejgd¢Zddd„fgZdd „Zd d „Z d d „Z dd„Z dd„Z dd„Z dd„Zdd„Zdd„Zddd„ZdS)Úregisterz7register the distribution with the Python package index)úlist-classifiersNz list the valid Trove classifiers)ÚstrictNzBWill stop the registering if the meta-data are not fully compliant)ÚverifyrrÚcheckcCsdS)NT©©Úselfr r ú2/usr/lib64/python3.9/distutils/command/register.pyÚózregister.cCst |¡d|_d|_dS)Nr)rÚinitialize_optionsÚlist_classifiersrr r r rrs zregister.initialize_optionscCs*t |¡d|jfddœ}||jjd<dS)Nr)ré)rÚrestructuredtextr )rÚfinalize_optionsrÚ distributionZcommand_options)r Z check_optionsr r rr$s  ÿzregister.finalize_optionscCsT| ¡| ¡| ¡D]}| |¡q|jr8| ¡n|jrH| ¡n| ¡dS)N) rÚ _set_configZget_sub_commandsZ run_commandÚdry_runÚverify_metadatarÚ classifiersÚ send_metadata)r Zcmd_namer r rÚrun+s    z register.runcCs8tdtƒ|j d¡}| ¡|j|_d|_| ¡dS)Nzddistutils.command.register.check_metadata is deprecated, use the check command insteadr r)rÚPendingDeprecationWarningrZget_command_objZensure_finalizedrrr)r r r r rÚcheck_metadata:sÿ zregister.check_metadatacCsz| ¡}|ikr@|d|_|d|_|d|_|d|_d|_n6|jd|jfvr^td|jƒ‚|jdkrp|j|_d|_dS) NÚusernameÚpasswordÚ repositoryÚrealmTZpypiz%s not found in .pypircF)Z _read_pypircrr r!r"Ú has_configZDEFAULT_REPOSITORYÚ ValueError)r Zconfigr r rrDs     zregister._set_configcCs*|jd}tj |¡}t | |¡¡dS)Nz?:action=list_classifiers)r!ÚurllibÚrequestÚurlopenrÚinfoÚ_read_pypi_response)r ÚurlÚresponser r rrUs  zregister.classifierscCs&| | d¡¡\}}t d||¡dS)Nr úServer response (%s): %s)Úpost_to_serverÚbuild_post_datarr()r ÚcodeÚresultr r rr\szregister.verify_metadatac CsÜ|jrd}|j}|j}n d}d}}d ¡}||vrd| dtj¡tƒ}|sRd}q,||vr,tdƒq,|dkrl|s|tdƒ}qn|sŒt   d¡}q|t j   ¡}t j  |j¡d }| |j|||¡| | d ¡|¡\}}| d ||ftj¡|d krØ|jr||j_nf| d tj¡| d| ¡tj¡d}| ¡dvrNtdƒ}|s*d}q*| ¡dkrØ| ||¡nl|dkrˆddi} d| d<| d<| d<d| d<| ds¸tdƒ| d<qž| d| dkr0| dsæt   d¡| d<qÊ| dst   d¡| d<qæ| d| dkr¸d| d<d| d<tdƒq¸| dsJtdƒ| d<q0| | ¡\}}|d krrt d ||¡nt d¡t d¡nP|d krØdd!i} d| d<| ds¼td"ƒ| d<q¢| | ¡\}}t d ||¡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: rÚsubmitr,éÈ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Ú2ú:actionÚuserÚnamer ZemailZconfirmz 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ÚparseÚurlparser!Z add_passwordr"r-r.rZ _get_rc_fileÚlowerZ _store_pypircr() r Úchoicerr ÚchoicesÚauthÚhostr/r0Údatar r rrcsšú      ÿÿ  ÿÿÿ           zregister.send_metadatacCs|jj}|d| ¡| ¡| ¡| ¡| ¡| ¡| ¡|  ¡|  ¡|  ¡|  ¡|  ¡| ¡| ¡| ¡dœ}|ds„|ds„|drŒd|d<|S)Nz1.0)r:Úmetadata_versionr<ÚversionZsummaryZ home_pageZauthorZ author_emailÚlicenseÚ descriptionÚkeywordsÚplatformrZ download_urlÚprovidesÚrequiresÚ obsoletesrRrSrTz1.1rL)rÚmetadataÚget_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ÚmetarKr r rr.Ýs,îzregister.build_post_dataNc Csød|vr$| d|d|jftj¡d}d|}|d}t ¡}| ¡D]~\}}t|ƒtgƒtdƒfvrn|g}|D]R}t|ƒ}|  |¡|  d|¡|  d¡|  |¡|rr|d d krr|  d ¡qrqH|  |¡|  d ¡|  ¡  d ¡}d |tt |ƒƒdœ} t j |j|| ¡} t j t jj|d¡} d}z|  | ¡} Wn|t jjy‚} z*|jrb| j ¡}| j| jf} WYd} ~ nTd} ~ 0t jjy¶} zdt| ƒf} WYd} ~ n d} ~ 00|jrÊ| | ¡}d} |jrôd  d|df¡}| |tj¡| S)Nr<zRegistering %s to %sz3--------------GHSKFJDLGDS7543FJKLFHRE75642756743254z --z--r z* Content-Disposition: form-data; name="%s"z éÿÿÿÿú Ú zutf-8z/multipart/form-data; boundary=%s; charset=utf-8)z Content-typezContent-length)Z password_mgrr3iô)r5ZOKzK---------------------------------------------------------------------------)r?r!rr@ÚioÚStringIOÚitemsÚtypeÚstrÚwriteÚgetvalueÚencodeÚlenr%r&ZRequestZ build_openerZHTTPBasicAuthHandlerÚopenÚerrorÚ HTTPErrorZ show_responseÚfpÚreadr/ÚmsgÚURLErrorr)Újoin)r rKrIÚboundaryZ sep_boundaryZ end_boundaryÚbodyÚkeyÚvalueZheadersZreqÚopenerr0Úerjr r rr-ùs^ ÿþ      þ ÿ  " zregister.post_to_server)N)Ú__name__Ú __module__Ú __qualname__rOrZ user_optionsZboolean_optionsZ sub_commandsrrrrrrrrr.r-r r r rrs"ý zr) rCr\Ú urllib.parser%Zurllib.requestÚwarningsrZdistutils.corerZdistutils.errorsZ distutilsrrr r r rÚs