Skip to content

Commit c71a4d3

Browse files
authored
Merge pull request #2070 from bsipocz/vamdc_deprecate
Deprecate astroquery.vamdc
2 parents 5ed7820 + c76cde1 commit c71a4d3

File tree

5 files changed

+16
-22
lines changed

5 files changed

+16
-22
lines changed

CHANGES.rst

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

158158
- Updated to ``UKIDSSDR11PLUS`` as the default data release. [#1767]
159159

160+
vamdc
161+
^^^^^
162+
163+
- Deprecate module due to upstream library dependence and compability
164+
issues. [#2070]
165+
160166
vizier
161167
^^^^^^
162168

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.py

Lines changed: 0 additions & 20 deletions
This file was deleted.

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(doimport=False)

setup.cfg

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

0 commit comments

Comments
 (0)