reduce from 3 to 2 packages

This commit is contained in:
Sarah Hoffmann
2024-06-27 21:26:12 +02:00
parent 139cea5720
commit 4da4cbfe27
149 changed files with 419 additions and 422 deletions

View File

@@ -0,0 +1,15 @@
# SPDX-License-Identifier: GPL-3.0-or-later
#
# This file is part of Nominatim. (https://nominatim.org)
#
# Copyright (C) 2024 by the Nominatim developer community.
# For a full list of authors see the git log.
"""
Path settings for extra data used by Nominatim.
"""
from pathlib import Path
PHPLIB_DIR = None
DATA_DIR = None
SQLLIB_DIR = None
CONFIG_DIR = (Path(__file__) / '..' / 'resources' / 'settings').resolve()

View File

@@ -14,7 +14,8 @@ classifiers = [
"Operating System :: OS Independent",
]
dependencies = [
"nominatim-core",
"python-dotenv",
"pyYAML>=5.1",
"SQLAlchemy>=1.4.31",
"psycopg",
"PyICU"
@@ -34,8 +35,21 @@ path = "src/nominatim_api/version.py"
pattern = "NOMINATIM_API_VERSION = '(?P<version>[^']+)'"
[tool.hatch.build.targets.sdist]
include = ["src/nominatim_api"]
include = [
"src/nominatim_api",
"src/nominatim_db/config.py",
"settings",
"extra_src/paths.py"
]
exclude = [
"src/nominatim_api/config.py"
]
[tool.hatch.build.targets.wheel]
packages = ["src/nominatim_api"]
[tool.hatch.build.targets.wheel.force-include]
"src/nominatim_db/config.py" = "nominatim_api/config.py"
"extra_src/paths.py" = "nominatim_api/paths.py"
"settings" = "nominatim_api/resources/settings"

View File

@@ -0,0 +1 @@
../../settings/