From fe280c36f245d97e6c0fd0325eb530f452eb8611 Mon Sep 17 00:00:00 2001 From: geisserml Date: Tue, 31 Oct 2023 14:37:19 +0100 Subject: [PATCH] Remove git depth from recipes Fixes "warning: --depth is ignored in local clones; use file:// instead" https://stackoverflow.com/a/59458873/15547292 "It's neither necessary nor beneficial to shallow clone a local repo." --- conda/bundle/recipe/meta.yaml | 2 -- conda/helpers/recipe/meta.yaml | 2 -- conda/raw/recipe/meta.yaml | 2 -- setupsrc/pypdfium2_setup/craft_packages.py | 1 - 4 files changed, 7 deletions(-) diff --git a/conda/bundle/recipe/meta.yaml b/conda/bundle/recipe/meta.yaml index 9afeca9e9..92e2f37a2 100644 --- a/conda/bundle/recipe/meta.yaml +++ b/conda/bundle/recipe/meta.yaml @@ -8,7 +8,6 @@ # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {% set helpers_ver = environ["M_HELPERS_VER"] %} -{% set git_depth = environ["M_GIT_DEPTH"] %} {% set pl_spec = environ["IN_PDFIUM_PLATFORM"] %} # {% set setup_cfg = load_file_data("setup.cfg") %} @@ -18,7 +17,6 @@ package: source: git_url: ../../.. - git_depth: {{ git_depth }} build: number: 0 diff --git a/conda/helpers/recipe/meta.yaml b/conda/helpers/recipe/meta.yaml index 18e1fda29..1ff789f01 100644 --- a/conda/helpers/recipe/meta.yaml +++ b/conda/helpers/recipe/meta.yaml @@ -3,7 +3,6 @@ {% set pdfium_max = environ["PDFIUM_MAX"] %} {% set helpers_ver = environ["M_HELPERS_VER"] %} -{% set git_depth = environ["M_GIT_DEPTH"] %} package: name: pypdfium2 @@ -11,7 +10,6 @@ package: source: git_url: ../../.. - git_depth: {{ git_depth }} build: number: 0 diff --git a/conda/raw/recipe/meta.yaml b/conda/raw/recipe/meta.yaml index 4b0ecd833..e50860b3e 100644 --- a/conda/raw/recipe/meta.yaml +++ b/conda/raw/recipe/meta.yaml @@ -3,7 +3,6 @@ {% set pdfium_short = environ["PDFIUM_SHORT"] %} {% set pdfium_full = environ["PDFIUM_FULL"] %} -{% set git_depth = environ["M_GIT_DEPTH"] %} package: name: pypdfium2_raw @@ -11,7 +10,6 @@ package: source: git_url: ../../.. - git_depth: {{ git_depth }} build: number: 0 diff --git a/setupsrc/pypdfium2_setup/craft_packages.py b/setupsrc/pypdfium2_setup/craft_packages.py index 553b4321c..5e6153fe9 100644 --- a/setupsrc/pypdfium2_setup/craft_packages.py +++ b/setupsrc/pypdfium2_setup/craft_packages.py @@ -246,7 +246,6 @@ def main(): main_pypi(args) elif args.parser.startswith("conda"): helpers_info = parse_git_tag() - os.environ["M_GIT_DEPTH"] = str(helpers_info["n_commits"] + 2) os.environ["M_HELPERS_VER"] = merge_tag(helpers_info, "py") if args.parser == P_CONDA_BUNDLE: main_conda_bundle(args)