def apply_prefs(options): set_http_session(get_defaults={ "timeout": options['http_timeout'], "verify": patch_requests.cacert_path() })
def run(self): data = retry_get(self.GITHUB_LATEST_RELEASE_URL, verify=cacert_path()).json() self.tag_name = data['tag_name'] self.release_url = data['html_url']