From 39bd1a2d5770afcb52b93f4dc94f2fe4c6af167f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 27 Jul 2023 16:53:33 +0530 Subject: [PATCH] ... --- .github/workflows/ci.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.py b/.github/workflows/ci.py index 76ab98365..b3f00c67e 100644 --- a/.github/workflows/ci.py +++ b/.github/workflows/ci.py @@ -11,6 +11,7 @@ import sys import tarfile from urllib.request import urlopen +BUNDLE_URL = 'https://download.calibre-ebook.com/ci/kitty/{}-64.tar.xz' is_bundle = os.environ.get('KITTY_BUNDLE') == '1' is_macos = 'darwin' in sys.platform.lower() SW = None @@ -98,8 +99,7 @@ def install_bundle(): cwd = os.getcwd() os.makedirs(SW) os.chdir(SW) - with urlopen('https://download.calibre-ebook.com/ci/kitty/{}-64.tar.xz'.format( - 'macos' if is_macos else 'linux')) as f: + with urlopen(BUNDLE_URL.format('macos' if is_macos else 'linux')) as f: data = f.read() with tarfile.open(fileobj=io.BytesIO(data), mode='r:xz') as tf: tf.extractall()