]> git.openstreetmap.org Git - nominatim.git/blob - packaging/nominatim-db/pyproject.toml
use autocommit when creating tables and indexes
[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     "psycopg",
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     "lib-lua/**/*.lua",
48     "settings",
49     "data/words.sql",
50     "extra_src/nominatim_db/paths.py"
51 ]
52
53 artifacts = [
54   "data/country_osm_grid.sql.gz"
55 ]
56
57 exclude = [
58   "src/nominatim_db/paths.py"
59 ]
60
61 [tool.hatch.build.targets.wheel]
62 packages = ["src/nominatim_db"]
63
64 [tool.hatch.build.targets.wheel.shared-scripts]
65 "scripts" = "/"
66
67 [tool.hatch.build.targets.wheel.force-include]
68 "lib-sql" = "nominatim_db/resources/lib-sql"
69 "lib-lua" = "nominatim_db/resources/lib-lua"
70 "settings" = "nominatim_db/resources/settings"
71 "data/country_osm_grid.sql.gz" = "nominatim_db/resources/country_osm_grid.sql.gz"
72 "data/words.sql" = "nominatim_db/resources/words.sql"
73 "extra_src/nominatim_db/paths.py" = "nominatim_db/paths.py"