mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-03-29 21:03:40 +00:00
25 lines
526 B
Bash
Executable file
25 lines
526 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# script/bootstrap: Install/update all dependencies required to run the project
|
|
|
|
set -e
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
echo "==> Updating system packages..."
|
|
sudo apt-get update
|
|
sudo apt-get upgrade -y
|
|
|
|
echo "==> Checking for uv..."
|
|
if ! command -v uv >/dev/null 2>&1; then
|
|
echo "UV not found, installing..."
|
|
pipx install uv
|
|
fi
|
|
|
|
echo "==> Installing dependencies..."
|
|
python3 -m pip install --requirement requirements.txt
|
|
|
|
echo "==> Installing pre-commit hooks..."
|
|
pre-commit install
|
|
|
|
echo "==> Bootstrap completed!"
|