add packaging for the different subprojects

This commit is contained in:
Sarah Hoffmann
2024-06-06 18:08:56 +02:00
parent 75abf237a6
commit 6511821001
10 changed files with 240 additions and 62 deletions

View File

@@ -0,0 +1,21 @@
Nominatim - DB Backend
=========
Nominatim is a tool to search OpenStreetMap data
by name and address (geocoding) and to generate synthetic addresses of
OSM points (reverse geocoding).
This module implements the database backend for Nominatim and the
command-line tool for importing and maintaining the database.
Documentation
=============
The documentation of the latest development version is in the
`docs/` subdirectory. A HTML version can be found at
https://nominatim.org/release-docs/develop/ .
License
=======
The source code is available under a GPLv3 license.

View File

@@ -0,0 +1,49 @@
[project]
name = "nominatim-db"
description = "A tool for building a database of OpenStreetMap for geocoding and for searching the database. Database backend."
readme = "README.md"
requires-python = ">=3.7"
license = 'GPL-3.0-or-later'
maintainers = [
{ name = "Sarah Hoffmann", email = "lonvia@denofr.de" }
]
keywords = [ "geocoding", "OpenStreetMap", "search" ]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Operating System :: OS Independent",
]
dependencies = [
"nominatim-core",
"psycopg2",
"psutil",
"PyICU"
]
dynamic = ["version"]
[project.urls]
Homepage = "https://nominatim.org"
Issues = "https://github.com/osm-search/Nominatim/issues"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "code"
path = "../../src/nominatim_db/version.py"
expression = "NOMINATIM_VERSION.release_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.wheel]
packages = ["nominatim_db"]
[tool.hatch.build.targets.wheel.shared-scripts]
"scripts" = "/"

View File

@@ -0,0 +1,5 @@
#!python3
from nominatim_db import cli
exit(cli.nominatim(module_dir=None, osm2pgsql_path=None))