ghg
This commit is contained in:
@@ -34,7 +34,7 @@ Optional flags:
|
||||
--no-playwright Skip running `python -m playwright install` (still installs deps)
|
||||
--playwright-only Install only Playwright browsers (installs playwright package if missing)
|
||||
--browsers Comma-separated list of Playwright browsers to install (default: chromium)
|
||||
--install-editable Install the project in editable mode (pip install -e .) for running tests
|
||||
--install-editable Install the project in editable mode (pip install -e scripts) for running tests
|
||||
--install-deno Install the Deno runtime using the official installer
|
||||
--no-deno Skip installing the Deno runtime
|
||||
--deno-version Pin a specific Deno version to install (e.g., v1.34.3)
|
||||
@@ -256,7 +256,7 @@ def main() -> int:
|
||||
parser.add_argument(
|
||||
"--install-editable",
|
||||
action="store_true",
|
||||
help="Install the project in editable mode (pip install -e .) for running tests",
|
||||
help="Install the project in editable mode (pip install -e scripts) for running tests",
|
||||
)
|
||||
deno_group = parser.add_mutually_exclusive_group()
|
||||
deno_group.add_argument(
|
||||
@@ -690,7 +690,7 @@ def main() -> int:
|
||||
# Install the project into the local venv (editable mode is the default, opinionated)
|
||||
if not args.quiet:
|
||||
print("Installing project into local venv (editable mode)")
|
||||
run([str(venv_python), "-m", "pip", "install", "-e", "."])
|
||||
run([str(venv_python), "-m", "pip", "install", "-e", str(repo_root / "scripts")])
|
||||
|
||||
# Verify top-level 'CLI' import and, if missing, attempt to make it available
|
||||
if not args.quiet:
|
||||
@@ -890,10 +890,10 @@ python -m medeia_macina.cli_entry @args
|
||||
" fi\n"
|
||||
"fi\n"
|
||||
"# If git not available or didn't resolve, walk up from CWD to find a project root.\n"
|
||||
'if [ ! -f "$REPO/CLI.py" ] && [ ! -f "$REPO/pyproject.toml" ]; then\n'
|
||||
'if [ ! -f "$REPO/CLI.py" ] && [ ! -f "$REPO/pyproject.toml" ] && [ ! -f "$REPO/scripts/pyproject.toml" ]; then\n'
|
||||
' CUR="$(pwd -P)"\n'
|
||||
' while [ "$CUR" != "/" ] && [ "$CUR" != "" ]; do\n'
|
||||
' if [ -f "$CUR/CLI.py" ] || [ -f "$CUR/pyproject.toml" ]; then\n'
|
||||
' if [ -f "$CUR/CLI.py" ] || [ -f "$CUR/pyproject.toml" ] || [ -f "$CUR/scripts/pyproject.toml" ]; then\n'
|
||||
' REPO="$CUR"\n'
|
||||
" break\n"
|
||||
" fi\n"
|
||||
|
||||
Reference in New Issue
Block a user