]> git.openstreetmap.org Git - nominatim.git/blob - packaging/nominatim-core/pyproject.toml
switch to symlink approach for packages
[nominatim.git] / packaging / nominatim-core / pyproject.toml
1 [project]
2 name = "nominatim-core"
3 description = "A tool for building a database of OpenStreetMap for geocoding and for searching the database. Base package for common resources for the project."
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     "python-dotenv",
18     "jinja2",
19     "pyYAML>=5.1",
20     "datrie"
21 ]
22 dynamic = ["version"]
23
24 [project.urls]
25 Homepage = "https://nominatim.org"
26 Issues = "https://github.com/osm-search/Nominatim/issues"
27
28 [build-system]
29 requires = ["hatchling"]
30 build-backend = "hatchling.build"
31
32 [tool.hatch.version]
33 source = "code"
34 path = "src/nominatim_core/version.py"
35 expression = "NOMINATIM_CORE_VERSION"
36
37 [tool.hatch.build.targets.sdist]
38 include = [
39   "src/nominatim_core",
40   "lib-sql/**.sql",
41   "settings",
42   "data/words.sql",
43   "extra_src/nominatim_core/paths.py"
44 ]
45 artifacts = [
46   "data/country_osm_grid.sql.gz"
47 ]
48 exclude = [
49   "src/nominatim_core/paths.py"
50 ]
51
52 [tool.hatch.build.targets.wheel]
53 packages = ["src/nominatim_core"]
54
55 [tool.hatch.build.targets.wheel.force-include]
56 "lib-sql" = "nominatim_core/resources/lib-sql"
57 "settings" = "nominatim_core/resources/settings"
58 "data/country_osm_grid.sql.gz" = "nominatim_core/resources/country_osm_grid.sql.gz"
59 "data/words.sql" = "nominatim_core/resources/words.sql"
60 "extra_src/nominatim_core/paths.py" = "nominatim_core/paths.py"