-
Notifications
You must be signed in to change notification settings - Fork 25
/
pyproject.toml
180 lines (159 loc) · 3.64 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
[project]
name = "stdatamodels"
description = "Core support for DataModel classes used in calibration pipelines"
requires-python = ">=3.10"
authors = [
{ name = "STScI" },
]
classifiers = [
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Astronomy",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3",
]
dependencies = [
"asdf>=3.1.0",
"asdf-transform-schemas>=0.5.0",
"asdf-astropy>=0.3.0",
"numpy>=1.18",
"astropy>=5.0.4",
]
dynamic = [
"version",
]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.license]
file = "LICENSE"
content-type = "text/plain"
[project.urls]
Homepage = "https://github.com/spacetelescope/stdatamodels"
"Bug Tracker" = "https://github.com/spacetelescope/stdatamodels/issues"
"Source Code" = "https://github.com/spacetelescope/stdatamodels"
[project.entry-points."asdf.extensions"]
jwst_pipeline = "stdatamodels.jwst.transforms.integration:get_extensions"
[project.entry-points."asdf.resource_mappings"]
jwst_datamodel = "stdatamodels.jwst.datamodels.integration:get_resource_mappings"
jwst_pipeline = "stdatamodels.jwst.transforms.integration:get_resource_mappings"
[project.optional-dependencies]
test = [
"psutil",
"pyyaml",
"pytest>=4.6.0",
"pytest-doctestplus",
"crds>=11.17.1",
"requests",
]
docs = [
"sphinx",
"sphinx-automodapi",
"numpydoc",
"sphinx-rtd-theme",
"sphinx-asdf>=0.1.1",
'tomli; python_version <"3.11"',
]
[build-system]
requires = [
"setuptools>=61.2",
"setuptools_scm[toml]>=3.4",
"wheel",
]
build-backend = "setuptools.build_meta"
[tool.setuptools]
zip-safe = true
include-package-data = false
[tool.setuptools.packages.find]
where = [
"src",
]
namespaces = false
[tool.setuptools.package-dir]
"" = "src"
[tool.setuptools.package-data]
"*" = [
"*.yaml",
]
"stdatamodels.jwst.transforms" = [
"resources/schemas/stsci.edu/jwst_pipeline/*.yaml",
]
[tool.flake8]
exclude = [
".git",
"__pycache__",
"docs",
"build",
"dist",
".tox",
".eggs",
]
ignore = [
"E203",
"W503",
"W504",
"W605",
]
max-line-length = 130
select = [
"F",
"W",
"E101",
"E111",
"E112",
"E113",
"E401",
"E402",
"E501",
"E711",
"E722",
]
[tool.pytest.ini_options]
minversion = "4.6"
doctest_plus = true
doctest_rst = true
text_file_format = "rst"
addopts = "--color=yes"
testpaths = [
"docs",
"tests",
"src/stdatamodels/jwst",
]
filterwarnings = [
# turn all warnings into errors, this includes ResourceWarning which
# allows catching files left open by tests
"error",
# astropy table issues this warning on import so we ignore it here
"ignore:numpy.ndarray size changed:RuntimeWarning",
]
asdf_schema_tests_enabled = true
asdf_schema_validate_default = false
asdf_schema_root = "src/stdatamodels/jwst/datamodels/schemas\nsrc/stdatamodels/jwst/transforms/resources/schemas"
norecursedirs = [
"build",
".tox",
".eggs",
"venv",
]
[tool.setuptools_scm]
write_to = "src/stdatamodels/_version.py"
[tool.coverage.run]
omit = [
'*/tests/*',
]
[tool.towncrier]
filename = "CHANGES.rst"
directory = "changes"
package = "stdatamodels"
title_format = "{version} ({project_date})"
ignore = [".gitkeep"]
wrap = true
issue_format = "`#{issue} <https://github.com/spacetelescope/stdatamodels/issues/{issue}>`_"
[tool.towncrier.fragment.feature]
name = "New Features"
[tool.towncrier.fragment.bugfix]
name = "Bug Fixes"
[tool.towncrier.fragment.doc]
name = "Documentation"
[tool.towncrier.fragment.removal]
name = "Deprecations and Removals"
[tool.towncrier.fragment.misc]