Skip to content

Commit 60906f1

Browse files
committed
build(pyproject): declare requires-python via PEP 621 [project] metadata
Add a minimal `[project]` table to `pyproject.toml` and set: - `requires-python = ">=3.9"` - `name = "folium"` - `dynamic = [...]` for fields still sourced from `setup.py` Why this is needed: `python_requires` in `setup.py` is not enough for tools that read interpreter constraints from `pyproject.toml` metadata. Per PEP 621, `requires-python` belongs in `[project]`, which allows `uv` to resolve/lock against the correct Python range instead of defaulting incorrectly (see astral-sh/uv#11424).
1 parent 54f23c5 commit 60906f1

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

pyproject.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@
22
requires = ["setuptools>=41.2", "setuptools_scm", "wheel"]
33
build-backend = "setuptools.build_meta"
44

5+
[project]
6+
name = "folium"
7+
dynamic = [
8+
"version",
9+
"description",
10+
"readme",
11+
"license",
12+
"authors",
13+
"keywords",
14+
"classifiers",
15+
"dependencies",
16+
"optional-dependencies",
17+
]
18+
requires-python = ">=3.9"
19+
520
[tool.interrogate]
621
ignore-init-method = true
722
ignore-init-module = false

0 commit comments

Comments
 (0)