From f396ca1d8aaadf8cb6f241c83b3f33fa0f2f4776 Mon Sep 17 00:00:00 2001 From: William Moore Date: Tue, 9 Jan 2024 13:01:26 +0000 Subject: [PATCH 1/2] Use version_file instead of write_to for scm_version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 6a50814..0be853d 100755 --- a/setup.py +++ b/setup.py @@ -56,5 +56,5 @@ def get_long_description() -> str: keywords=["OMERO.CLI", "plugin"], url="https://github.com/ome/omero-cli-zarr/", setup_requires=["setuptools_scm"], - use_scm_version={"write_to": "src/omero_zarr/_version.py"}, + use_scm_version={"version_file": "src/omero_zarr/_version.py"}, ) From 893d4eeed77ac2524f6782e566a095e6556be846 Mon Sep 17 00:00:00 2001 From: William Moore Date: Tue, 9 Jan 2024 13:27:01 +0000 Subject: [PATCH 2/2] alternative: pin setuptools_scm==7.1.0 and use 'write_to' --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 0be853d..9fe3ec1 100755 --- a/setup.py +++ b/setup.py @@ -55,6 +55,6 @@ def get_long_description() -> str: long_description=long_description, keywords=["OMERO.CLI", "plugin"], url="https://github.com/ome/omero-cli-zarr/", - setup_requires=["setuptools_scm"], - use_scm_version={"version_file": "src/omero_zarr/_version.py"}, + setup_requires=["setuptools_scm==7.1.0"], + use_scm_version={"write_to": "src/omero_zarr/_version.py"}, )