forked from spacetelescope/roman_photoz
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
154 lines (134 loc) · 3.62 KB
/
pyproject.toml
File metadata and controls
154 lines (134 loc) · 3.62 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
[project]
name = "roman_photoz"
description = "Library for photometric redshift determination using data from the Nancy Grace Roman Space Telescope"
readme = "README.md"
requires-python = ">=3.10"
authors = [
{ name = "Roman calibration pipeline developers", email = "help@stsci.edu" },
]
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",
"astropy >=5.3.0",
"crds >=11.16.16",
"gwcs >=0.21.0",
"jsonschema >=4.8",
"numpy >=1.23",
"photutils >=1.13.0",
"pyparsing >=2.4.7",
"requests >=2.26",
"roman_datamodels>=0.22.0",
# "roman_datamodels @ git+https://github.com/spacetelescope/roman_datamodels.git",
"scipy>=1.7.0",
"stcal>=1.10.0",
# "stcal @ git+https://github.com/spacetelescope/stcal.git@main",
"stpipe >=0.7.0",
# "stpipe @ git+https://github.com/spacetelescope/stpipe.git@main",
"tweakwcs >=0.8.8",
"spherical-geometry >= 1.2.22",
"stsci.imagestats >= 1.6.3",
"drizzle >= 1.15.0",
"webbpsf >= 1.2.1",
# "pz-rail-lephare",
"pz-rail-lephare @ git+https://git@github.com/mairanteodoro/rail_lephare.git",
"lephare == 0.1.13",
]
dynamic = ["version"]
[project.license]
file = "LICENSE"
[project.optional-dependencies]
docs = [
"matplotlib",
"sphinx",
"sphinx-astropy",
"sphinx-automodapi",
"sphinx-rtd-theme",
"stsci-rtd-theme",
"sphinx-autobuild",
"tomli; python_version <=\"3.11\"",
]
test = [
"ci-watson >=0.5.0",
"pytest >8.0.0",
"pytest-astropy >= 0.11.0",
"deepdiff",
"stpreview>=0.5.1",
"pytest-cov",
]
dev = ["roman_photoz[docs,test]", "tox > 4", "pre-commit > 3"]
sdp = ["stpreview>=0.5.1"]
[project.urls]
tracker = "https://github.com/spacetelescope/roman_photoz/issues"
# documentation = "https://roman-pipeline.readthedocs.io/en/stable/"
repository = "https://github.com/spacetelescope/roman_photoz"
[build-system]
requires = ["setuptools >=60", "setuptools_scm[toml] >=3.4", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
[tool.setuptools]
zip-safe = false
[tool.setuptools.packages.find]
[tool.setuptools.package-data]
# package_data values are glob patterns relative to each specific subpackage.
"*" = [
"**/*.fits",
"**/*.txt",
"**/*.inc",
"**/*.cfg",
"**/*.csv",
"**/*.yaml",
"**/*.json",
"**/*.asdf",
]
[tool.pytest.ini_options]
minversion = 4.6
filterwarnings = ["error::ResourceWarning"]
junit_family = "xunit2"
log_cli_level = "info"
addopts = ["--doctest-ignore-import-errors", "--color=yes"]
markers = ["soctests: run only the SOC tests in the suite."]
[tool.bandit]
skips = ["B101", "B307", "B404", "B603"]
exclude_dirs = ["examples"]
[tool.isort]
profile = "black"
filter_files = true
line_length = 88
[tool.black]
line-length = 88
force-exclude = "^/(\n (\n \\.eggs\n | \\.git\n | \\.pytest_cache\n | \\.tox\n )/\n)\n"
[tool.ruff]
line-length = 88
[tool.ruff.lint]
exclude = ["jdocs", ".tox", ".eggs", "build"]
ignore = [
"E741", # ambiguous variable name
]
extend-select = ["NPY"]
[tool.cibuildwheel.macos]
archs = ["x86_64", "arm64"]
[tool.cibuildwheel.linux]
archs = ["auto", "aarch64"]
[tool.coverage.run]
omit = [
"*/tests/*",
"*/docs/*",
"*/__pycache__/*",
"*/roman_photoz.egg-info/*",
"*/scripts/*",
]
[tool.coverage.report]
show_missing = true
skip_covered = true
precision = 2
fail_under = 70
[tool.coverage.html]
directory = "htmlcov"
[tool.coverage.xml]
output = "coverage.xml"