Skip to content

Commit

Permalink
Add v1.x deprecation warning (#603)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jessica Scheick <[email protected]>
Co-authored-by: Jessica Scheick <[email protected]>
  • Loading branch information
4 people committed Sep 16, 2024
1 parent bea9fe0 commit a98409f
Showing 1 changed file with 14 additions and 0 deletions.
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 being deprecated; the back-end systems on which it relies
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

0 comments on commit a98409f

Please sign in to comment.