From 8dfb74827d0dcebac3408f31de7750a166a6352f Mon Sep 17 00:00:00 2001 From: jakirkham Date: Mon, 27 Feb 2023 13:22:01 -0800 Subject: [PATCH] Pull `requirements/host` from `pyproject.toml` --- conda/recipes/dask-cuda/meta.yaml | 5 +++-- pyproject.toml | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/conda/recipes/dask-cuda/meta.yaml b/conda/recipes/dask-cuda/meta.yaml index 8d233d4e..dec0435d 100644 --- a/conda/recipes/dask-cuda/meta.yaml +++ b/conda/recipes/dask-cuda/meta.yaml @@ -29,8 +29,9 @@ requirements: host: - python - pip - - tomli - - versioneer >=0.24 + {% for r in data.get("build-system", {}).get("requires", []) %} + - {{ r }} + {% endfor %} run: - python {% for r in data.get("project", {}).get("dependencies", []) %} diff --git a/pyproject.toml b/pyproject.toml index 52c8fb51..cbd6c25f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,9 +1,9 @@ [build-system] build-backend = "setuptools.build_meta" requires = [ - "setuptools>=64.0.0", - "tomli ; python_version < '3.11'", - "versioneer>=0.24", + "setuptools >=64.0.0", + "tomli", # Unneeded for Python 3.11+ + "versioneer >=0.24", ] [project]