Skip to content

Commit e202818

Browse files
committed
Deprecate astroquery.vamdc
1 parent 77986a0 commit e202818

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

CHANGES.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,12 @@ ukidss
151151

152152
- Updated to ``UKIDSSDR11PLUS`` as the default data release. [#1767]
153153

154+
vamdc
155+
^^^^^
156+
157+
- Deprecate module due to upstream library dependence and compability
158+
issues. [#2070]
159+
154160
vizier
155161
^^^^^^
156162

astroquery/vamdc/core.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,14 @@
88
from ..query import BaseQuery
99
from . import conf
1010
from . load_species_table import species_lookuptable
11+
from astropy.utils.decorators import deprecated
1112

1213
__doctest_skip__ = ['VamdcClass.*']
1314

1415

16+
@deprecated('0.4.2', 'the module relies on an unmaintained library and is'
17+
'considered deprecated until completely refactored or upstream'
18+
'is stablised.')
1519
@async_to_sync
1620
class VamdcClass(BaseQuery):
1721

astroquery/vamdc/tests/test_vamdc_remote.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# remote_data decorator from astropy:
88

99
import pytest
10+
from astropy.utils.exceptions import AstropyDeprecationWarning
1011

1112
try:
1213
from ... import vamdc
@@ -23,3 +24,8 @@ class TestVamdcClass:
2324
def test_query_molecule(self):
2425
ch3oh = vamdc.core.VamdcClass().query_molecule('CH3OH')
2526
assert 'SCDMS-2369983' in ch3oh.data['States']
27+
28+
29+
def test_deprecation():
30+
with pytest.warns(AstropyDeprecationWarning):
31+
vamdc.Vamdc()

setup.cfg

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ all=
153153
astropy-healpix
154154
boto3
155155
regions
156-
vamdclib @ git+https://github.com/keflavich/vamdclib-1.git
157156
# aplpy is not py39 compatible (it requires shapely that doesn't compile
158157
# pyregion is not py39 compatible
159158
all_lt_39=
@@ -163,4 +162,3 @@ all_lt_39=
163162
astropy-healpix
164163
aplpy
165164
boto3
166-
vamdclib @ git+https://github.com/keflavich/vamdclib-1.git

0 commit comments

Comments
 (0)