-
Notifications
You must be signed in to change notification settings - Fork 115
Expand file tree
/
Copy pathpyproject.toml
More file actions
103 lines (93 loc) · 2.4 KB
/
pyproject.toml
File metadata and controls
103 lines (93 loc) · 2.4 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "rasterstats"
description = "Summarize geospatial raster datasets based on vector geometries"
authors = [
{name = "Matthew Perry", email = "perrygeo@gmail.com"},
]
readme = "README.rst"
keywords = ["gis", "geospatial", "geographic", "raster", "vector", "zonal statistics"]
dynamic = ["version"]
license = {text = "BSD-3-Clause"}
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Utilities",
"Topic :: Scientific/Engineering :: GIS",
]
requires-python = ">=3.9"
dependencies = [
"affine",
"click >7.1, !=8.2.1",
"cligj >=0.4",
"fiona",
"numpy >=1.9",
"rasterio >=1.0",
"simplejson",
"shapely",
]
[project.optional-dependencies]
progress = [
"tqdm"
]
docs = [
"numpydoc",
"sphinx",
"sphinx-rtd-theme",
]
test = [
"coverage",
"geopandas",
"pyshp >=1.1.4",
"pytest >=4.6",
"pytest-cov >=2.2.0",
"simplejson",
]
dev = [
"rasterstats[test]",
"ruff",
"twine",
]
[project.entry-points."rasterio.rio_plugins"]
zonalstats = "rasterstats.cli:zonalstats"
pointquery = "rasterstats.cli:pointquery"
[project.urls]
Documentation = "https://pythonhosted.org/rasterstats/"
"Source Code" = "https://github.com/perrygeo/python-rasterstats"
[tool.hatch.build.targets.sdist]
only-include = ["src", "tests"]
[tool.pytest.ini_options]
filterwarnings = [
"error",
"ignore::UserWarning",
]
testpaths = ["tests"]
# addopts = "--verbose -rf --ipdb --maxfail=1"
[tool.setuptools.dynamic]
version = {attr = "rasterstats._version.__version__"}
[tool.hatch.version]
path = "src/rasterstats/_version.py"
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # Pyflakes
"I", # isort
"RUF", # Ruff-specific rules
"UP", # pyupgrade
]
ignore = [
"RUF005", # Consider iterable unpacking instead of concatenation
]
[tool.ruff]
# TODO: files in docs/notebooks/ use old versions and are incompatible with modern tools
extend-exclude = ["*.ipynb"]