tree-sitter-seminar/pyproject.toml
Artur Mukhamadiev a4e1284a54 [packaging] convert to installable executable package
- rename src/ts-example -> src/ts_example (valid import identifier)
- switch intra-package imports to relative form
- add hatchling build-system, [project.scripts] entry point (ts-example),
  and src-layout wheel config to pyproject.toml
- move runtime deps (rich, textual, textual-autocomplete) into pyproject
- update README: pip install -e ., launch via ts-example or python -m ts_example
2026-07-12 23:06:54 +03:00

25 lines
632 B
TOML

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "ts-example"
version = "0.0.1"
description = "Tree Sitter Usage Example"
requires-python = ">=3.11"
dependencies = [
"tree-sitter>=0.26.0",
"tree-sitter-cpp==0.23.4",
"tree-sitter-python==0.25.0",
"rich>=15.0.0",
"textual>=8.2.8",
"textual-autocomplete>=4.0.6",
]
# Install a `ts-example` command on PATH that calls ts_example.__main__:main.
[project.scripts]
ts-example = "ts_example.__main__:main"
# The import package lives under src/ (src-layout).
[tool.hatch.build.targets.wheel]
packages = ["src/ts_example"]