]> git.openstreetmap.org Git - nominatim.git/blobdiff - packaging/nominatim-core/pyproject.toml
make use of nominatim-api in db package optional
[nominatim.git] / packaging / nominatim-core / pyproject.toml
index 931c857b2498128eb51bbebe5607036512794ec9..19e86cdeb7fb978354f5887674ab7c528a290ee2 100644 (file)
@@ -30,9 +30,8 @@ requires = ["hatchling"]
 build-backend = "hatchling.build"
 
 [tool.hatch.version]
-source = "code"
 path = "../../src/nominatim_core/version.py"
-expression = "NOMINATIM_CORE_VERSION"
+pattern = "NOMINATIM_CORE_VERSION = '(?P<version>[^']+)'"
 
 [tool.hatch.build.targets.sdist.force-include]
 "../../src/nominatim_core" = "nominatim_core"