Skip to content

Commit

Permalink
Remove git depth from recipes
Browse files Browse the repository at this point in the history
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."
  • Loading branch information
mara004 committed Oct 31, 2023
1 parent 63442fb commit fe280c3
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions conda/bundle/recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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") %}

Expand All @@ -18,7 +17,6 @@ package:

source:
git_url: ../../..
git_depth: {{ git_depth }}

build:
number: 0
Expand Down
2 changes: 0 additions & 2 deletions conda/helpers/recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@

{% set pdfium_max = environ["PDFIUM_MAX"] %}
{% set helpers_ver = environ["M_HELPERS_VER"] %}
{% set git_depth = environ["M_GIT_DEPTH"] %}

package:
name: pypdfium2
version: {{ helpers_ver }}

source:
git_url: ../../..
git_depth: {{ git_depth }}

build:
number: 0
Expand Down
2 changes: 0 additions & 2 deletions conda/raw/recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@

{% set pdfium_short = environ["PDFIUM_SHORT"] %}
{% set pdfium_full = environ["PDFIUM_FULL"] %}
{% set git_depth = environ["M_GIT_DEPTH"] %}

package:
name: pypdfium2_raw
version: {{ pdfium_short }}

source:
git_url: ../../..
git_depth: {{ git_depth }}

build:
number: 0
Expand Down
1 change: 0 additions & 1 deletion setupsrc/pypdfium2_setup/craft_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fe280c3

Please sign in to comment.