From 5d64c206460207d53241237e8829379c6a27f34b Mon Sep 17 00:00:00 2001 From: Grzegorz Bokota Date: Fri, 19 Jul 2024 14:36:36 +0200 Subject: [PATCH] build: require napari>=0.5.0 only for python 3.9+ (#1162) ## Summary by CodeRabbit - **New Features** - Introduced conditional dependencies for `napari` based on Python version, ensuring compatibility for users on Python 3.9 or higher. - **Bug Fixes** - Enhanced dependency management to prevent potential compatibility issues in older Python environments. --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e6aa15bc9..ae3b76e67 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -128,7 +128,7 @@ pyqt5 = [ ] pyqt6 = [ "PyQt6", - "napari[pyqt6]>=0.5.0", + "napari[pyqt6]>=0.5.0; python_version >= '3.9'", ] pyside = [ "PartSeg[pyside2]", @@ -139,7 +139,7 @@ pyside2 = [ ] pyside6 = [ "PySide6", - "napari[pyside6_experimental]>=0.5.0", + "napari[pyside6_experimental]>=0.5.0; python_version >= '3.9'", ] test = [ "coverage",