forked from spacetelescope/roman_datamodels
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
122 lines (103 loc) · 3.03 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
[project]
name = "roman_datamodels"
description = "data models supporting calibration of the Nancy Grace Roman Space Telescope"
readme = "README.md"
requires-python = ">=3.10"
authors = [{ name = "STScI", email = "[email protected]" }]
classifiers = [
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Astronomy",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3",
]
dependencies = [
"asdf >=3.3.0",
"asdf-astropy >=0.5.0",
"gwcs >=0.19.0",
"numpy >=1.22",
"astropy >=5.3.0",
# "rad >= 0.21.0",
"rad @ git+https://github.com/spacetelescope/rad.git",
"asdf-standard >=1.1.0",
]
dynamic = ["version"]
[project.license]
file = "LICENSE"
[project.optional-dependencies]
test = [
"pytest >=6.0.0",
"pytest-doctestplus",
"pytest-doctestplus >=0.10.0",
"pytest-env >= 0.8",
]
aws = ["stsci-aws-utils >= 0.1.2"]
docs = [
"sphinx",
"sphinx-automodapi",
"sphinx-rtd-theme",
"sphinx-astropy",
"tomli; python_version <\"3.11\"",
]
[project.urls]
issues = "https://github.com/spacetelescope/roman_datamodels/issues"
repository = "https://github.com/spacetelescope/roman_datamodels"
[project.entry-points."asdf.extensions"]
roman_datamodels = "roman_datamodels.stnode._integration:get_extensions"
[build-system]
requires = ["setuptools >=61", "setuptools_scm[toml] >=3.4", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "src/roman_datamodels/_version.py"
[tool.setuptools.packages.find]
where = ["src"]
[tool.pytest.ini_options]
minversion = 4.6
doctest_plus = true
doctest_rst = true
text_file_format = "rst"
addopts = "--color=yes --doctest-rst"
testpaths = ["tests"]
filterwarnings = [
"error",
"ignore:numpy.ndarray size changed:RuntimeWarning",
"ignore:The `hash` argument is deprecated in favor of `unsafe_hash` and will be removed in or after August 2025:DeprecationWarning",
]
env = ["ROMAN_VALIDATE=true", "ROMAN_STRICT_VALIDATION=true"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"except ImportError",
"raise AssertionError",
"raise NotImplementedError",
"def main\\(.*\\):",
"if __name__ == \\(.*\\):",
"pass\\n",
]
[tool.isort]
profile = "black"
filter_files = true
line_length = 130
[tool.black]
line-length = 130
force-exclude = "^/(\n (\n \\.eggs\n | \\.git\n | \\.pytest_cache\n | \\.tox\n )/\n)\n"
[tool.ruff]
line-length = 130
[tool.codespell]
skip = "*.pdf,*.fits,*.asdf,.tox,build,./tags,.git,docs/_build"
[tool.towncrier]
filename = "CHANGES.rst"
directory = "changes"
package = "roman_datamodels"
title_format = "{version} ({project_date})"
ignore = [".gitkeep"]
wrap = true
issue_format = "`#{issue} <https://github.com/spacetelescope/roman_datamodels/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]