c210e17661
- cli.py rewritten on argparse (build_parser, REMAINDER pass-through: everything after the script name still belongs to the script); help/errors are argparse-rendered, exit code 2 kept for all daedalus errors - completions.py (new): category-aware candidates for argcomplete - script names + unused labels narrowed by typed labels (daedalus test h<TAB> -> hello); --path completes scripts; after a completed script name daedalus offers nothing of its own and delegates .py scripts to their own parser via the run_python_script child with a rewritten COMP_LINE (daedalus hello -<TAB> -> hello's -h --help); SPEC 6.9 documents the autocomplete(parser) opt-in - SPEC: item 1.5 reuse-first third-party policy, 3.8/3.10/3.11 argparse texts, 3.13 completion catalog, 6.9 script opt-in, 9.6 argcomplete dependency - argcomplete>=3.3 as runtime dep (guarded import: CLI runs without it); register-python-argcomplete line for ~/.bashrc; PYTHON_ARGCOMPLETE_OK marker in bin/daedalus; README/INSTALL/CHANGELOG updated; hello opts in - tests: argparse CLI suites, completer units, end-to-end argcomplete probes through the bash fd-8 protocol and the delegation exec chain (autotest green, coverage 97%) Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
51 lines
1.4 KiB
TOML
51 lines
1.4 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=68"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "daedalus"
|
|
version = "0.3.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"]
|