Skip to content

Commit 0c8cf37

Browse files
authored
Merge pull request #2792 from bsipocz/deprecate_EOD
DEP: explanet_orbit_database
2 parents fa181fa + cf5c9c3 commit 0c8cf37

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

CHANGES.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,13 @@ cds
117117
- The ``cds`` module has been renamed ``mocserver`` and issues a deprecation warning
118118
when imported. [#2766]
119119

120+
exoplanet_orbit_database
121+
^^^^^^^^^^^^^^^^^^^^^^^^
122+
123+
- The module has been deprecated due to the retirement of its upstream
124+
website. The database hasn't been updated since 2018, users are encouraged
125+
to use the ``ipac.nexsci.nasa_exoplanet_archive`` module instead. [#2792]
126+
120127
heasarc
121128
^^^^^^^
122129

astroquery/exoplanet_orbit_database/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,16 @@
55
66
:Author: Brett M. Morris ([email protected])
77
"""
8+
import warnings
89
from .exoplanet_orbit_database import (ExoplanetOrbitDatabase,
910
ExoplanetOrbitDatabaseClass)
1011
from astropy import config as _config
12+
from astropy.utils.exceptions import AstropyDeprecationWarning
13+
14+
15+
warnings.warn("due to the retirement of its upstream website, the ``exoplanet_orbit_database`` module "
16+
"has been deprecated as of v0.4.7 and will be removed in a future release.",
17+
AstropyDeprecationWarning, stacklevel=2)
1118

1219

1320
class Conf(_config.ConfigNamespace):

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ filterwarnings =
6262
ignore:The legacy NRAO archive this module uses has been retired:UserWarning
6363
ignore:vamdclib could not be imported; the vamdc astroquery module will not work:UserWarning
6464
ignore:the vamdc astroquery module:astropy.utils.exceptions.AstropyDeprecationWarning
65+
# exoplanet_orbit_database
66+
ignore:due to the retirement of its upstream website:astropy.utils.exceptions.AstropyDeprecationWarning
6567
# Leap second update related warning
6668
ignore:leap-second auto-update failed:astropy.utils.exceptions.AstropyWarning
6769
# Should ignore these for astropy<5.0

0 commit comments

Comments
 (0)