/
pyproject.toml
184 lines (169 loc) · 3.89 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
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
[project]
name = 'photutils'
description = 'An Astropy package for source detection and photometry'
readme = 'README.rst'
license = {file = 'LICENSE.rst'}
authors = [
{name = 'Photutils Developers', email = 'photutils.team@gmail.com'},
]
keywords = [
'astronomy',
'astrophysics',
'photometry',
'aperture',
'psf',
'source detection',
'background',
'segmentation',
'centroids',
'isophote',
'morphology',
'radial profiles',
]
classifiers = [
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Cython',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Astronomy',
]
dynamic = ['version']
requires-python = '>=3.10'
dependencies = [
'numpy>=1.23',
'astropy>=5.1',
]
[project.urls]
Homepage = 'https://github.com/astropy/photutils'
Documentation = 'https://photutils.readthedocs.io/en/stable/'
[project.optional-dependencies]
all = [
'scipy>=1.8',
'matplotlib>=3.5',
'scikit-image>=0.20',
'scikit-learn>=1.1',
'gwcs>=0.18',
'bottleneck',
'tqdm',
'rasterio',
'shapely',
]
test = [
'pytest-astropy>=0.11',
]
docs = [
'photutils[all]',
'sphinx',
'sphinx-astropy>=1.9',
'tomli; python_version < "3.11"',
]
[build-system]
requires = [
'setuptools>=61.2',
'setuptools_scm>=6.2',
'cython>=3.0.0,<3.1.0',
'numpy>=2.0.0rc1',
'extension-helpers==1.*',
]
build-backend = 'setuptools.build_meta'
[tool.extension-helpers]
use_extension_helpers = true
[tool.setuptools_scm]
write_to = 'photutils/version.py'
[tool.setuptools]
zip-safe = false
include-package-data = false
[tool.setuptools.packages.find]
namespaces = false
[tool.setuptools.package-data]
'photutils' = [
'CITATION.rst',
]
'photutils.datasets' = [
'data/*',
]
'photutils.detection.tests' = [
'data/*',
]
'photutils.isophote.tests' = [
'data/*',
]
'photutils.psf.tests' = [
'data/*',
]
[tool.pytest.ini_options]
minversion = 7.0
testpaths = [
'photutils',
'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 = true
filterwarnings = [
'error', # turn warnings into exceptions
'ignore:numpy.ufunc size changed:RuntimeWarning',
'ignore:numpy.ndarray size changed:RuntimeWarning',
# numpy 1.24 deprecation from skimage (can remove for skimage >= 0.20)
'ignore:`np.bool8` is a deprecated alias for `np.bool_`:DeprecationWarning',
# python 3.12 deprecation in matplotlib 3.9dev
'ignore:datetime.datetime.utcfromtimestamp\(\) is deprecated:DeprecationWarning',
# NumPy 2.0dev deprecations
"ignore:.*numpy\\.core.*:DeprecationWarning",
]
[tool.coverage.run]
omit = [
'photutils/_astropy_init*',
'photutils/conftest.py',
'photutils/*setup_package*',
'photutils/tests/*',
'photutils/*/tests/*',
'photutils/extern/*',
'photutils/version*',
'*/photutils/_astropy_init*',
'*/photutils/conftest.py',
'*/photutils/*setup_package*',
'*/photutils/tests/*',
'*/photutils/*/tests/*',
'*/photutils/extern/*',
'*/photutils/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.build-sphinx]
github_project = 'astropy/photutils'
[tool.isort]
skip_glob = [
'photutils/*__init__.py*',
]
known_first_party = [
'photutils',
'extension_helpers',
]
use_parentheses = true
[tool.black]
force-exclude = """
(
.*
)
"""
[tool.bandit.assert_used]
skips = ['*_test.py', '*/test_*.py']