]> git.openstreetmap.org Git - nominatim.git/blob - packaging/nominatim-api/pyproject.toml
reduce from 3 to 2 packages
[nominatim.git] / packaging / nominatim-api / pyproject.toml
1 [project]
2 name = "nominatim-api"
3 description = "A tool for building a database of OpenStreetMap for geocoding and for searching the database. Search library."
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     "pyYAML>=5.1",
19     "SQLAlchemy>=1.4.31",
20     "psycopg",
21     "PyICU"
22 ]
23 dynamic = ["version"]
24
25 [project.urls]
26 Homepage = "https://nominatim.org"
27 Issues = "https://github.com/osm-search/Nominatim/issues"
28
29 [build-system]
30 requires = ["hatchling"]
31 build-backend = "hatchling.build"
32
33 [tool.hatch.version]
34 path = "src/nominatim_api/version.py"
35 pattern = "NOMINATIM_API_VERSION = '(?P<version>[^']+)'"
36
37 [tool.hatch.build.targets.sdist]
38 include = [
39     "src/nominatim_api",
40     "src/nominatim_db/config.py",
41     "settings",
42     "extra_src/paths.py"
43 ]
44
45 exclude = [
46   "src/nominatim_api/config.py"
47 ]
48
49 [tool.hatch.build.targets.wheel]
50 packages = ["src/nominatim_api"]
51
52 [tool.hatch.build.targets.wheel.force-include]
53 "src/nominatim_db/config.py" = "nominatim_api/config.py"
54 "extra_src/paths.py" = "nominatim_api/paths.py"
55 "settings" = "nominatim_api/resources/settings"