mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-11 05:14:07 +00:00
switch to symlink approach for packages
Needed to make building work from sdist and source directory.
This commit is contained in:
@@ -30,15 +30,12 @@ requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[tool.hatch.version]
|
||||
path = "../../src/nominatim_api/version.py"
|
||||
path = "src/nominatim_api/version.py"
|
||||
pattern = "NOMINATIM_API_VERSION = '(?P<version>[^']+)'"
|
||||
|
||||
[tool.hatch.build.targets.sdist.force-include]
|
||||
"../../src/nominatim_db" = "nominatim_api"
|
||||
|
||||
[tool.hatch.build.targets.sdist.sources]
|
||||
"src/nominatim_core" = "nominatim_api"
|
||||
[tool.hatch.build.targets.sdist]
|
||||
include = ["src/nominatim_api"]
|
||||
|
||||
[tool.hatch.build.targets.wheel]
|
||||
packages = ["nominatim_api"]
|
||||
packages = ["src/nominatim_api"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user