Skip to content

Commit

Permalink
make conda recipe data-loading stricter
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Jun 12, 2024
1 parent abded3a commit 5c6cbd2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions conda/recipes/dask-cuda/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ build:
script:
- {{ PYTHON }} -m pip install . -vv
entry_points:
{% for e in data.get("project", {}).get("scripts", {}).items() %}
{% for e in data["project"]["scripts"].items() %}
- {{ e|join(" = ") }}
{% endfor %}

Expand All @@ -32,7 +32,7 @@ requirements:
- rapids-build-backend>=0.3.0,<0.4.0.dev0
run:
- python
{% for r in data.get("project", {}).get("dependencies", []) %}
{% for r in data["project"]["dependencies"] %}
- {{ r }}
{% endfor %}

Expand All @@ -41,18 +41,18 @@ test:
- dask_cuda
commands:
- dask cuda --help
{% for e in data.get("project", {}).get("scripts", {}).keys() %}
{% for e in data["project"]["scripts"].keys() %}
- {{ e }} --help
- {{ e|replace("-", " ") }} --help
{% endfor %}

about:
home: {{ data.get("project", {}).get("urls", {}).get("Homepage", "") }}
license: {{ data.get("project", {}).get("license", {}).get("text", "") }}
home: {{ data["project"]["urls"]["Homepage"] }}
license: {{ data["project"]["license"]["text"] }}
license_file:
{% for e in data.get("tool", {}).get("setuptools", {}).get("license-files", []) %}
{% for e in data["tool"]["setuptools"]["license-files"] %}
- ../../../{{ e }}
{% endfor %}
summary: {{ data.get("project", {}).get("description", "") }}
dev_url: {{ data.get("project", {}).get("urls", {}).get("Source", "") }}
doc_url: {{ data.get("project", {}).get("urls", {}).get("Documentation", "") }}
summary: {{ data["project"]["description"] }}
dev_url: {{ data["project"]["urls"]["Source"] }}
doc_url: {{ data["project"]["urls"]["Documentation"] }}

0 comments on commit 5c6cbd2

Please sign in to comment.