-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathpyproject.toml
98 lines (82 loc) · 2.33 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
[build-system]
requires = ["setuptools>=74.1.0", "wheel", "cython", "numpy>=2.0.0"]
build-backend = "setuptools.build_meta"
[project]
name = "pylandstats"
version = "3.0.3"
description = "Computing landscape metrics in the Python ecosystem."
readme = "README.md"
authors = [
{name = "Martí Bosch", email = "[email protected]"}
]
license = {text = "GPL-3.0"}
classifiers = [
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Natural Language :: English",
"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"
]
requires-python = ">=3.9"
dependencies = [
"dask",
"geopandas",
"matplotlib >= 2.2",
"numpy >= 1.15",
"pandas >= 0.23",
"rasterio >= 1.0.0",
"scipy >= 1.0.0"
]
[project.optional-dependencies]
test = ["coverage[toml]", "pytest", "pytest-cov", "ruff"]
dev = ["build", "commitizen", "nox", "pre-commit", "pip", "toml", "twine"]
doc = ["m2r2", "myst-nb", "pydata-sphinx-theme", "sphinx"]
[project.urls]
Repository = "https://github.com/martibosch/pylandstats"
[tool.cibuildwheel]
build = ["cp39-*", "cp310-*", "cp311-*", "cp312-*", "cp313-*"]
skip = "*-musllinux_i686"
[tool.codespell]
ignore-words-list = "te"
skip = "CHANGELOG.md"
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "v$version"
version_provider = "pep621"
version_files = [
"pylandstats/__init__.py",
"pyproject.toml:version"
]
[tool.coverage.report]
exclude_lines = [
"if self.debug:",
"pragma: no cover",
"raise NotImplementedError",
"except ModuleNotFoundError",
"except ImportError"
]
ignore_errors = true
omit = ["tests/*", "docs/conf.py"]
[tool.coverage.run]
source = ["pylandstats"]
[tool.pytest.ini_options]
addopts = ["--import-mode=importlib"]
[tool.ruff]
line-length = 88
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
select = ["D", "E", "F", "I"]
[tool.ruff.lint.isort]
known-first-party = ["pylandstats"]
[tool.ruff.lint.per-file-ignores]
"**/__init__.py" = ["F403"]
"pylandstats/landscape.py" = ["D401"] # for metric docstrings
"tests/test_pylandstats.py" = ["D"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.setuptools.packages.find]
include = ["pylandstats", "pylandstats.*"]