]> git.openstreetmap.org Git - nominatim.git/blobdiff - packaging/nominatim-db/pyproject.toml
adapt packaging readmes
[nominatim.git] / packaging / nominatim-db / pyproject.toml
index 4cad2b8e4d2adc0c2594781e7ac93e4b9e123121..f7d0502b8028e4a01244ee6d86b21b9eefe13f2a 100644 (file)
@@ -30,9 +30,8 @@ requires = ["hatchling"]
 build-backend = "hatchling.build"
 
 [tool.hatch.version]
-source = "code"
 path = "../../src/nominatim_db/version.py"
-expression = "NOMINATIM_VERSION.release_version()"
+pattern = "NOMINATIM_VERSION = parse_version.'(?P<version>[^-]+)"
 
 [tool.hatch.build.targets.sdist.force-include]
 "../../src/nominatim_db" = "nominatim_db"