ó {fc@sRdZddlZddlmZddlmZdZdefd„ƒYZdS(sdistutils.pypirc Provides the PyPIRCCommand class, the base class for the command classes that uses .pypirc in the distutils.command package. iÿÿÿÿN(t ConfigParser(tCommandsE[distutils] index-servers = pypi [pypi] username:%s password:%s t PyPIRCCommandcBsueZdZdZdZd Zd ZdddefdgZdgZ d„Z d „Z d „Z d „Z d „ZRS(s;Base command that knows how to handle the .pypirc file shttps://upload.pypi.org/legacy/tpypis repository=trsurl of repository [default: %s]s show-responses&display full response text from servercCstjjtjjdƒdƒS(sReturns rc file path.t~s.pypirc(tostpathtjoint expanduser(tself((s(/usr/lib64/python2.7/distutils/config.pyt _get_rc_file&scCsd|jƒ}tjtj|tjtjBdƒdƒ}z|jt||fƒWd|jƒXdS(sCreates a default .pypirc file.i€twN( R RtfdopentopentO_CREATtO_WRONLYtwritetDEFAULT_PYPIRCtclose(R tusernametpasswordtrctf((s(/usr/lib64/python2.7/distutils/config.pyt _store_pypirc*s  +c Cs3|jƒ}tjj|ƒr/|jd|ƒ|jp>|j}tƒ}|j|ƒ|j ƒ}d|kr¨|j ddƒ}g|j dƒD]$}|j ƒdkr‘|j ƒ^q‘}|gkræd|krßdg}qæiSnxC|D]´}i|d6}|j |dƒ|ds