]> git.openstreetmap.org Git - nominatim.git/blob - pyproject.toml
add missing __init__.py
[nominatim.git] / pyproject.toml
1 [project]
2 name = "nominatim"
3 description = "A tool for building a database of OpenStreetMap for geocoding and for searching the database."
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",
18     "python-dotenv",
19     "psutil",
20     "jinja2",
21     "SQLAlchemy>=1.4.31",
22     "asyncpg>=0.8",
23     "PyICU",
24     "pyYAML>=5.1",
25     "datrie"
26 ]
27 dynamic = ["version"]
28
29 [project.urls]
30 Homepage = "https://nominatim.org"
31 Issues = "https://github.com/osm-search/Nominatim/issues"
32
33 [build-system]
34 requires = ["hatchling"]
35 build-backend = "hatchling.build"
36
37 [tool.hatch.version]
38 source = "code"
39 path = "nominatim/version.py"
40 expression = "NOMINATIM_VERSION.release_version()"
41
42 [tool.hatch.build.targets.sdist]
43 only-include = ["nominatim", "lib-sql", "settings",
44                 "docs", "man", "data", "munin",
45                 "test/python", "test/bdd", "test/testdata", "test/testdb"]
46 artifacts = ["data/country_osm_grid.sql.gz"]
47
48 [tool.hatch.build.targets.wheel]
49 only-include = ["nominatim", "lib-sql", "settings",
50                 "data/words.sql", "data/country_osm_grid.sql.gz",
51                 "wheel_build/nominatim"]
52 exclude = ["nominatim/paths.py"]
53
54 [tool.hatch.build.targets.wheel.shared-scripts]
55 "wheel_build/shared/scripts" = "/"
56
57 [tool.hatch.build.targets.wheel.sources]
58 "wheel_build/nominatim" = "nominatim"
59 "lib-sql" = "nominatim/resources/lib-sql"
60 "settings" = "nominatim/resources/settings"
61 "data" = "nominatim/resources"