make use of nominatim-api in db package optional

This commit is contained in:
Sarah Hoffmann
2024-06-11 20:21:19 +02:00
parent 3a8c5df82d
commit 5d302a03a6
7 changed files with 32 additions and 23 deletions

View File

@@ -30,9 +30,8 @@ requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "code"
path = "../../src/nominatim_api/version.py"
expression = "NOMINATIM_API_VERSION"
pattern = "NOMINATIM_API_VERSION = '(?P<version>[^']+)'"
[tool.hatch.build.targets.sdist.force-include]
"../../src/nominatim_db" = "nominatim_api"

View 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"

View 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"