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

Add v1.x deprecation warning #603

Merged
merged 9 commits into from
Sep 16, 2024
14 changes: 14 additions & 0 deletions icepyx/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
from warnings import warn

deprecation_msg = """icepyx v1.x is deprecated; the back-end systems on which it relies
mfisher87 marked this conversation as resolved.
Show resolved Hide resolved
will be shut down as of late 2024. At that time, upgrade to icepyx v2.x, which uses the
new NASA Harmony back-end, will be required. Please see
<https://icepyx.readthedocs.io/en/latest/user_guide/changelog/v1.3.0.html> for more
information!
"""
# IMPORTANT: This is being done before the other icepyx imports because the imported
# code changes warning filters. If this is done after the imports, the warning won't
# work.
warn(deprecation_msg, FutureWarning, stacklevel=2)


from _icepyx_version import version as __version__

from icepyx.core.query import GenQuery, Query
Expand Down