X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6511821001351007df262c6732fdde51b30b2f91..4cce681ead77ff2e5bdee2e7f1695162c805bbb5:/packaging/nominatim-db/pyproject.toml diff --git a/packaging/nominatim-db/pyproject.toml b/packaging/nominatim-db/pyproject.toml index 4cad2b8e..841845f0 100644 --- a/packaging/nominatim-db/pyproject.toml +++ b/packaging/nominatim-db/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,8 +15,11 @@ classifiers = [ "Operating System :: OS Independent", ] dependencies = [ - "nominatim-core", - "psycopg2", + "psycopg", + "python-dotenv", + "jinja2", + "pyYAML>=5.1", + "datrie", "psutil", "PyICU" ] @@ -23,27 +27,45 @@ 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_db/version.py" -expression = "NOMINATIM_VERSION.release_version()" +path = "src/nominatim_db/version.py" +pattern = "NOMINATIM_VERSION = parse_version.'(?P[^-]+)" -[tool.hatch.build.targets.sdist.force-include] -"../../src/nominatim_db" = "nominatim_db" +[tool.hatch.build.targets.sdist] +include = [ + "src/nominatim_db", + "scripts", + "lib-sql/**/*.sql", + "settings", + "data/words.sql", + "extra_src/nominatim_db/paths.py" +] + +artifacts = [ + "data/country_osm_grid.sql.gz" +] -[tool.hatch.build.targets.sdist.sources] -"src/nominatim_core" = "nominatim_db" -"scripts" = "scripts" +exclude = [ + "src/nominatim_db/paths.py" +] [tool.hatch.build.targets.wheel] -packages = ["nominatim_db"] +packages = ["src/nominatim_db"] [tool.hatch.build.targets.wheel.shared-scripts] "scripts" = "/" +[tool.hatch.build.targets.wheel.force-include] +"lib-sql" = "nominatim_db/resources/lib-sql" +"settings" = "nominatim_db/resources/settings" +"data/country_osm_grid.sql.gz" = "nominatim_db/resources/country_osm_grid.sql.gz" +"data/words.sql" = "nominatim_db/resources/words.sql" +"extra_src/nominatim_db/paths.py" = "nominatim_db/paths.py"