2024-04-06 11:25:47 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
set -ex
|
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
|
|
2024-04-06 11:31:30 +02:00
|
|
|
pip install -r core/requirements.txt
|
2024-04-06 11:25:47 +02:00
|
|
|
|
|
|
|
|
if grep -q 'codecov' core/requirements_test.txt; then
|
|
|
|
|
# Older HA versions still have `codecov` in `requirements_test.txt`
|
|
|
|
|
# however it is removed from PyPI, so we cannot install it
|
|
|
|
|
sed -i '/codecov/d' core/requirements_test.txt
|
|
|
|
|
fi
|
2024-04-06 11:31:30 +02:00
|
|
|
pip install -r core/requirements_test.txt
|
2024-04-06 11:25:47 +02:00
|
|
|
|
2024-04-06 11:31:30 +02:00
|
|
|
pip install -e core/
|
2024-04-06 11:25:47 +02:00
|
|
|
pip install ulid-transform # this is in Adaptive-lighting's manifest.json
|
2024-04-06 11:31:30 +02:00
|
|
|
pip install $(python test_dependencies.py)
|