diff -Naur entrypoints-0.4.orig/pyproject.toml entrypoints-0.4/pyproject.toml
--- entrypoints-0.4.orig/pyproject.toml	2026-06-14 16:57:17.583676010 +0200
+++ entrypoints-0.4/pyproject.toml	2026-06-14 16:58:08.421471122 +0200
@@ -1,18 +1,20 @@
 [build-system]
-requires = ["flit_core  >=2,<4"]
+requires = ["flit_core >=3.2,<5"]
 build-backend = "flit_core.buildapi"
 
-[tool.flit.metadata]
-module = "entrypoints"
-author = "Thomas Kluyver"
-author-email = "thomas@kluyver.me.uk"
-home-page = "https://github.com/takluyver/entrypoints"
-description-file = "README.rst"
+[project]
+name = "entrypoints"
+authors = [
+    {name = "Thomas Kluyver", email = "thomas@kluyver.me.uk"},
+]
+readme = "README.rst"
 classifiers = [
     "License :: OSI Approved :: MIT License",
-    "Programming Language :: Python :: 3"
+    "Programming Language :: Python :: 3",
 ]
 requires-python = ">=3.6"
+dynamic = ["version", "description"]
 
-[tool.flit.metadata.urls]
+[project.urls]
+Homepage = "https://github.com/takluyver/entrypoints"
 Documentation = "https://entrypoints.readthedocs.io/en/latest/"
