1+ # Note: code auto-formatted with `taplo fmt`
12[build-system ]
23requires = [" hatchling" ]
34build-backend = " hatchling.build"
45
56[project ]
67name = " rasterstats"
78description = " Summarize geospatial raster datasets based on vector geometries"
8- authors = [
9- {name = " Matthew Perry" , email = " perrygeo@gmail.com" },
10- ]
9+ authors = [{ name = " Matthew Perry" , email = " perrygeo@gmail.com" }]
1110readme = " README.rst"
12- keywords = [" gis" , " geospatial" , " geographic" , " raster" , " vector" , " zonal statistics" ]
11+ keywords = [
12+ " gis" ,
13+ " geospatial" ,
14+ " geographic" ,
15+ " raster" ,
16+ " vector" ,
17+ " zonal statistics" ,
18+ ]
1319dynamic = [" version" ]
14- license = {text = " BSD-3-Clause" }
20+ license = { text = " BSD-3-Clause" }
1521classifiers = [
16- " Development Status :: 4 - Beta" ,
17- " Intended Audience :: Developers" ,
18- " Intended Audience :: Science/Research" ,
19- " License :: OSI Approved :: BSD License" ,
20- " Operating System :: OS Independent" ,
21- " Programming Language :: Python :: 3" ,
22- " Programming Language :: Python :: 3.9" ,
23- " Programming Language :: Python :: 3.10" ,
24- " Programming Language :: Python :: 3.11" ,
25- " Programming Language :: Python :: 3.12" ,
26- " Topic :: Utilities" ,
27- " Topic :: Scientific/Engineering :: GIS" ,
22+ " Development Status :: 4 - Beta" ,
23+ " Intended Audience :: Developers" ,
24+ " Intended Audience :: Science/Research" ,
25+ " License :: OSI Approved :: BSD License" ,
26+ " Operating System :: OS Independent" ,
27+ " Programming Language :: Python :: 3" ,
28+ " Programming Language :: Python :: 3.9" ,
29+ " Programming Language :: Python :: 3.10" ,
30+ " Programming Language :: Python :: 3.11" ,
31+ " Programming Language :: Python :: 3.12" ,
32+ " Programming Language :: Python :: 3.13" ,
33+ " Programming Language :: Python :: 3.14" ,
34+ " Topic :: Utilities" ,
35+ " Topic :: Scientific/Engineering :: GIS" ,
2836]
2937requires-python = " >=3.9"
3038dependencies = [
31- " affine" ,
32- " click >7.1, !=8.2.1" ,
33- " cligj >=0.4" ,
34- " fiona " ,
35- " numpy >=1.9 " ,
36- " rasterio >=1.0" ,
37- " simplejson" ,
38- " shapely" ,
39+ " affine" ,
40+ " click >7.1, !=8.2.1" ,
41+ " cligj >=0.4" ,
42+ " numpy >=1.9 " ,
43+ " pyogrio " ,
44+ " rasterio >=1.0" ,
45+ " simplejson" ,
46+ " shapely" ,
3947]
4048
4149[project .optional-dependencies ]
42- progress = [
43- " tqdm"
44- ]
45- docs = [
46- " numpydoc" ,
47- " sphinx" ,
48- " sphinx-rtd-theme" ,
49- ]
50+ progress = [" tqdm" ]
51+ fiona = [" fiona" ]
52+ docs = [" numpydoc" , " sphinx" , " sphinx-rtd-theme" ]
5053test = [
51- " coverage" ,
52- " geopandas" ,
53- " pyshp >=1.1.4" ,
54- " pytest >=4.6" ,
55- " pytest-cov >=2.2.0" ,
56- " simplejson" ,
57- ]
58- dev = [
59- " rasterstats[test]" ,
60- " ruff" ,
61- " twine" ,
54+ " coverage" ,
55+ " geopandas" ,
56+ " pyshp >=1.1.4" ,
57+ " pytest >=4.6" ,
58+ " pytest-cov >=2.2.0" ,
59+ " simplejson" ,
6260]
61+ dev = [" rasterstats[test,fiona]" , " ruff" , " twine" ]
6362
6463[project .entry-points ."rasterio .rio_plugins" ]
6564zonalstats = " rasterstats.cli:zonalstats"
@@ -73,31 +72,28 @@ Documentation = "https://pythonhosted.org/rasterstats/"
7372only-include = [" src" , " tests" ]
7473
7574[tool .pytest .ini_options ]
76- filterwarnings = [
77- " error" ,
78- " ignore::UserWarning" ,
79- ]
75+ filterwarnings = [" error" , " ignore::UserWarning" ]
8076testpaths = [" tests" ]
81- # addopts = "--verbose -rf --ipdb --maxfail=1 "
77+ addopts = " --verbose -rf --cov rasterstats --cov-report html "
8278
8379[tool .setuptools .dynamic ]
84- version = {attr = " rasterstats._version.__version__" }
80+ version = { attr = " rasterstats._version.__version__" }
8581
8682[tool .hatch .version ]
8783path = " src/rasterstats/_version.py"
8884
8985[tool .ruff .lint ]
9086select = [
91- " E" , # pycodestyle
92- " F" , # Pyflakes
93- " I" , # isort
94- " RUF" , # Ruff-specific rules
95- " UP" , # pyupgrade
87+ " E" , # pycodestyle
88+ " F" , # Pyflakes
89+ " I" , # isort
90+ " RUF" , # Ruff-specific rules
91+ " UP" , # pyupgrade
9692]
9793ignore = [
98- " RUF005" , # Consider iterable unpacking instead of concatenation
94+ " E501" , # Disable: line too long
95+ " RUF005" , # Disable: Consider iterable unpacking instead of concatenation
9996]
10097
10198[tool .ruff ]
102- # TODO: files in docs/notebooks/ use old versions and are incompatible with modern tools
10399extend-exclude = [" *.ipynb" ]
0 commit comments