-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
122 lines (113 loc) · 2.15 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 = "yet_another_wizz"
dynamic = ["version"]
authors = [
{name = "Jan Luca van den Busch", email = "[email protected]"},
]
description = "Implementation of the Schmidt et al. (2013) clustering redshift method."
readme = "README.rst"
license = {text = "GPL-3.0-or-later"}
classifiers = [
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Astronomy",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)"
]
requires-python = ">=3.10"
dependencies = [
"astropy",
"deprecated",
"h5py",
"numpy",
"pyarrow",
"pyyaml",
"requests",
"scipy",
"StrEnum", # enum.StrEnum python 3.11+ only
"treecorr>=4.3",
"typing-extensions", # typing.Self python 3.11+ only
]
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "src/yaw/_version.py"
[project.optional-dependencies]
plot = [
"matplotlib",
]
mpi = [
"mpi4py",
]
healpix = [
"healpy",
]
docs = [
"sphinx",
"sphinx-design",
"sphinx-copybutton",
"pydata-sphinx-theme",
]
style = [
"black",
"isort",
"flake8",
"pre-commit",
]
test = [
"yet_another_wizz[plot]",
"yet_another_wizz[healpix]",
"coverage",
"pytest",
"pytest-cov",
"pytest-skip-slow",
"pandas",
]
dev = [
"yet_another_wizz[docs]",
"yet_another_wizz[test]",
"yet_another_wizz[style]",
"ipykernel",
]
[project.scripts]
yaw_cli = "yaw.cli:main"
[tool.setuptools.packages.find]
where = [
"src",
]
[tool.setuptools.package-data]
yaw = [
"examples/*.pqt",
"examples/*.hdf",
"examples/*.dat",
"examples/*.cov",
"examples/*.smp",
]
[tool.pytest.ini_options]
testpaths = [
"tests",
]
addopts = [
"--cov=yaw",
"--cov-report=xml",
"--cov-report=term",
]
[tool.isort]
profile = "black"
skip_glob = ["*_version.py"]
[tool.black]
include = ".pyi?$"
exclude = """
/(
.git
| .hg
| .mypy_cache
| .tox
| .venv
| _build
| buck-out
| build
| dist
)/
"""
extend-exclude = "_version.py$"