403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/11490/root/usr/lib/python2.6/distutils/command/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/11490/root/usr/lib/python2.6/distutils/command/register.pyo
Ñò
ÉÉŽJc@s˜dZdZddkZddkZddkZddkZddkZddkZddkl	Z	ddk
TddklZde	fd„ƒYZ
dS(	shdistutils.command.register

Implements the Distutils 'register' command (register with the repository).
s9$Id: register.py 67944 2008-12-27 13:28:42Z tarek.ziade $iÿÿÿÿN(t
PyPIRCCommand(t*(tlogtregistercBs…eZdZeidgZeiddgZd„Zd„Zd„Z	d„Z
d„Zd	„Zd
„Z
d„Zd
d„ZRS(s7register the distribution with the Python package indexslist-classifierss list the valid Trove classifierstverifycCsti|ƒd|_dS(Ni(Rtinitialize_optionstlist_classifiers(tself((s0/usr/lib/python2.6/distutils/command/register.pyRs
cCs\|iƒ|iƒ|iƒ|io|iƒn#|io|iƒn|iƒdS(N(tfinalize_optionst_set_configtcheck_metadatatdry_runtverify_metadataRtclassifierst
send_metadata(R((s0/usr/lib/python2.6/distutils/command/register.pytruns




cCsï|ii}g}x?dD]7}t||ƒo
t||ƒp|i|ƒqqW|o!|idti|dƒƒn|io#|i	p|iddƒqënC|i
o#|ip|idd	ƒqën|id
ddƒd
S(sïEnsure that all required elements of meta-data (name, version,
           URL, (author and author_email) or (maintainer and
           maintainer_email)) are supplied by the Distribution object; warn if
           any are missing.
        tnametversionturlsmissing required meta-data: s, s)missing meta-data: if 'author' supplied, s#'author_email' must be supplied toos-missing meta-data: if 'maintainer' supplied, s''maintainer_email' must be supplied toos4missing meta-data: either (author and author_email) s%or (maintainer and maintainer_email) smust be suppliedN(snamesversionR(tdistributiontmetadatathasattrtgetattrtappendtwarntstringtjointauthortauthor_emailt
maintainertmaintainer_email(RRtmissingtattr((s0/usr/lib/python2.6/distutils/command/register.pyR
*s( 	

	

	cCs·|iƒ}|hjoA|d|_|d|_|d|_|d|_t|_nZ|id|ifjotd|iƒ‚n|idjo|i|_nt	|_dS(s: Reads the configuration file and set attributes.
        tusernametpasswordt
repositorytrealmtpypis%s not found in .pypircN(
t_read_pypircR!R"R#R$tTruet
has_configtDEFAULT_REPOSITORYt
ValueErrortFalse(Rtconfig((s0/usr/lib/python2.6/distutils/command/register.pyR	Hs





cCs%ti|idƒ}|iƒGHdS(s8 Fetch the list of classifiers from the server.
        s?:action=list_classifiersN(turllib2turlopenR#tread(Rtresponse((s0/usr/lib/python2.6/distutils/command/register.pyR
YscCs1|i|idƒƒ\}}d||fGHdS(sF Send the metadata to the package index server to be checked.
        RsServer response (%s): %sN(tpost_to_servertbuild_post_data(Rtcodetresult((s0/usr/lib/python2.6/distutils/command/register.pyR_sc
Csã|iod}|i}|i}nd}d}}diƒ}xU||joG|idtiƒtƒ}|p
d}qE||jo	dGHqEqEW|djogx|ptdƒ}qªWx|ptidƒ}qÅWt	i
ƒ}ti|iƒd	}|i
|i|||ƒ|i|id
ƒ|ƒ\}}|id||ftiƒ|io¦|djo™|id
tiƒ|id|iƒtiƒd}x5|iƒdjo!tdƒ}|p
d}qªqªW|iƒdjo|i||ƒq
qßnÒ|djoUhdd6}	d|	d<|	d<|	d<d#|	d<x |	dptdƒ|	d<qOWx˜|	d|	djo‚x#|	dptidƒ|	d<qŠWx#|	dptidƒ|	d<q°W|	d|	djod|	d<d#|	d<dGHqrqrWx |	dptdƒ|	d<q
W|i|	ƒ\}}|djod||fGHqßdGHdGHnp|d jobhd!d6}	d|	d<x |	dptd"ƒ|	d<q—W|i|	ƒ\}}d||fGHnd#S($s_ Send the metadata to the package index server.

            Well, do the following:
            1. figure who the user is, and then
            2. send the data as a Basic auth'ed POST.

            First we try to read the username/password from $HOME/.pypirc,
            which is a ConfigParser-formatted file with a section
            [distutils] containing username and password entries (both
            in clear text). Eg:

                [distutils]
                index-servers =
                    pypi

                [pypi]
                username: fred
                password: sekrit

            Otherwise, to figure who the user is, we offer the user three
            choices:

             1. use existing login,
             2. register as a new user, or
             3. set the password to a random string and email the user.

        t1txts1 2 3 4sâ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]: s&Please choose one of the four options!s
Username: s
Password: itsubmitsServer response (%s): %siÈsAI can store your PyPI login so future submissions will be faster.s (the login will be stored in %s)tXtynsSave your login (y/N)?tntyt2tusers:actionRR"temailtconfirms
 Confirm: s!Password and confirm don't match!s
   EMail: s"You will receive an email shortly.s7Follow the instructions in it to complete registration.t3tpassword_resetsYour email address: N(R(R!R"tsplittannounceRtINFOt	raw_inputtgetpassR-tHTTPPasswordMgrturlparseR#tadd_passwordR$R1R2t_get_rc_filetlowert
_store_pypirctNone(
RtchoiceR!R"tchoicestauththostR3R4tdata((s0/usr/lib/python2.6/distutils/command/register.pyRgsœ
	



	



	
	





	


cCs|ii}h|d6dd6|iƒd6|iƒd6|iƒd6|iƒd6|iƒd6|iƒd	6|iƒd
6|i	ƒd6|i
ƒd6|iƒd
6|iƒd6|i
ƒd6|iƒd6|iƒd6|iƒd6}|dp|dp|dod|d<n|S(Ns:actions1.0tmetadata_versionRRtsummaryt	home_pageRRtlicensetdescriptiontkeywordstplatformR
tdownload_urltprovidestrequirest	obsoletess1.1(RRtget_nametget_versiontget_descriptiontget_urltget_contacttget_contact_emailtget_licencetget_long_descriptiontget_keywordst
get_platformstget_classifierstget_download_urltget_providestget_requirest
get_obsoletes(RtactiontmetaRS((s0/usr/lib/python2.6/distutils/command/register.pyR2Ýs,













!cCsp|id|d|iftiƒd}d|}|d}tiƒ}xÓ|iƒD]Å\}}t|ƒtgƒtdƒfjo
|g}nx„|D]|}t|ƒidƒ}|i	|ƒ|i	d|ƒ|i	dƒ|i	|ƒ|o"|d	d
jo|i	dƒqœqœWqWW|i	|ƒ|i	dƒ|i
ƒ}hd|d
6tt|ƒƒd6}	t
i|i||	ƒ}
t
it
id|ƒƒ}d}y|i|
ƒ}Wnpt
ij
o8}
|io|
iiƒ}n|
i|
if}nKt
ij
o}
dt|
ƒf}n"X|io|iƒ}nd}|ioddG|GddGHn|S(sC Post a query to the server, and return a string response.
        sRegistering %s to %sRs3--------------GHSKFJDLGDS7543FJKLFHRE75642756743254s
--s--sutf-8s*
Content-Disposition: form-data; name="%s"s

iÿÿÿÿs
s
s/multipart/form-data; boundary=%s; charset=utf-8sContent-typesContent-lengthtpassword_mgrR7iôiÈtOKt-iK((iÈRq(RDR#RREtStringIOtitemsttypetunicodetencodetwritetgetvaluetstrtlenR-tRequesttbuild_openertHTTPBasicAuthHandlertopent	HTTPErrort
show_responsetfpR/R3tmsgtURLError(RRSRQtboundarytsep_boundarytend_boundarytbodytkeytvaluetheaderstreqtopenerR4te((s0/usr/lib/python2.6/distutils/command/register.pyR1ùsV


%








N(slist-classifiersNs list the valid Trove classifiers(t__name__t
__module__RXRtuser_optionsRNtboolean_optionsRRR
R	R
RRR2R1(((s0/usr/lib/python2.6/distutils/command/register.pyRs

							v	(t__doc__t__revision__tosRR-RGRIRstdistutils.coreRtdistutils.errorst	distutilsRR(((s0/usr/lib/python2.6/distutils/command/register.pyt<module>s<


Youez - 2016 - github.com/yon3zu
LinuXploit