]> git.openstreetmap.org Git - nominatim.git/blobdiff - packaging/nominatim-db/pyproject.toml
installation for Ubuntu 24.04 with packages
[nominatim.git] / packaging / nominatim-db / pyproject.toml
index 4cad2b8e4d2adc0c2594781e7ac93e4b9e123121..312f1c8126903ab3d394e88e9e7a75a4c5546d85 100644 (file)
@@ -15,7 +15,7 @@ classifiers = [
 ]
 dependencies = [
     "nominatim-core",
-    "psycopg2",
+    "psycopg2-binary",
     "psutil",
     "PyICU"
 ]
@@ -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<version>[^-]+)"
 
-[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" = "/"
-