def _release(self):
pypiconfig = pypi.PypiConfig()<EOL>main_files = os.listdir(self.data['<STR_LIT>'])<EOL>if '<STR_LIT>' not in main_files and '<STR_LIT>' not in main_files:<EOL><INDENT>default_answer = False<EOL><DEDENT>else:<EOL><INDENT>default_answer = pypiconfig.want_release()<EOL><DEDENT>if not utils.ask("<STR_LIT>"<EOL>"<STR_LIT>", default=default_answer):<EOL><INDENT>return<EOL><DEDENT>package = self.vcs.name<EOL>version = self.data['<STR_LIT>']<EOL>logger.info("<STR_LIT>")<EOL>self.vcs.checkout_from_tag(version)<EOL>self.data['<STR_LIT>'] = os.path.realpath(os.getcwd())<EOL>logger.info("<STR_LIT>", self.data['<STR_LIT>'])<EOL>if self.setup_cfg.has_bad_commands():<EOL><INDENT>logger.info("<STR_LIT>")<EOL>if utils.ask("<STR_LIT>" %<EOL>self.setup_cfg.config_filename, default=True):<EOL><INDENT>self.setup_cfg.fix_config()<EOL><DEDENT><DEDENT>sdist_options = self._sdist_options()<EOL>if '<STR_LIT>' in os.listdir(self.data['<STR_LIT>']):<EOL><INDENT>self._upload_distributions(package, sdist_options, pypiconfig)<EOL><DEDENT>os.chdir(self.vcs.workingdir)<EOL>
Upload the release, when desired