forked from astropy/astroquery
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
187 lines (176 loc) · 5.81 KB
/
pyproject.toml
File metadata and controls
187 lines (176 loc) · 5.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
[project]
name = "astroquery"
dynamic = ["version"]
description = "Functions and classes to access online astronomical data resources"
readme = { file = "README.rst", content-type = "text/x-rst" }
authors = [
{name = "The Astroquery Developers"},
]
license = "BSD-3-Clause"
license-files = ["LICENSE.rst"]
classifiers = [
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Database",
"Topic :: Scientific/Engineering :: Astronomy",
"Topic :: Software Development :: Libraries",
]
requires-python = ">=3.10"
dependencies = [
"numpy>=1.22",
"astropy>=5.0",
"requests>=2.26",
"beautifulsoup4>=4.10",
"html5lib>=0.999",
"keyring>=23.0",
"pyvo>=1.5",
]
[project.urls]
Source = "https://github.com/astropy/astroquery"
Documentation = "https://astroquery.readthedocs.io"
[project.optional-dependencies]
test = [
"pytest>=7.4",
"pytest-doctestplus>=1.4",
"pytest-timeout",
"pytest-astropy",
"matplotlib",
# Temp workaround for https://github.com/RKrahl/pytest-dependency/issues/91
"pytest-dependency; platform_system != 'Windows'",
"pytest-rerunfailures",
"fsspec[http]",
"moto[s3]",
"s3fs",
]
docs = [
"sphinx",
# https://github.com/astropy/astroquery/issues/3102
"sphinx-automodapi",
"matplotlib",
"sphinx-astropy>=1.5",
"scipy",
"fsspec[http]",
]
all = [
"mocpy>=0.12",
"astropy-healpix",
"boto3",
"botocore",
"regions>=0.5",
]
[build-system]
requires = ['setuptools>=70.1',
'setuptools_scm']
build-backend = 'setuptools.build_meta'
[tool.setuptools_scm]
write_to = 'astroquery/version.py'
[tool.setuptools]
include-package-data = false
[tool.setuptools.packages.find]
include = ["astroquery*"]
[tool.setuptools.package-data]
"astroquery" = ["CITATION"]
# Files that are actually needed
"astroquery.alma" = ["data/cycle0_delivery_asdm_mapping.txt"]
"astroquery.exoplanet_orbit_database" = ["data/exoplanet_orbit_database_units.json"]
"astroquery.hitran" = ["data/readme.txt"]
"astroquery.linelists.cdms" = ["data/catdir.cat", "data/partfunc.cat"]
"astroquery.linelists.jplspec" = ["data/catdir.cat"]
"astroquery.sdss" = ["data/PhotoObjAll_dr12.json", "data/SpecObjAll_dr12.json"]
"astroquery.simbad" = ["data/query_criteria_fields.json"]
"astroquery.splatalogue" = ["data/splat-species.json"]
"astroquery.vizier" = ["data/inverse_dict.json", "data/keywords_dict.json"]
"astroquery.vo_conesearch.validator" = ["data/conesearch_urls.txt"]
# Test files
"*" = ["tests/data/*"]
"astroquery.utils.tap.tests" = ["data/test_upload_file/*"]
[tool.pytest.ini_options]
minversion = "7.4"
norecursedirs = [
"build",
"docs/_build",
"astroquery/irsa",
"astroquery/nasa_exoplanet_archive",
"astroquery/ned",
"astroquery/ibe",
"astroquery/irsa_dust",
"astroquery/cds",
"astroquery/sha",
"astroquery/dace"
]
testpaths = [
"astroquery",
"docs",
]
doctest_plus = "enabled"
astropy_header = true
text_file_format = "rst"
xfail_strict = true
remote_data_strict = true
addopts = ["--color=yes", "--doctest-rst", "--doctest-continue-on-failure"]
timeout = 300
filterwarnings = [
"error",
"ignore:Use setlocale:DeprecationWarning",
"ignore: 'locale.getdefaultlocale' is deprecated and slated for removal:DeprecationWarning",
"ignore:Importing from 'astroquery.jplspec' is deprecated:DeprecationWarning",
"ignore:distutils Version classes are deprecated:DeprecationWarning",
"ignore:unclosed <socket.socket:ResourceWarning",
"ignore:unclosed <ssl.SSLSocket:ResourceWarning",
"ignore::astropy.io.votable.exceptions.W21",
"ignore::astropy.io.votable.exceptions.W42",
"ignore:FITS files must be read as binaries:astroquery.exceptions.InputWarning",
"ignore:Coordinate string is being interpreted as an ICRS coordinate:astroquery.exceptions.InputWarning",
"ignore:Coordinate string is being interpreted as an ICRS coordinate:UserWarning",
"ignore::astropy.io.votable.exceptions.E02",
"ignore:Experimental. ALFALFA:UserWarning",
"ignore:Experimental. Fermi-LAT:UserWarning", "ignore:Experimental. SHA:UserWarning",
"ignore:Experimental. OGLE:UserWarning:",
"ignore:vamdclib could not be imported; the vamdc astroquery module will not work:UserWarning",
"ignore:the vamdc astroquery module:astropy.utils.exceptions.AstropyDeprecationWarning",
"ignore:due to the retirement of its upstream website:astropy.utils.exceptions.AstropyDeprecationWarning",
"ignore:leap-second auto-update failed:astropy.utils.exceptions.AstropyWarning",
"ignore:getName|currentThread:DeprecationWarning:astropy",
"ignore:numpy.core:DeprecationWarning",
"ignore:The upstream SHA API has been changed:UserWarning",
"ignore: The 'strip_cdata' option of HTMLParser:DeprecationWarning",
"ignore:datetime.datetime.utcnow\\(\\) is deprecated:DeprecationWarning",
"ignore:Module astroquery was previously imported, but not measured:coverage.exceptions.CoverageWarning",
"ignore:The chararray class is deprecated and will be removed in a future release:DeprecationWarning"
]
markers = [
"bigdata: marks tests that are expected to trigger a large download (deselect with '-m \"not bigdata\"')",
"noautofixt: disabling fixture autouse",
]
[tool.coverage.run]
omit = [
"astroquery/*_init*",
"astroquery/**/tests/*",
"astroquery/*setup*",
"astroquery/version*",
"*/astroquery/*_init*",
"*/astroquery/**/tests/*",
"*/astroquery/*setup*",
"*/astroquery/version*"
]
[tool.flake8]
# E226 missing whitespace around operators
# E402 module level import not at top of file
# W503 line break before operator
# Stricter settings for people who use flake8 in their editors
max-line-length = "120"
ignore = ["E226", "E402", "W503"]
exclude = [
"_astropy_init.py",
"version.py",
"astroquery/template_module",
"astroquery/simbad/criteria_*.py",
]
[tool.black]
force-exclude = '''
(
.*
)
'''