Skip to content

Commit

Permalink
Add scm version fallback.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
manthey committed Apr 19, 2022
1 parent 51c647b commit 5c6a64e
Show file tree
Hide file tree
Showing 19 changed files with 38 additions and 19 deletions.
3 changes: 2 additions & 1 deletion girder/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion girder_annotation/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion sources/bioformats/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion sources/deepzoom/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion sources/dummy/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion sources/gdal/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion sources/mapnik/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion sources/multi/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion sources/nd2/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion sources/ometiff/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion sources/openjpeg/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion sources/openslide/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion sources/pil/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion sources/test/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion sources/tiff/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion sources/vips/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion utilities/converter/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion utilities/tasks/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5c6a64e

Please sign in to comment.