"""Print the Python packages an engine checkout asks for, one per line, from its pyproject.toml. python engine_requirements.py /path/to/postkitty > engine-requirements.txt """ import sys import tomllib from pathlib import Path project = tomllib.loads((Path(sys.argv[1]) / "pyproject.toml").read_text(encoding="utf-8"))["project"] print("\n".join(project["dependencies"]))