-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
104 lines (90 loc) · 2.85 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
[build-system]
requires = ["setuptools>=65", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "earthkit-hydro"
requires-python = ">=3.8"
authors = [
{ name = "European Centre for Medium-Range Weather Forecasts (ECMWF)", email = "[email protected]" }
]
maintainers = [
{name = "Oisín M. Morrison", email = "[email protected]"},
{name = "Corentin Carton de Wiart", email = "[email protected]"}
]
description = "A Python library for common hydrological functions"
license = { text = "Apache License Version 2.0" }
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"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",
"Topic :: Scientific/Engineering"
]
dynamic = ["version", "readme"]
dependencies = ["numpy", "joblib"]
[project.urls]
repository = "https://github.com/ecmwf/earthkit-hydro"
documentation = "https://github.com/ecmwf/earthkit-hydro"
issues = "https://github.com/ecmwf/earthkit-hydro/issues"
[project.optional-dependencies]
readers = [
"earthkit-data[geotiff]>=0.13.0"
]
tests = [
"pytest",
]
dev = [
"pytest",
"pre-commit"
]
all = [
"earthkit-data[geotiff]>=0.13.0",
"pytest",
"pre-commit"
]
[tool.black]
line-length = 88
skip-string-normalization = false
[tool.isort]
profile = "black" # Ensures compatibility with Black's formatting.
line_length = 88 # Same as Black's line length for consistency.
# Linting settings
[tool.ruff]
line-length = 88
[tool.ruff.format]
quote-style = "double"
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"F401", # unused imports
]
"tests/*" = [
"F405", # variable may be undefined, or defined from star imports
"F403", # use of wildcard imports
]
# Testing
[tool.pytest]
addopts = "--pdbcls=IPython.terminal.debugger:Pdb"
testpaths = ["tests"]
# Packaging/setuptools options
[tool.setuptools]
include-package-data = true
[tool.setuptools.dynamic]
readme = {file = ["README.md"], content-type = "text/markdown"}
[tool.setuptools.packages.find]
include = [ "earthkit.hydro" ]
where = [ "src/" ]
[tool.setuptools_scm]
write_to = "src/earthkit/hydro/_version.py"
write_to_template = '''# Do not change! Do not track in version control!
__version__ = "{version}"
'''
parentdir_prefix_version='earthkit-hydro-' # get version from GitHub-like tarballs
fallback_version='0.1.0'