Skip to content

Commit c620d12

Browse files
authored
Merge pull request #306 from mwtoews/min-py39
Use hatchling build-backend, set minimum Python 3.9
2 parents 6c092d5 + ac8689f commit c620d12

3 files changed

Lines changed: 8 additions & 13 deletions

File tree

MANIFEST.in

Lines changed: 0 additions & 2 deletions
This file was deleted.

pyproject.toml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
2-
requires = ["setuptools >=61"]
3-
build-backend = "setuptools.build_meta"
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
44

55
[project]
66
name = "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"
3130
dependencies = [
3231
"affine",
3332
"click >7.1, !=8.2.1",
@@ -39,7 +38,6 @@ dependencies = [
3938
"shapely",
4039
]
4140

42-
4341
[project.optional-dependencies]
4442
progress = [
4543
"tqdm"
@@ -66,6 +64,9 @@ pointquery = "rasterstats.cli:pointquery"
6664
Documentation = "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]
7071
filterwarnings = [
7172
"error",
@@ -77,8 +78,8 @@ testpaths = ["tests"]
7778
[tool.setuptools.dynamic]
7879
version = {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]
8485
profile = "black"

setup.py

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)