pip_upgrader/packages_upgrader.py
def _update_package(self, package):
        """ Update (install) the package in current environment, and if success, also replace version in file """
        try:
            if not self.dry_run and not self.skip_package_installation:  # pragma: nocover
                subprocess.check_call(['pip', 'install', '{}=={}'.format(package['name'], package['latest_version'])])
            else:
                print('[Dry Run]: skipping package installation:', package['name'])
            # update only if installation success
            self._update_requirements_package(package)

        except CalledProcessError:  # pragma: nocover
            print(Color('{{autored}}Failed to install package "{}"{{/autored}}'.format(package['name'])))
def _update_package(self, package):
        """ Update (install) the package in current environment, and if success, also replace version in file """
        try:
            if not self.dry_run and not self.skip_package_installation:  # pragma: nocover
                subprocess.check_call(['pip', 'install', '{}=={}'.format(package['name'], package['latest_version'])])
            else:
                print('[Dry Run]: skipping package installation:', package['name'])
            # update only if installation success
            self._update_requirements_package(package)

        except CalledProcessError:  # pragma: nocover
            print(Color('{{autored}}Failed to install package "{}"{{/autored}}'.format(package['name'])))
def _update_package ( self , package ) : try : if not self . dry_run and not self . skip_package_installation : # pragma: nocover subprocess . check_call ( [ 'pip' , 'install' , '{}=={}' . format ( package [ 'name' ] , package [ 'latest_version' ] ) ] ) else : print ( '[Dry Run]: skipping package installation:' , package [ 'name' ] ) # update only if installation success self . _update_requirements_package ( package ) except CalledProcessError : # pragma: nocover print ( Color ( '{{autored}}Failed to install package "{}"{{/autored}}' . format ( package [ 'name' ] ) ) )
Update (install) the package in current environment, and if success, also replace version in file
Update ( install ) the package in current environment and if success also replace version in file