X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6511821001351007df262c6732fdde51b30b2f91..1e88321371a3bca3c4fdda7a9ff4c54f72a951c5:/packaging/nominatim-db/pyproject.toml diff --git a/packaging/nominatim-db/pyproject.toml b/packaging/nominatim-db/pyproject.toml index 4cad2b8e..3e4a9a4f 100644 --- a/packaging/nominatim-db/pyproject.toml +++ b/packaging/nominatim-db/pyproject.toml @@ -30,20 +30,14 @@ requires = ["hatchling"] build-backend = "hatchling.build" [tool.hatch.version] -source = "code" -path = "../../src/nominatim_db/version.py" -expression = "NOMINATIM_VERSION.release_version()" +path = "src/nominatim_db/version.py" +pattern = "NOMINATIM_VERSION = parse_version.'(?P[^-]+)" -[tool.hatch.build.targets.sdist.force-include] -"../../src/nominatim_db" = "nominatim_db" - -[tool.hatch.build.targets.sdist.sources] -"src/nominatim_core" = "nominatim_db" -"scripts" = "scripts" +[tool.hatch.build.targets.sdist] +include = ["src/nominatim_db", "scripts"] [tool.hatch.build.targets.wheel] -packages = ["nominatim_db"] +packages = ["src/nominatim_db"] [tool.hatch.build.targets.wheel.shared-scripts] "scripts" = "/" -