From 67cffb39f581d31c8fffa0743d98167bc6d87fd8 Mon Sep 17 00:00:00 2001
From: Son Pham-Ba <son.phamba@epfl.ch>
Date: Thu, 6 Apr 2023 17:40:54 +0200
Subject: [PATCH] cap deps versions for compat with old Python

---
 build-wheels.sh | 8 ++++----
 pyproject.toml  | 4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/build-wheels.sh b/build-wheels.sh
index eef0bb5b..c812826c 100755
--- a/build-wheels.sh
+++ b/build-wheels.sh
@@ -5,11 +5,11 @@ PYBINS=(
 #   "/opt/python/cp27-cp27m/bin"  # Gone from manulinux2014
 #   "/opt/python/cp27-cp27mu/bin" # Gone from manulinux2014
 #    "/opt/python/cp35-cp35m/bin"
-   "/opt/python/cp36-cp36m/bin"
+   # "/opt/python/cp36-cp36m/bin"
    "/opt/python/cp37-cp37m/bin"
-   "/opt/python/cp38-cp38/bin"
-   "/opt/python/cp39-cp39/bin"
-   "/opt/python/cp310-cp310/bin"
+   # "/opt/python/cp38-cp38/bin"
+   # "/opt/python/cp39-cp39/bin"
+   # "/opt/python/cp310-cp310/bin"
   )
 
 # Compile wheels
diff --git a/pyproject.toml b/pyproject.toml
index 91bc8c43..15d57429 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -52,9 +52,9 @@ dependencies = [
     "wheel>=0.22",
     "numpy>=1.19.5",
     "scipy>=1.5.4",
-    "scikit-image>=0.17.2",
+    "scikit-image>=0.17.2,<0.20",
     "tifffile>=2020.8.25",
-    "matplotlib>=3.3.4",
+    "matplotlib>=3.3.4,<3.6",
     "SimpleITK>=2.0.2",
     "progressbar>=2.5",
     "python-decouple>=3.4",
-- 
GitLab