mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
test-locked-requirements: Rename may_be_setup_cache to maybe_set_up_cache.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Anders Kaseorg
parent
e2cc554077
commit
82a048004a
@@ -67,7 +67,7 @@ def get_requirements_hash(tmp_dir: str, use_test_lock_files: bool = False) -> st
|
|||||||
return sha1.hexdigest()
|
return sha1.hexdigest()
|
||||||
|
|
||||||
|
|
||||||
def may_be_setup_cache() -> None:
|
def maybe_set_up_cache() -> None:
|
||||||
os.makedirs(CACHE_DIR, exist_ok=True)
|
os.makedirs(CACHE_DIR, exist_ok=True)
|
||||||
if not os.path.exists(CACHE_FILE):
|
if not os.path.exists(CACHE_FILE):
|
||||||
with open(CACHE_FILE, "wb") as fp:
|
with open(CACHE_FILE, "wb") as fp:
|
||||||
@@ -90,7 +90,7 @@ def update_cache(hash_list: List[str]) -> None:
|
|||||||
|
|
||||||
|
|
||||||
def main() -> None:
|
def main() -> None:
|
||||||
may_be_setup_cache()
|
maybe_set_up_cache()
|
||||||
hash_list = load_cache()
|
hash_list = load_cache()
|
||||||
tmp = tempfile.TemporaryDirectory()
|
tmp = tempfile.TemporaryDirectory()
|
||||||
tmp_dir = tmp.name
|
tmp_dir = tmp.name
|
||||||
|
|||||||
Reference in New Issue
Block a user