Files
daedalus/pyproject.toml
T
hermes-pi ec9848b169 daedalus 0.4.0: bash script interface (help() dispatch) + hello_bash
- bash/daedalus_common.sh (new): the shared interface for bash scripts
  (SPEC item 6.10) - a script sources its sibling helper, defines help()
  (usage) and main(), and ends with daedalus_bash_dispatch "$@" which
  routes help/-h/--help to help() and everything else to main()
  unchanged (clear fallback errors when a script forgets either)
- completion for bash scripts (SPEC item 3.13.5.2): after a completed
  script name daedalus offers --help, -h, help, prefix-filtered, written
  itself on the fd-8 argcomplete protocol - no script runs on TAB;
  scripts without the interface get the shell default
- bash/hello_bash.sh (new, category test): sample script through the
  interface, the bash twin of hello, with tests; registry entry, README
  row, CHANGELOG bullet
- tests: bash/tests/test_bash_interface.py (helper behavior, bash -n,
  enforcement of the interface for every registered .sh),
  test_hello_bash.py (direct and daedalus runs, help routing, SPEC 3.1
  pass-through, completion probes including the user's
  daedalus hello_bash<TAB><TAB> case), completions units + e2e harness
- README/INSTALL/SPEC updated (6.10, 3.13.5.2, tree, boilerplate with
  shellcheck directive); autotest green (212 tests)

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-18 22:35:11 +01:00

51 lines
1.4 KiB
TOML

[build-system]
requires = ["setuptools>=68"]
build-backend = "setuptools.build_meta"
[project]
name = "daedalus"
version = "0.4.0"
description = "Template for daedalus: loose scripts in one repo, run with: daedalus <name> [args...]"
readme = "README.md"
requires-python = ">=3.11"
dependencies = ["argcomplete>=3.3"]
[project.scripts]
daedalus = "daedalus.cli:main"
# The script folders are installed under daedalus/_library/ with their
# repository-relative paths, so registry paths resolve the same way (SPEC.md 9).
[tool.setuptools]
packages = [
"daedalus",
"daedalus.daedalus_logging",
"daedalus.hello",
"daedalus._library.python.src",
"daedalus._library.bash",
"daedalus._library.powershell",
"daedalus._library.batch",
]
[tool.setuptools.package-dir]
"daedalus.hello" = "python/src/hello"
"daedalus._library.python.src" = "python/src"
"daedalus._library.bash" = "bash"
"daedalus._library.powershell" = "powershell"
"daedalus._library.batch" = "batch"
[tool.setuptools.package-data]
"daedalus._library.python.src" = ["**/*"]
"daedalus._library.bash" = ["*.sh"]
"daedalus._library.powershell" = ["*.ps1"]
"daedalus._library.batch" = ["*.bat"]
[tool.setuptools.exclude-package-data]
"*" = ["*.pyc", "__pycache__/*", "**/__pycache__/*", ".gitkeep"]
[tool.pytest.ini_options]
testpaths = ["ci/tests", "daedalus/tests", "python/tests", "bash/tests"]
pythonpath = ["."]
[tool.coverage.run]
omit = ["*/tests/*", "*/__main__.py"]