From 99cc26f7256dcadd5a9312bfacc9b52e9f31229c Mon Sep 17 00:00:00 2001 From: jakirkham Date: Tue, 2 Apr 2024 14:40:27 -0700 Subject: [PATCH] Require `click` as a wheel dependency Trying to `import cucim` results in `import click`, which fails if `click` is not installed. This was encountered recently by a user that tested out the cuCIM wheel packages. The Conda packages already solve this by adding `click` to `requirements/run`. So this makes an equivalent change to the wheel packages. Should fix user install issues. --- dependencies.yaml | 2 +- python/cucim/pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dependencies.yaml b/dependencies.yaml index 28a7854db..475b8dd3b 100644 --- a/dependencies.yaml +++ b/dependencies.yaml @@ -268,6 +268,7 @@ dependencies: # - xorg-libxcb - output_types: [requirements, pyproject] packages: + - click - cupy-cuda11x>=12.0.0 test_python: common: @@ -297,7 +298,6 @@ dependencies: - openslide-python>=1.3.0; platform_machine=='x86_64' - matplotlib - opencv-python-headless>=4.6 - - click - output_types: [pyproject] packages: # Already added to requirements via docs. This is for tests. diff --git a/python/cucim/pyproject.toml b/python/cucim/pyproject.toml index 66e3a2d48..433afc0a5 100644 --- a/python/cucim/pyproject.toml +++ b/python/cucim/pyproject.toml @@ -24,6 +24,7 @@ authors = [ license = { text = "Apache 2.0" } requires-python = ">=3.9" dependencies = [ + "click", "cupy-cuda11x>=12.0.0", "lazy_loader>=0.1", "numpy>=1.23.4,<2.0a0", @@ -57,7 +58,6 @@ Tracker = "https://github.com/rapidsai/cucim/issues" [project.optional-dependencies] test = [ "GPUtil>=1.4.0", - "click", "imagecodecs>=2021.6.8; platform_machine=='x86_64'", "matplotlib", "numpydoc>=1.5",