Switch build backend to Hatchling
MODIFY
pyproject.toml
pyproject.toml
# This file is protected via CODEOWNERS
[build-system]
-requires = ["flit_core >=3.2,<4"]
-build-backend = "flit_core.buildapi"
+requires = ["hatchling>=1.6.0,<2"]
+build-backend = "hatchling.build"
[project]
name = "urllib3"
@@ -34,7 +34,7 @@ classifiers = [
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries",
]
-requires-python = ">=3.7, <4"
+requires-python = ">=3.7"
dynamic = ["version"]
[project.optional-dependencies]
@@ -60,3 +60,6 @@ socks = [
"Documentation" = "https://urllib3.readthedocs.io"
"Code" = "https://github.com/urllib3/urllib3"
"Issue tracker" = "https://github.com/urllib3/urllib3/issues"
+
+[tool.hatch.version]
+path = "src/urllib3/_version.py"

Switch build backend to Hatchling