Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate ome_model package #199

Merged
merged 2 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading