Skip to content

Commit af0f3ef

Browse files
authored
Template Conda recipe's about metadata (#1121)
Pull in the Conda recipe's `about` metadata from `pyproject.toml` using templating. Follows more closely with DRY and move more towards using `pyproject.toml` as the single source of truth. Authors: - https://github.com/jakirkham Approvers: - AJ Schmidt (https://github.com/ajschmidt8) - Peter Andreas Entschev (https://github.com/pentschev) URL: #1121
1 parent 458655d commit af0f3ef

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

conda/recipes/dask-cuda/meta.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ test:
4848
{% endfor %}
4949

5050
about:
51-
home: https://rapids.ai/
52-
license: Apache-2.0
53-
license_file: ../../../LICENSE
54-
summary: dask-cuda library
51+
home: {{ data.get("project", {}).get("urls", {}).get("Homepage", "") }}
52+
license: {{ data.get("project", {}).get("license", {}).get("text", "") }}
53+
license_file:
54+
{% for e in data.get("tool", {}).get("setuptools", {}).get("license-files", []) %}
55+
- ../../../{{ e }}
56+
{% endfor %}
57+
summary: {{ data.get("project", {}).get("description", "") }}
58+
dev_url: {{ data.get("project", {}).get("urls", {}).get("Source", "") }}
59+
doc_url: {{ data.get("project", {}).get("urls", {}).get("Documentation", "") }}

0 commit comments

Comments
 (0)