From 5c6a64ee09c729630ab3ebd3b9753214888fdfe7 Mon Sep 17 00:00:00 2001 From: David Manthey Date: Mon, 18 Apr 2022 10:47:41 -0400 Subject: [PATCH] Add scm version fallback. If setuptools_scm is installed and a local deploy is made that isn't a github repo, then packages fail to install unless there is a fallback version. --- girder/setup.py | 3 ++- girder_annotation/setup.py | 3 ++- setup.py | 3 ++- sources/bioformats/setup.py | 3 ++- sources/deepzoom/setup.py | 3 ++- sources/dummy/setup.py | 3 ++- sources/gdal/setup.py | 3 ++- sources/mapnik/setup.py | 3 ++- sources/multi/setup.py | 3 ++- sources/nd2/setup.py | 3 ++- sources/ometiff/setup.py | 3 ++- sources/openjpeg/setup.py | 3 ++- sources/openslide/setup.py | 3 ++- sources/pil/setup.py | 3 ++- sources/test/setup.py | 3 ++- sources/tiff/setup.py | 3 ++- sources/vips/setup.py | 3 ++- utilities/converter/setup.py | 3 ++- utilities/tasks/setup.py | 3 ++- 19 files changed, 38 insertions(+), 19 deletions(-) diff --git a/girder/setup.py b/girder/setup.py index de9df2144..692b62976 100644 --- a/girder/setup.py +++ b/girder/setup.py @@ -25,7 +25,8 @@ def prerelease_local_scheme(version): setup( name='girder-large-image', - use_scm_version={'root': '..', 'local_scheme': prerelease_local_scheme}, + use_scm_version={'root': '..', 'local_scheme': prerelease_local_scheme, + 'fallback_version': 'development'}, setup_requires=['setuptools-scm', 'setuptools-git'], description=description, long_description=long_description, diff --git a/girder_annotation/setup.py b/girder_annotation/setup.py index 7c632e59b..331e1ef9a 100644 --- a/girder_annotation/setup.py +++ b/girder_annotation/setup.py @@ -25,7 +25,8 @@ def prerelease_local_scheme(version): setup( name='girder-large-image-annotation', - use_scm_version={'root': '..', 'local_scheme': prerelease_local_scheme}, + use_scm_version={'root': '..', 'local_scheme': prerelease_local_scheme, + 'fallback_version': 'development'}, setup_requires=['setuptools-scm', 'setuptools-git'], description=description, long_description=long_description, diff --git a/setup.py b/setup.py index d0681febc..9dfb1fc2a 100644 --- a/setup.py +++ b/setup.py @@ -58,7 +58,8 @@ def prerelease_local_scheme(version): setup( name='large-image', - use_scm_version={'local_scheme': prerelease_local_scheme}, + use_scm_version={'local_scheme': prerelease_local_scheme, + 'fallback_version': 'development'}, setup_requires=['setuptools-scm'], description=description, long_description=long_description, diff --git a/sources/bioformats/setup.py b/sources/bioformats/setup.py index 6df6a13c1..ed7b8b7b9 100644 --- a/sources/bioformats/setup.py +++ b/sources/bioformats/setup.py @@ -25,7 +25,8 @@ def prerelease_local_scheme(version): setup( name='large-image-source-bioformats', - use_scm_version={'root': '../..', 'local_scheme': prerelease_local_scheme}, + use_scm_version={'root': '../..', 'local_scheme': prerelease_local_scheme, + 'fallback_version': 'development'}, setup_requires=['setuptools-scm'], description=description, long_description=long_description, diff --git a/sources/deepzoom/setup.py b/sources/deepzoom/setup.py index 712382bf2..84014dd08 100644 --- a/sources/deepzoom/setup.py +++ b/sources/deepzoom/setup.py @@ -25,7 +25,8 @@ def prerelease_local_scheme(version): setup( name='large-image-source-deepzoom', - use_scm_version={'root': '../..', 'local_scheme': prerelease_local_scheme}, + use_scm_version={'root': '../..', 'local_scheme': prerelease_local_scheme, + 'fallback_version': 'development'}, setup_requires=['setuptools-scm'], description=description, long_description=long_description, diff --git a/sources/dummy/setup.py b/sources/dummy/setup.py index 600c0f50f..cc819a6d9 100644 --- a/sources/dummy/setup.py +++ b/sources/dummy/setup.py @@ -25,7 +25,8 @@ def prerelease_local_scheme(version): setup( name='large-image-source-dummy', - use_scm_version={'root': '../..', 'local_scheme': prerelease_local_scheme}, + use_scm_version={'root': '../..', 'local_scheme': prerelease_local_scheme, + 'fallback_version': 'development'}, setup_requires=['setuptools-scm'], description=description, long_description=long_description, diff --git a/sources/gdal/setup.py b/sources/gdal/setup.py index 62920e6e5..bcd6ff1fb 100644 --- a/sources/gdal/setup.py +++ b/sources/gdal/setup.py @@ -25,7 +25,8 @@ def prerelease_local_scheme(version): setup( name='large-image-source-gdal', - use_scm_version={'root': '../..', 'local_scheme': prerelease_local_scheme}, + use_scm_version={'root': '../..', 'local_scheme': prerelease_local_scheme, + 'fallback_version': 'development'}, setup_requires=['setuptools-scm'], description=description, long_description=long_description, diff --git a/sources/mapnik/setup.py b/sources/mapnik/setup.py index 9e1ba808a..311432bb4 100644 --- a/sources/mapnik/setup.py +++ b/sources/mapnik/setup.py @@ -25,7 +25,8 @@ def prerelease_local_scheme(version): setup( name='large-image-source-mapnik', - use_scm_version={'root': '../..', 'local_scheme': prerelease_local_scheme}, + use_scm_version={'root': '../..', 'local_scheme': prerelease_local_scheme, + 'fallback_version': 'development'}, setup_requires=['setuptools-scm'], description=description, long_description=long_description, diff --git a/sources/multi/setup.py b/sources/multi/setup.py index 865e9ffad..c94236f2d 100644 --- a/sources/multi/setup.py +++ b/sources/multi/setup.py @@ -25,7 +25,8 @@ def prerelease_local_scheme(version): setup( name='large-image-source-multi', - use_scm_version={'root': '../..', 'local_scheme': prerelease_local_scheme}, + use_scm_version={'root': '../..', 'local_scheme': prerelease_local_scheme, + 'fallback_version': 'development'}, setup_requires=['setuptools-scm'], description=description, long_description=long_description, diff --git a/sources/nd2/setup.py b/sources/nd2/setup.py index b241c82f4..3e8343593 100644 --- a/sources/nd2/setup.py +++ b/sources/nd2/setup.py @@ -25,7 +25,8 @@ def prerelease_local_scheme(version): setup( name='large-image-source-nd2', - use_scm_version={'root': '../..', 'local_scheme': prerelease_local_scheme}, + use_scm_version={'root': '../..', 'local_scheme': prerelease_local_scheme, + 'fallback_version': 'development'}, setup_requires=['setuptools-scm'], description=description, long_description=long_description, diff --git a/sources/ometiff/setup.py b/sources/ometiff/setup.py index 4e20d31fe..60843a1aa 100644 --- a/sources/ometiff/setup.py +++ b/sources/ometiff/setup.py @@ -25,7 +25,8 @@ def prerelease_local_scheme(version): setup( name='large-image-source-ometiff', - use_scm_version={'root': '../..', 'local_scheme': prerelease_local_scheme}, + use_scm_version={'root': '../..', 'local_scheme': prerelease_local_scheme, + 'fallback_version': 'development'}, setup_requires=['setuptools-scm'], description=description, long_description=long_description, diff --git a/sources/openjpeg/setup.py b/sources/openjpeg/setup.py index 2153acc6e..acdec03d9 100644 --- a/sources/openjpeg/setup.py +++ b/sources/openjpeg/setup.py @@ -25,7 +25,8 @@ def prerelease_local_scheme(version): setup( name='large-image-source-openjpeg', - use_scm_version={'root': '../..', 'local_scheme': prerelease_local_scheme}, + use_scm_version={'root': '../..', 'local_scheme': prerelease_local_scheme, + 'fallback_version': 'development'}, setup_requires=['setuptools-scm'], description=description, long_description=long_description, diff --git a/sources/openslide/setup.py b/sources/openslide/setup.py index 5e49bb860..f5d603d96 100644 --- a/sources/openslide/setup.py +++ b/sources/openslide/setup.py @@ -25,7 +25,8 @@ def prerelease_local_scheme(version): setup( name='large-image-source-openslide', - use_scm_version={'root': '../..', 'local_scheme': prerelease_local_scheme}, + use_scm_version={'root': '../..', 'local_scheme': prerelease_local_scheme, + 'fallback_version': 'development'}, setup_requires=['setuptools-scm'], description=description, long_description=long_description, diff --git a/sources/pil/setup.py b/sources/pil/setup.py index a1b000b7c..c734e84fd 100644 --- a/sources/pil/setup.py +++ b/sources/pil/setup.py @@ -25,7 +25,8 @@ def prerelease_local_scheme(version): setup( name='large-image-source-pil', - use_scm_version={'root': '../..', 'local_scheme': prerelease_local_scheme}, + use_scm_version={'root': '../..', 'local_scheme': prerelease_local_scheme, + 'fallback_version': 'development'}, setup_requires=['setuptools-scm'], description=description, long_description=long_description, diff --git a/sources/test/setup.py b/sources/test/setup.py index 680ca8f92..143e5aeb2 100644 --- a/sources/test/setup.py +++ b/sources/test/setup.py @@ -25,7 +25,8 @@ def prerelease_local_scheme(version): setup( name='large-image-source-test', - use_scm_version={'root': '../..', 'local_scheme': prerelease_local_scheme}, + use_scm_version={'root': '../..', 'local_scheme': prerelease_local_scheme, + 'fallback_version': 'development'}, setup_requires=['setuptools-scm'], description=description, long_description=long_description, diff --git a/sources/tiff/setup.py b/sources/tiff/setup.py index 751e955bc..13a53651c 100644 --- a/sources/tiff/setup.py +++ b/sources/tiff/setup.py @@ -25,7 +25,8 @@ def prerelease_local_scheme(version): setup( name='large-image-source-tiff', - use_scm_version={'root': '../..', 'local_scheme': prerelease_local_scheme}, + use_scm_version={'root': '../..', 'local_scheme': prerelease_local_scheme, + 'fallback_version': 'development'}, setup_requires=['setuptools-scm'], description=description, long_description=long_description, diff --git a/sources/vips/setup.py b/sources/vips/setup.py index 7ceeb9fb6..42dbc4ec6 100644 --- a/sources/vips/setup.py +++ b/sources/vips/setup.py @@ -25,7 +25,8 @@ def prerelease_local_scheme(version): setup( name='large-image-source-vips', - use_scm_version={'root': '../..', 'local_scheme': prerelease_local_scheme}, + use_scm_version={'root': '../..', 'local_scheme': prerelease_local_scheme, + 'fallback_version': 'development'}, setup_requires=['setuptools-scm'], description=description, long_description=long_description, diff --git a/utilities/converter/setup.py b/utilities/converter/setup.py index 319b63e1d..0ac3f7998 100644 --- a/utilities/converter/setup.py +++ b/utilities/converter/setup.py @@ -28,7 +28,8 @@ def prerelease_local_scheme(version): setup( name='large-image-converter', - use_scm_version={'root': '../..', 'local_scheme': prerelease_local_scheme}, + use_scm_version={'root': '../..', 'local_scheme': prerelease_local_scheme, + 'fallback_version': 'development'}, setup_requires=['setuptools-scm'], description=description, long_description=long_description, diff --git a/utilities/tasks/setup.py b/utilities/tasks/setup.py index 7c9aa4602..dce637d0e 100644 --- a/utilities/tasks/setup.py +++ b/utilities/tasks/setup.py @@ -28,7 +28,8 @@ def prerelease_local_scheme(version): setup( name='large-image-tasks', - use_scm_version={'root': '../..', 'local_scheme': prerelease_local_scheme}, + use_scm_version={'root': '../..', 'local_scheme': prerelease_local_scheme, + 'fallback_version': 'development'}, setup_requires=['setuptools-scm'], description=description, long_description=long_description,