Skip to content

Commit

Permalink
Merge pull request #199 from sbesson/ome_model_deprecation
Browse files Browse the repository at this point in the history
Deprecate ome_model package
  • Loading branch information
sbesson authored Jan 8, 2025
2 parents aefb350 + c1fcfed commit 9920b4a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
6 changes: 6 additions & 0 deletions ome_model/experimental.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import re
import sys
import uuid
import warnings
import xml.etree.ElementTree as ET
from . import __version__

Expand All @@ -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):

Expand Down
12 changes: 9 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,16 @@ 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',
'Development Status :: 7 - Inactive',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
Expand Down

0 comments on commit 9920b4a

Please sign in to comment.