mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-20 12:19:13 +03:00
switch to symlink approach for packages
Needed to make building work from sdist and source directory.
This commit is contained in:
parent
a93ec09932
commit
1e88321371
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,5 +1,6 @@
|
||||
*.log
|
||||
*.pyc
|
||||
*.swp
|
||||
|
||||
docs/develop/*.png
|
||||
|
||||
|
1
packaging/nominatim-api/COPYING
Symbolic link
1
packaging/nominatim-api/COPYING
Symbolic link
@ -0,0 +1 @@
|
||||
../../COPYING
|
@ -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"]
|
||||
|
||||
|
1
packaging/nominatim-api/src
Symbolic link
1
packaging/nominatim-api/src
Symbolic link
@ -0,0 +1 @@
|
||||
../../src/
|
1
packaging/nominatim-core/COPYING
Symbolic link
1
packaging/nominatim-core/COPYING
Symbolic link
@ -0,0 +1 @@
|
||||
../../COPYING
|
1
packaging/nominatim-core/data
Symbolic link
1
packaging/nominatim-core/data
Symbolic link
@ -0,0 +1 @@
|
||||
../../data
|
1
packaging/nominatim-core/lib-sql
Symbolic link
1
packaging/nominatim-core/lib-sql
Symbolic link
@ -0,0 +1 @@
|
||||
../../lib-sql/
|
@ -30,19 +30,31 @@ requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[tool.hatch.version]
|
||||
path = "../../src/nominatim_core/version.py"
|
||||
pattern = "NOMINATIM_CORE_VERSION = '(?P<version>[^']+)'"
|
||||
source = "code"
|
||||
path = "src/nominatim_core/version.py"
|
||||
expression = "NOMINATIM_CORE_VERSION"
|
||||
|
||||
[tool.hatch.build.targets.sdist.force-include]
|
||||
"../../src/nominatim_core" = "nominatim_core"
|
||||
"../../lib-sql" = "nominatim_core/resources/lib-sql"
|
||||
"../../settings" = "nominatim_core/resources/settings"
|
||||
"../../data/country_osm_grid.sql.gz" = "nominatim_core/resources/country_osm_grid.sql.gz"
|
||||
"../../data/words.sql" = "nominatim_core/resources/words.sql"
|
||||
"src/nominatim_core/paths.py" = "nominatim_core/paths.py"
|
||||
|
||||
[tool.hatch.build.targets.sdist.sources]
|
||||
"src/nominatim_core" = "nominatim_core"
|
||||
[tool.hatch.build.targets.sdist]
|
||||
include = [
|
||||
"src/nominatim_core",
|
||||
"lib-sql/**.sql",
|
||||
"settings",
|
||||
"data/words.sql",
|
||||
"extra_src/nominatim_core/paths.py"
|
||||
]
|
||||
artifacts = [
|
||||
"data/country_osm_grid.sql.gz"
|
||||
]
|
||||
exclude = [
|
||||
"src/nominatim_core/paths.py"
|
||||
]
|
||||
|
||||
[tool.hatch.build.targets.wheel]
|
||||
packages = ["nominatim_core"]
|
||||
packages = ["src/nominatim_core"]
|
||||
|
||||
[tool.hatch.build.targets.wheel.force-include]
|
||||
"lib-sql" = "nominatim_core/resources/lib-sql"
|
||||
"settings" = "nominatim_core/resources/settings"
|
||||
"data/country_osm_grid.sql.gz" = "nominatim_core/resources/country_osm_grid.sql.gz"
|
||||
"data/words.sql" = "nominatim_core/resources/words.sql"
|
||||
"extra_src/nominatim_core/paths.py" = "nominatim_core/paths.py"
|
||||
|
1
packaging/nominatim-core/settings
Symbolic link
1
packaging/nominatim-core/settings
Symbolic link
@ -0,0 +1 @@
|
||||
../../settings/
|
1
packaging/nominatim-core/src
Symbolic link
1
packaging/nominatim-core/src
Symbolic link
@ -0,0 +1 @@
|
||||
../../src
|
1
packaging/nominatim-db/COPYING
Symbolic link
1
packaging/nominatim-db/COPYING
Symbolic link
@ -0,0 +1 @@
|
||||
../../COPYING
|
@ -30,19 +30,14 @@ requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[tool.hatch.version]
|
||||
path = "../../src/nominatim_db/version.py"
|
||||
path = "src/nominatim_db/version.py"
|
||||
pattern = "NOMINATIM_VERSION = parse_version.'(?P<version>[^-]+)"
|
||||
|
||||
[tool.hatch.build.targets.sdist.force-include]
|
||||
"../../src/nominatim_db" = "nominatim_db"
|
||||
|
||||
[tool.hatch.build.targets.sdist.sources]
|
||||
"src/nominatim_core" = "nominatim_db"
|
||||
"scripts" = "scripts"
|
||||
[tool.hatch.build.targets.sdist]
|
||||
include = ["src/nominatim_db", "scripts"]
|
||||
|
||||
[tool.hatch.build.targets.wheel]
|
||||
packages = ["nominatim_db"]
|
||||
packages = ["src/nominatim_db"]
|
||||
|
||||
[tool.hatch.build.targets.wheel.shared-scripts]
|
||||
"scripts" = "/"
|
||||
|
||||
|
1
packaging/nominatim-db/src
Symbolic link
1
packaging/nominatim-db/src
Symbolic link
@ -0,0 +1 @@
|
||||
../../src
|
@ -9,7 +9,8 @@ Version information for the Nominatim core package.
|
||||
"""
|
||||
from typing import NamedTuple, Optional
|
||||
|
||||
NOMINATIM_CORE_VERSION = '4.4.99'
|
||||
__version__ = '4.4.99'
|
||||
NOMINATIM_CORE_VERSION = __version__
|
||||
|
||||
class NominatimVersion(NamedTuple):
|
||||
""" Version information for Nominatim. We follow semantic versioning.
|
||||
|
Loading…
Reference in New Issue
Block a user