-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
137 lines (126 loc) · 3.72 KB
/
Copy pathpyproject.toml
File metadata and controls
137 lines (126 loc) · 3.72 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "axsdb"
version = "0.2.0.dev0"
description = "An absorption database reader for the Eradiate radiative transfer model."
readme = "README.md"
license = "LGPL-3.0-or-later"
authors = [{ name = "Vincent Leroy", email = "[email protected]" }]
requires-python = ">=3.9"
keywords = [
"radiative-transfer",
"absorption",
"spectroscopy",
"atmosphere",
"eradiate",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Atmospheric Science",
"Topic :: Scientific/Engineering :: Physics",
]
dependencies = [
"attrs",
"cachetools",
"netcdf4",
"numba>=0.58",
"numpy",
"pint",
"scipy",
"typer",
"xarray>=2024.7.0",
]
[project.urls]
Homepage = "https://github.com/eradiate/axsdb"
Documentation = "https://axsdb.readthedocs.io"
Repository = "https://github.com/eradiate/axsdb"
Changelog = "https://github.com/eradiate/axsdb/blob/main/CHANGELOG.md"
[project.scripts]
axsdb = "axsdb.cli:main"
[dependency-groups]
test = [
"coverage>=7.10.0",
"pytest",
"pytest-cov",
"pytest-datadir",
"pytest-doctestplus",
"rich",
]
docs = [
"autodocsumm>=0.2.14",
"myst-parser",
"shibuya",
"sphinx",
"sphinx-autobuild>=2021",
"sphinx-copybutton>=0.5.2",
"sphinx-design",
"sphinx-iconify",
]
benchmark = ["pytest-benchmark", "pyinstrument"]
dev = [
"taskipy",
"ruff",
{ include-group = "test" },
{ include-group = "docs" },
{ include-group = "benchmark" },
]
pycharm = ["setuptools", { include-group = "dev" }]
interactive = ["jupyterlab", "matplotlib"]
[tool.coverage.html]
directory = "./reports/coverage/html"
[tool.coverage.json]
output = "./reports/coverage/coverage.json"
[tool.coverage.paths]
# Map CI runner source paths back to the local "src/" directory so that
# "coverage combine" can merge data collected on different OSes.
source = [
"src/",
"/home/runner/work/axsdb/axsdb/src/",
"/Users/runner/work/axsdb/axsdb/src/",
"D:\\a\\axsdb\\axsdb\\src\\",
]
[tool.coverage.report]
# Skip missing source files (e.g. third-party Cython .pyx) when combining
# coverage data from multiple OSes.
ignore_errors = true
omit = [
"src/*/__init__.py",
"src/*/cli.py",
"src/*/_version.py",
"src/*/testing/fixtures.py",
]
precision = 2
show_missing = true
skip_covered = true
[tool.coverage.run]
branch = true
parallel = true
source = ["src/"]
[tool.pytest.ini_options]
testpaths = ["tests", "src", "docs"]
norecursedirs = [".git", ".env", "dist", "__pypackages__"]
python_files = ["test_*.py", "*_test.py", "tests.py"]
addopts = "-ra -vv --doctest-plus --doctest-glob='*.rst'"
doctest_plus = "enabled"
doctest_optionflags = "NORMALIZE_WHITESPACE ELLIPSIS"
[tool.taskipy.tasks]
docs = { cmd = "sphinx-build -b html docs docs/_build/html", cwd = "." }
docs-clean = { cmd = "rm -rf docs/_build/", cwd = "." }
docs-serve = { cmd = "sphinx-autobuild docs docs/_build/html", cwd = "." }
docs-lock = { cmd = "uv export --frozen --no-hashes --output-file=docs/requirements.txt", cwd = "." }
test = { cmd = "pytest", cwd = "." }
test-cov = { cmd = "pytest --cov=src", cwd = "." }
test-cov-report = { cmd = "pytest --cov=src --cov-report=html", cwd = "." }
benchmark = { cmd = "pytest benchmarks", cwd = "." }
profile = { cmd = "pyinstrument -r html -o reports/profile.html", cwd = "." }