From dc304a3875e859f3d18b2804466657d050a18db5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Besson?= Date: Tue, 7 Jan 2025 10:00:38 +0000 Subject: [PATCH 1/2] Deprecate ome_model package Add DeprecationWarning to the module and amend the project name and description Suggest ome-types as a replacement library --- ome_model/experimental.py | 6 ++++++ setup.py | 10 ++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/ome_model/experimental.py b/ome_model/experimental.py index b926e0ece..aacf55107 100644 --- a/ome_model/experimental.py +++ b/ome_model/experimental.py @@ -4,6 +4,7 @@ import re import sys import uuid +import warnings import xml.etree.ElementTree as ET from . import __version__ @@ -25,6 +26,11 @@ TIFF_PARSER += ".*?[.].*?" # Ignore the rest, but don't slurp the file ending TIFF_PARSER = re.compile(TIFF_PARSER) +warnings.warn( + "This module is deprecated as of ome-model 6.3.7. " + "Use other libraries such as ome-types to generate and validate " + "OME-XML.", DeprecationWarning) + class Channel(object): diff --git a/setup.py b/setup.py index 3f6735877..61c9aa890 100644 --- a/setup.py +++ b/setup.py @@ -42,8 +42,14 @@ def write_version(version): version=get_version(), packages=["ome_model"], name='ome-model', - description="Core OME model library (EXPERIMENTAL)", - long_description="TBD", + description="Core OME model library (deprecated)", + long_description=( + "This project has been deprecated. To create companion " + "OME files using Python, you can use other libraries such " + "as https://pypi.org/project/ome-types/ " + "to create and validate OME model objects and convert them " + "into OME-XML." + ), classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', From c1fcfed9687b3306610de1367ae173ccc94c13ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Besson?= Date: Tue, 7 Jan 2025 17:13:46 +0000 Subject: [PATCH 2/2] Update development status marker to Inactive --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 61c9aa890..00254e6ff 100644 --- a/setup.py +++ b/setup.py @@ -51,7 +51,7 @@ def write_version(version): "into OME-XML." ), classifiers=[ - 'Development Status :: 4 - Beta', + 'Development Status :: 7 - Inactive', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Natural Language :: English',