-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpyproject.toml
70 lines (61 loc) · 1.63 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
[project]
name = "esmgrids"
description = "Python representation of Earth System Model grids."
keywords = ["earth system modelling", "grids"]
authors = [
{name = "Nic Hannah"},
]
readme = "README.md"
license = { text = "Apache-2.0" }
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Topic :: Utilities",
]
dynamic = ["version"]
# The dependencies here are also used by the conda build and so must follow
# conda package match specifications, see here:
# https://docs.conda.io/projects/conda-build/en/stable/resources/package-spec.html#package-match-specifications
dependencies = [
"numpy<2",
"netcdf4",
"shapely",
"pyproj"
]
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools >= 61.0.0",
"setuptools_scm[toml]",
]
[tool.setuptools]
packages = ["esmgrids"]
[tool.setuptools_scm]
write_to = "esmgrids/_version.py"
[project.optional-dependencies]
devel = [
"flake8",
"black",
"pre-commit"
]
test = [
"pytest",
"pytest-cov",
"sh",
"xarray",
"ocean_model_grid_generator@git+https://github.com/nikizadehgfdl/ocean_model_grid_generator@790069b31f9791864ccd514a2b8f53f385a0452e"
]
[project.scripts]
cice_from_mom = "esmgrids.cli:cice_from_mom"
[tool.pytest.ini_options]
addopts = ["--cov=esmgrids", "--cov-report=term", "--cov-report=xml"]
testpaths = ["test"]
markers = ["broken"]
[tool.coverage.run]
omit = ["esmgrids/__init__.py", "esmgrids/_version.py"]
[tool.black]
line-length = 120
[tool.flake8]
max-line-length = 120