11[build-system ]
2- requires = [" setuptools >=61 " ]
3- build-backend = " setuptools.build_meta "
2+ requires = [" hatchling " ]
3+ build-backend = " hatchling.build "
44
55[project ]
66name = " rasterstats"
@@ -19,15 +19,14 @@ classifiers = [
1919 " License :: OSI Approved :: BSD License" ,
2020 " Operating System :: OS Independent" ,
2121 " Programming Language :: Python :: 3" ,
22- " Programming Language :: Python :: 3.8" ,
2322 " Programming Language :: Python :: 3.9" ,
2423 " Programming Language :: Python :: 3.10" ,
2524 " Programming Language :: Python :: 3.11" ,
2625 " Programming Language :: Python :: 3.12" ,
2726 " Topic :: Utilities" ,
2827 " Topic :: Scientific/Engineering :: GIS" ,
2928]
30- requires-python = " >=3.7 "
29+ requires-python = " >=3.9 "
3130dependencies = [
3231 " affine" ,
3332 " click >7.1, !=8.2.1" ,
@@ -39,7 +38,6 @@ dependencies = [
3938 " shapely" ,
4039]
4140
42-
4341[project .optional-dependencies ]
4442progress = [
4543 " tqdm"
@@ -66,6 +64,9 @@ pointquery = "rasterstats.cli:pointquery"
6664Documentation = " https://pythonhosted.org/rasterstats/"
6765"Source Code" = " https://github.com/perrygeo/python-rasterstats"
6866
67+ [tool .hatch .build .targets .sdist ]
68+ only-include = [" src" , " tests" ]
69+
6970[tool .pytest .ini_options ]
7071filterwarnings = [
7172 " error" ,
@@ -77,8 +78,8 @@ testpaths = ["tests"]
7778[tool .setuptools .dynamic ]
7879version = {attr = " rasterstats._version.__version__" }
7980
80- [tool .setuptools . packages . find ]
81- where = [ " src" ]
81+ [tool .hatch . version ]
82+ path = " src/rasterstats/_version.py "
8283
8384[tool .isort ]
8485profile = " black"
0 commit comments