def read_configuration(self):
<EOL>c = self._get_pypirc_command()<EOL>c.repository = self.url<EOL>cfg = c._read_pypirc()<EOL>self.username = cfg.get('<STR_LIT:username>')<EOL>self.password = cfg.get('<STR_LIT:password>')<EOL>self.realm = cfg.get('<STR_LIT>', '<STR_LIT>')<EOL>self.url = cfg.get('<STR_LIT>', self.url)<EOL>
Read the PyPI access configuration as supported by distutils, getting
PyPI to do the acutal work. This populates ``username``, ``password``,
``realm`` and ``url`` attributes from the configuration.