]> git.openstreetmap.org Git - nominatim.git/blob - packaging/nominatim-api/pyproject.toml
Merge pull request #3833 from lonvia/rework-logging
[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.9"
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     "async-timeout",
19     "python-dotenv",
20     "pyYAML>=5.1",
21     "SQLAlchemy>=1.4.31",
22     "psycopg",
23     "PyICU"
24 ]
25 dynamic = ["version"]
26
27 [project.urls]
28 Homepage = "https://nominatim.org"
29 Documentation = "https://nominatim.org/release-docs/latest/"
30 Issues = "https://github.com/osm-search/Nominatim/issues"
31 Repository = "https://github.com/osm-search/Nominatim"
32
33 [build-system]
34 requires = ["hatchling"]
35 build-backend = "hatchling.build"
36
37 [tool.hatch.version]
38 path = "src/nominatim_api/version.py"
39 pattern = "NOMINATIM_API_VERSION = '(?P<version>[^']+)'"
40
41 [tool.hatch.build.targets.sdist]
42 include = [
43     "src/nominatim_api",
44     "src/nominatim_db/config.py",
45     "settings",
46     "extra_src/paths.py"
47 ]
48
49 exclude = [
50   "src/nominatim_api/config.py"
51 ]
52
53 [tool.hatch.build.targets.wheel]
54 packages = ["src/nominatim_api"]
55
56 [tool.hatch.build.targets.wheel.force-include]
57 "src/nominatim_db/config.py" = "nominatim_api/config.py"
58 "extra_src/paths.py" = "nominatim_api/paths.py"
59 "settings" = "nominatim_api/resources/settings"