From a84651f7420b3618108567fe815f14398bbefa7f Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Mon, 16 Sep 2024 17:13:48 +0000 Subject: [PATCH] source venv activate --- shell.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/shell.nix b/shell.nix index 560f5b2..6f261ac 100644 --- a/shell.nix +++ b/shell.nix @@ -10,13 +10,15 @@ pkgs.mkShell { shellHook = '' echo "Welcome to the Nix shell for AppDaemon development" + alias build="uv run python -m build" alias dbuild="docker build -t acockburn/appdaemon:local-dev /usr/src/app" alias fbuild="build && dbuild" alias clean="cd /usr/src/app && rm -rf ./build ./dist" - alias python="/usr/src/app/.venv/bin/python3" alias ad="python -m appdaemon" + cd /usr/src/app - uv sync --all-extras --upgrade --inexact + uv sync --all-extras --upgrade --inexact + source .venv/bin/activate ''; }