X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/a93ec099321284739953c8c494cf12584e1250e3..1e88321371a3bca3c4fdda7a9ff4c54f72a951c5:/packaging/nominatim-core/pyproject.toml diff --git a/packaging/nominatim-core/pyproject.toml b/packaging/nominatim-core/pyproject.toml index 19e86cde..9c7af651 100644 --- a/packaging/nominatim-core/pyproject.toml +++ b/packaging/nominatim-core/pyproject.toml @@ -30,19 +30,31 @@ requires = ["hatchling"] build-backend = "hatchling.build" [tool.hatch.version] -path = "../../src/nominatim_core/version.py" -pattern = "NOMINATIM_CORE_VERSION = '(?P[^']+)'" +source = "code" +path = "src/nominatim_core/version.py" +expression = "NOMINATIM_CORE_VERSION" -[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" +] [tool.hatch.build.targets.wheel] -packages = ["nominatim_core"] +packages = ["src/nominatim_core"] + +[tool.hatch.build.targets.wheel.force-include] +"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" +"extra_src/nominatim_core/paths.py" = "nominatim_core/paths.py"