(self)
| 72 | return None |
| 73 | |
| 74 | async def update_impl(self) -> bool: |
| 75 | try: |
| 76 | if os.getenv("ENABLE_PYTHON_UPDATER", False): |
| 77 | if self.use_git: |
| 78 | self._run_git_checkout_tag(self._run_git_get_latest_tag()) |
| 79 | return True |
| 80 | |
| 81 | # with pip |
| 82 | self._run_pip_update_package(constants.PROJECT_NAME) |
| 83 | return True |
| 84 | return False |
| 85 | except subprocess.CalledProcessError as e: |
| 86 | self.logger.debug(f"Failed to update : {e}") |
| 87 | return False |
| 88 | |
| 89 | def _run_pip_command(self, *args): |
| 90 | """ |
nothing calls this directly
no test coverage detected