def upgrade_packages(self, packages):
print("<STR_LIT>")<EOL>package_list = []<EOL>requirements = self._parse_requirements(packages.readlines())<EOL>for (package, version) in requirements:<EOL><INDENT>package_list.append(package)<EOL><DEDENT>if package_list:<EOL><INDENT>args = [<EOL>"<STR_LIT>",<EOL>"<STR_LIT>",<EOL>"<STR_LIT>",<EOL>]<EOL>args.extend(package_list)<EOL>subprocess.check_call(args)<EOL><DEDENT>else:<EOL><INDENT>print("<STR_LIT>")<EOL><DEDENT>
Upgrade all specified packages to latest version