mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
reduce from 3 to 2 packages
This commit is contained in:
15
packaging/nominatim-api/extra_src/paths.py
Normal file
15
packaging/nominatim-api/extra_src/paths.py
Normal 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()
|
||||
@@ -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"
|
||||
|
||||
1
packaging/nominatim-api/settings
Symbolic link
1
packaging/nominatim-api/settings
Symbolic link
@@ -0,0 +1 @@
|
||||
../../settings/
|
||||
Reference in New Issue
Block a user