core/script/bootstrap

20 lines
835 B
Plaintext
Raw Normal View History

2015-09-17 07:38:52 +00:00
#!/bin/sh
# Resolve all dependencies that the application requires to run.
2015-09-17 07:38:52 +00:00
# Stop on errors
set -e
2015-09-17 07:38:52 +00:00
cd "$(dirname "$0")/.."
# Add default vscode settings if not existing
SETTINGS_FILE=./.vscode/settings.json
SETTINGS_TEMPLATE_FILE=./.vscode/settings.default.json
if [ ! -f "$SETTINGS_FILE" ]; then
echo "Copy $SETTINGS_TEMPLATE_FILE to $SETTINGS_FILE."
cp "$SETTINGS_TEMPLATE_FILE" "$SETTINGS_FILE"
fi
echo "Installing development dependencies..."
2020-06-25 18:34:47 +00:00
python3 -m pip install wheel --constraint homeassistant/package_constraints.txt
2021-01-29 08:19:32 +00:00
python3 -m pip install tox colorlog pre-commit $(grep mypy requirements_test.txt) $(grep stdlib-list requirements_test.txt) $(grep tqdm requirements_test.txt) $(grep pipdeptree requirements_test.txt) $(grep awesomeversion requirements_test.txt) --constraint homeassistant/package_constraints.txt