diff --git a/setupsrc/pypdfium2_setup/packaging_base.py b/setupsrc/pypdfium2_setup/packaging_base.py index 71faa22c2..f3afa30fb 100644 --- a/setupsrc/pypdfium2_setup/packaging_base.py +++ b/setupsrc/pypdfium2_setup/packaging_base.py @@ -113,8 +113,8 @@ class PdfiumVer: V_KEYS = ("major", "minor", "build", "patch") # TODO consider cached property? - @functools.lru_cache(maxsize=1) @staticmethod + @functools.lru_cache(maxsize=1) def get_latest(): git_ls = run_cmd(["git", "ls-remote", f"{ReleaseRepo}.git"], cwd=None, capture=True) tag = git_ls.split("\t")[-1]