-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpyproject.toml
138 lines (128 loc) · 3.19 KB
/
pyproject.toml
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
[project]
name = 'slitlessutils'
description = 'A compendium of tools to analyze slitless spectroscopy'
readme = 'README.md'
license = {file = 'LICENSE.rst'}
authors = [
{name = 'Slitlessutils Developers', email = 'help@stsci.edu'},
]
keywords = [
'grism',
'prism',
'slitless spectroscopy',
'HST',
'WFC3',
'UVIS',
'IR',
'ACS',
'WFC',
'SBC',
'JWST',
'NIRISS',
'wide field'
]
classifiers = [
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Astronomy',
]
dynamic = ['version']
requires-python = '>=3.11'
dependencies = [
'astropy>=5.0.4',
'astroquery',
'h5py',
'drizzlepac>=3.9.1',
'networkx>=2.6.3',
'numpy>=1.22.3',
'matplotlib>=3.5.2',
'pandas>=1.4.2',
'psutil>=5.9.0',
'pypolyclip>=1.0.0',
'pysiaf>=0.16.4',
'scikit-image>=0.19.2',
'scipy>=1.8.0',
'shapely>=1.8.2',
'tqdm>=4.64.0'
]
[project.urls]
Homepage = 'https://github.com/spacetelescope/slitlessutils'
Documentation = 'https://slitlessutils.readthedocs.io/en/stable/'
[project.optional-dependencies]
test = [
'pytest-astropy>=0.10'
]
docs = [
'sphinx-astropy>=1.6',
'sphinx-rtd-theme',
'tomli; python_version < "3.11"',
]
[build-system]
requires = [
'setuptools>=61.2',
'setuptools-scm>=6.2',
'numpy>=2.0.0',
]
build-backend = 'setuptools.build_meta'
[tool.setuptools_scm]
write_to = 'slitlessutils/version.py'
[tool.setuptools]
zip-safe = false
include-package-data = false
[tool.setuptools.packages.find]
namespaces = false
[tool.pytest.ini_options]
minversion = 7.0
testpaths = [
'slitlessutils',
'docs',
]
norecursedirs = [
'docs/_build',
'extern',
]
astropy_header = true
doctest_plus = 'enabled'
text_file_format = 'rst'
addopts = '--color=yes --doctest-rst'
xfail_strict = true
remote_data_strict = false
filterwarnings = [
'error', # turn warnings into exceptions
'ignore:numpy.ufunc size changed:RuntimeWarning',
'ignore:numpy.ndarray size changed:RuntimeWarning',
# drizzlepac warnings
"ignore: .*pkg_resources.*:DeprecationWarning",
'ignore:unclosed file:ResourceWarning',
'ignore: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.:UserWarning',
# Ignore warning from astropy.io
'ignore: Card is too long, comment will be truncated.',
# Ignore cast warning in drizzle
'ignore: invalid value encountered in cast:RuntimeWarning'
]
[tool.coverage.run]
omit = [
'slitlessutils/conftest.py',
'slitlessutils/tests/*',
'slitlessutils/*/tests/*',
'slitlessutils/version*',
'*/slitlessutils/tests/*',
'*/slitlessutils/*/tests/*',
'*/slitlessutils/version*',
]
[tool.coverage.report]
exclude_lines = [
'pragma: no cover',
'except ImportError',
'raise AssertionError',
'raise NotImplementedError',
'def main\\(.*\\):',
'pragma: py{ignore_python_version}',
'def _ipython_key_completions_',
]
[tool.bandit.assert_used]
skips = ['*_test.py', '*/test_*.py']