-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
100 lines (93 loc) · 2.3 KB
/
pyproject.toml
File metadata and controls
100 lines (93 loc) · 2.3 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
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools>=65", "setuptools-scm>=8", "wheel"]
[project]
authors = [
{name = "European Centre for Medium-Range Weather Forecasts (ECMWF)", email = "software.support@ecmwf.int"}
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"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"
]
dependencies = [
"earthkit-data>=0.17,<1",
"numpy>=1.22",
"xarray>=2023.1",
"xclim>=0.59.1",
"xsdba>=0.5,<0.6"
]
description = "Tools for calculating climate indicies, climate change analysis and attribution."
dynamic = ["readme", "version"]
license = {file = "LICENSE"}
name = "earthkit-climate"
requires-python = ">=3.10"
optional-dependencies.dev = [
"ipykernel",
"ipython",
"mypy",
"pre-commit",
"pytest",
"pytest-cov",
"pytest-mock",
"ruff"
]
optional-dependencies.docs = [
"furo",
"nbsphinx",
"roman-numerals-py>=3.1,<4",
"sphinx",
"sphinx-autoapi"
]
[tool.coverage.run]
branch = true
[tool.pytest.ini_options]
addopts = "-vv --cov=. --cov-report=html --doctest-glob='*.md' --doctest-glob='*.rst'"
[tool.ruff]
line-length = 120
preview = true
lint.ignore = [
"D1", # pydocstyle: Missing Docstrings
"D107", # pydocstyle: numpy convention
"D203",
"D205",
"D212",
"D213",
"D401",
"D402",
"D413",
"D415",
"D416",
"D417"
]
lint.select = [
"D", # pydocstyle
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"W" # pycodestyle warnings
]
lint.per-file-ignores."docs/conf.py" = [
"E501" # line too long
]
[tool.setuptools.dynamic]
readme = {file = ["README.md"], content-type = "text/markdown"}
# ---- Namespace package configuration ----
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools_scm]
local_scheme = "no-local-version"
write_to = "src/earthkit/climate/version.py"
write_to_template = '''
# Do not change! Do not track in version control!
__version__ = "{version}"
'''