[build-system] requires = ["hatchling>=1.27,<2"] build-backend = "hatchling.build" [project] name = "yaml-edit" version = "0.1.0" description = "Experimental local YAML edit proposals with source-preserving validation" readme = "README.md" license = "MIT" license-files = ["LICENSE"] requires-python = ">=3.12" dependencies = ["ruamel.yaml>=0.18.10,<0.19"] [project.optional-dependencies] ml = [ "numpy>=2,<3", "packaging>=24,<27", "safetensors>=0.5,<0.7", "torch>=2.6,<3", ] [project.scripts] yaml-edit = "yaml_edit.cli:main" [tool.uv] required-version = ">=0.9.0" [tool.uv.sources] torch = [{ index = "pytorch-cpu", marker = "sys_platform == 'linux' or sys_platform == 'win32'" }] [[tool.uv.index]] name = "pytorch-cpu" url = "https://download.pytorch.org/whl/cpu" explicit = true [tool.hatch.build.targets.wheel] packages = ["src/yaml_edit"] [tool.hatch.build.targets.sdist] include = [ "/src", "/examples", "/README.md", "/LICENSE", "/pyproject.toml", "/uv.lock", "/.python-version", "/model.json", "/model.safetensors", "/SHA256SUMS", ]