File tree Expand file tree Collapse file tree 4 files changed +11
-238
lines changed Expand file tree Collapse file tree 4 files changed +11
-238
lines changed Original file line number Diff line number Diff line change 25
25
26
26
if not _ASTROPY_SETUP_ : # noqa
27
27
import os
28
- from warnings import warn
29
- from astropy .config .configuration import (
30
- update_default_config ,
31
- ConfigurationDefaultMissingError ,
32
- ConfigurationDefaultMissingWarning )
33
28
34
29
# Create the test function for self test
35
30
from astropy .tests .runner import TestRunner
36
31
test = TestRunner .make_test_runner_in (os .path .dirname (__file__ ))
37
32
test .__test__ = False
38
33
__all__ += ['test' ]
39
-
40
- # add these here so we only need to cleanup the namespace at the end
41
- config_dir = None
42
-
43
- if not os .environ .get ('ASTROPY_SKIP_CONFIG_UPDATE' , False ):
44
- config_dir = os .path .dirname (__file__ )
45
- config_template = os .path .join (config_dir , __package__ + ".cfg" )
46
- if os .path .isfile (config_template ):
47
- try :
48
- update_default_config (
49
- __package__ , config_dir , version = __version__ )
50
- except TypeError as orig_error :
51
- try :
52
- update_default_config (__package__ , config_dir )
53
- except ConfigurationDefaultMissingError as e :
54
- wmsg = (e .args [0 ] +
55
- " Cannot install default profile. If you are "
56
- "importing from source, this is expected." )
57
- warn (ConfigurationDefaultMissingWarning (wmsg ))
58
- del e
59
- except Exception :
60
- raise orig_error
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
3
3
4
4
def get_package_data ():
5
- return {'astroquery' : ['astroquery.cfg' , ' CITATION' ]}
5
+ return {'astroquery' : ['CITATION' ]}
Original file line number Diff line number Diff line change @@ -143,6 +143,16 @@ All query tools allow coordinate-based queries:
143
143
144
144
For additional guidance and examples, read the documentation for the individual services below.
145
145
146
+ .. _default_config :
147
+
148
+ Default configuration file
149
+ --------------------------
150
+
151
+ To customize this, copy it to your ``$HOME/.astropy/config/astroquery.cfg ``,
152
+ uncomment the relevant configuration item(s), and insert your desired value(s).
153
+
154
+ .. generate_config :: astroquery
155
+
146
156
Available Services
147
157
==================
148
158
You can’t perform that action at this time.
0 commit comments