X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6511821001351007df262c6732fdde51b30b2f91..2fe8b98d557cf68a15763a762fb77d3a9522af98:/packaging/nominatim-api/pyproject.toml diff --git a/packaging/nominatim-api/pyproject.toml b/packaging/nominatim-api/pyproject.toml index 7e9230e4..ca86f8a7 100644 --- a/packaging/nominatim-api/pyproject.toml +++ b/packaging/nominatim-api/pyproject.toml @@ -5,7 +5,8 @@ readme = "README.md" requires-python = ">=3.7" license = 'GPL-3.0-or-later' maintainers = [ - { name = "Sarah Hoffmann", email = "lonvia@denofr.de" } + { name = "Sarah Hoffmann", email = "lonvia@denofr.de" }, + { name = "Marc Tobias", email = "mtmail-cpan@gmx.net" } ] keywords = [ "geocoding", "OpenStreetMap", "search" ] classifiers = [ @@ -14,7 +15,8 @@ classifiers = [ "Operating System :: OS Independent", ] dependencies = [ - "nominatim-core", + "python-dotenv", + "pyYAML>=5.1", "SQLAlchemy>=1.4.31", "psycopg", "PyICU" @@ -23,23 +25,34 @@ dynamic = ["version"] [project.urls] Homepage = "https://nominatim.org" +Documentation = "https://nominatim.org/release-docs/latest/" Issues = "https://github.com/osm-search/Nominatim/issues" +Repository = "https://github.com/osm-search/Nominatim" [build-system] requires = ["hatchling"] build-backend = "hatchling.build" [tool.hatch.version] -source = "code" -path = "../../src/nominatim_api/version.py" -expression = "NOMINATIM_API_VERSION" +path = "src/nominatim_api/version.py" +pattern = "NOMINATIM_API_VERSION = '(?P[^']+)'" -[tool.hatch.build.targets.sdist.force-include] -"../../src/nominatim_db" = "nominatim_api" +[tool.hatch.build.targets.sdist] +include = [ + "src/nominatim_api", + "src/nominatim_db/config.py", + "settings", + "extra_src/paths.py" +] -[tool.hatch.build.targets.sdist.sources] -"src/nominatim_core" = "nominatim_api" +exclude = [ + "src/nominatim_api/config.py" +] [tool.hatch.build.targets.wheel] -packages = ["nominatim_api"] +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"