From eb39bd22e40b95072365b9c28f1f29cfa21e4c29 Mon Sep 17 00:00:00 2001 From: JacksonMaxfield Date: Fri, 24 Sep 2021 10:58:15 -0700 Subject: [PATCH] Loosen version pins --- setup.py | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/setup.py b/setup.py index 4d0f02b7c..087e8bd4b 100644 --- a/setup.py +++ b/setup.py @@ -11,12 +11,14 @@ class BuildPyCommand(build_py): """Check for existence of XSLT before building.""" + def run(self): - xslt = Path(__file__).parent / "aicsimageio/metadata/czi-to-ome-xslt/xslt/czi-to-ome.xsl" + xslt = ( + Path(__file__).parent + / "aicsimageio/metadata/czi-to-ome-xslt/xslt/czi-to-ome.xsl" + ) if not xslt.is_file(): - raise FileNotFoundError( - "XSLT not found. Is the submodule checked out?" - ) + raise FileNotFoundError("XSLT not found. Is the submodule checked out?") build_py.run(self) @@ -24,9 +26,9 @@ def run(self): readme = readme_file.read() format_libs: Dict[str, List[str]] = { - "base-imageio": ["imageio[ffmpeg]~=2.9.0", "Pillow~=8.2.0,!=8.3.0"], - "lif": ["readlif~=0.6.1"], - "czi": ["aicspylibczi~=3.0.2"], + "base-imageio": ["imageio[ffmpeg]>=2.9.0,<3", "Pillow>=8.2.0,!=8.3.0,<9"], + "lif": ["readlif>=0.6.1"], + "czi": ["aicspylibczi>=3.0.2"], "bioformats": ["bioformats_jar"], } @@ -76,20 +78,20 @@ def run(self): benchmark_requirements = [ *dev_requirements, - "dask-image~=0.6.0", + "dask-image>=0.6.0", ] requirements = [ "dask[array]>=2021.4.1", "fsspec>=2021.4.0", "imagecodecs>=2020.5.30", - "lxml~=4.6", - "numpy~=1.16", - "ome-types~=0.2", + "lxml>=4.6,<5", + "numpy>=1.16,<2", + "ome-types>=0.2", "tifffile>=2021.6.6", - "xarray~=0.16.1", + "xarray>=0.16.1", "xmlschema", # no pin because it's pulled in from OME types - "zarr~=2.6", + "zarr>=2.6,<3", ] extra_requirements = {