]> git.openstreetmap.org Git - nominatim.git/blob - packaging/nominatim-db/pyproject.toml
69b863c2a907f0f12b808557ba1c7754552e3c9f
[nominatim.git] / packaging / nominatim-db / pyproject.toml
1 [project]
2 name = "nominatim-db"
3 description = "A tool for building a database of OpenStreetMap for geocoding and for searching the database. Database backend."
4 readme = "README.md"
5 requires-python = ">=3.7"
6 license = 'GPL-3.0-or-later'
7 maintainers = [
8   { name = "Sarah Hoffmann", email = "lonvia@denofr.de" }
9 ]
10 keywords = [ "geocoding", "OpenStreetMap", "search" ]
11 classifiers = [
12     "Programming Language :: Python :: 3",
13     "License :: OSI Approved :: GNU General Public License (GPL)",
14     "Operating System :: OS Independent",
15 ]
16 dependencies = [
17     "psycopg2-binary",
18     "python-dotenv",
19     "jinja2",
20     "pyYAML>=5.1",
21     "datrie",
22     "psutil",
23     "PyICU"
24 ]
25 dynamic = ["version"]
26
27 [project.urls]
28 Homepage = "https://nominatim.org"
29 Issues = "https://github.com/osm-search/Nominatim/issues"
30 Documentation = "https://nominatim.org/release-docs/latest/"
31
32 [build-system]
33 requires = ["hatchling"]
34 build-backend = "hatchling.build"
35
36 [tool.hatch.version]
37 path = "src/nominatim_db/version.py"
38 pattern = "NOMINATIM_VERSION = parse_version.'(?P<version>[^-]+)"
39
40 [tool.hatch.build.targets.sdist]
41 include = [
42     "src/nominatim_db",
43     "scripts",
44     "lib-sql/**/*.sql",
45     "settings",
46     "data/words.sql",
47     "extra_src/nominatim_db/paths.py"
48 ]
49
50 artifacts = [
51   "data/country_osm_grid.sql.gz"
52 ]
53
54 exclude = [
55   "src/nominatim_db/paths.py"
56 ]
57
58 [tool.hatch.build.targets.wheel]
59 packages = ["src/nominatim_db"]
60
61 [tool.hatch.build.targets.wheel.shared-scripts]
62 "scripts" = "/"
63
64 [tool.hatch.build.targets.wheel.force-include]
65 "lib-sql" = "nominatim_db/resources/lib-sql"
66 "settings" = "nominatim_db/resources/settings"
67 "data/country_osm_grid.sql.gz" = "nominatim_db/resources/country_osm_grid.sql.gz"
68 "data/words.sql" = "nominatim_db/resources/words.sql"
69 "extra_src/nominatim_db/paths.py" = "nominatim_db/paths.py"