-[tool.hatch.build.targets.sdist.force-include]
-"../../src/nominatim_core" = "nominatim_core"
-"../../lib-sql" = "nominatim_core/resources/lib-sql"
-"../../settings" = "nominatim_core/resources/settings"
-"../../data/country_osm_grid.sql.gz" = "nominatim_core/resources/country_osm_grid.sql.gz"
-"../../data/words.sql" = "nominatim_core/resources/words.sql"
-"src/nominatim_core/paths.py" = "nominatim_core/paths.py"
-
-[tool.hatch.build.targets.sdist.sources]
-"src/nominatim_core" = "nominatim_core"
+[tool.hatch.build.targets.sdist]
+include = [
+ "src/nominatim_core",
+ "lib-sql/**.sql",
+ "settings",
+ "data/words.sql",
+ "extra_src/nominatim_core/paths.py"
+]
+artifacts = [
+ "data/country_osm_grid.sql.gz"
+]
+exclude = [
+ "src/nominatim_core/paths.py"
+]