Refactored the subprocess wrapper to only split the command part (first element) if it contains spaces, while preserving spaces in subsequent arguments (like file paths). Added unit tests for various scenarios including command overrides and error handling.
45 lines
1011 B
TOML
45 lines
1011 B
TOML
[project]
|
|
name = "geodata-toolkit"
|
|
version = "0.1.0"
|
|
description = "Heightmap and orthophoto exporters using GDAL for Unity terrains."
|
|
readme = "README.md"
|
|
requires-python = ">=3.11,<3.13"
|
|
dependencies = [
|
|
"gdal>=3.4",
|
|
"pdal>=3.5",
|
|
"cjio[export,reproject]>=0.9",
|
|
"laspy[lazrs]>=2.5",
|
|
"scipy>=1.11",
|
|
"scikit-learn>=1.3",
|
|
"shapely>=2.0",
|
|
"numpy>=1.24",
|
|
"trimesh>=4.0",
|
|
"requests>=2.31",
|
|
"tomli-w>=1.0",
|
|
]
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["geodata_pipeline"]
|
|
force-include = { "geodata_to_unity.py" = "geodata_to_unity.py", "geodata_download.py" = "geodata_download.py" }
|
|
[tool.hatch.build.targets.sdist]
|
|
include = [
|
|
"geodata_to_unity.py",
|
|
"geodata_download.py",
|
|
"geodata_pipeline/",
|
|
"geodata_config.example.toml",
|
|
"scripts/",
|
|
"README.md",
|
|
"AGENTS.md",
|
|
"pyproject.toml",
|
|
]
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"pytest>=9.0.2",
|
|
"pytest-cov>=7.0.0",
|
|
]
|