]> git.openstreetmap.org Git - nominatim.git/blob - packaging/nominatim-db/pyproject.toml
652f683f095e6bbeec5fcd718ab8c267538b21f9
[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   { name = "Marc Tobias", email = "mtmail-cpan@gmx.net" }
10 ]
11 keywords = [ "geocoding", "OpenStreetMap", "search" ]
12 classifiers = [
13     "Programming Language :: Python :: 3",
14     "License :: OSI Approved :: GNU General Public License (GPL)",
15     "Operating System :: OS Independent",
16 ]
17 dependencies = [
18     "psycopg2-binary",
19     "python-dotenv",
20     "jinja2",
21     "pyYAML>=5.1",
22     "datrie",
23     "psutil",
24     "PyICU"
25 ]
26 dynamic = ["version"]
27
28 [project.urls]
29 Homepage = "https://nominatim.org"
30 Documentation = "https://nominatim.org/release-docs/latest/"
31 Issues = "https://github.com/osm-search/Nominatim/issues"
32 Repository = "https://github.com/osm-search/Nominatim"
33
34 [build-system]
35 requires = ["hatchling"]
36 build-backend = "hatchling.build"
37
38 [tool.hatch.version]
39 path = "src/nominatim_db/version.py"
40 pattern = "NOMINATIM_VERSION = parse_version.'(?P<version>[^-]+)"
41
42 [tool.hatch.build.targets.sdist]
43 include = [
44     "src/nominatim_db",
45     "scripts",
46     "lib-sql/**/*.sql",
47     "settings",
48     "data/words.sql",
49     "extra_src/nominatim_db/paths.py"
50 ]
51
52 artifacts = [
53   "data/country_osm_grid.sql.gz"
54 ]
55
56 exclude = [
57   "src/nominatim_db/paths.py"
58 ]
59
60 [tool.hatch.build.targets.wheel]
61 packages = ["src/nominatim_db"]
62
63 [tool.hatch.build.targets.wheel.shared-scripts]
64 "scripts" = "/"
65
66 [tool.hatch.build.targets.wheel.force-include]
67 "lib-sql" = "nominatim_db/resources/lib-sql"
68 "settings" = "nominatim_db/resources/settings"
69 "data/country_osm_grid.sql.gz" = "nominatim_db/resources/country_osm_grid.sql.gz"
70 "data/words.sql" = "nominatim_db/resources/words.sql"
71 "extra_src/nominatim_db/paths.py" = "nominatim_db/paths.py"