2015-09-17 07:38:52 +00:00
|
|
|
#!/bin/sh
|
2017-01-02 21:04:09 +00:00
|
|
|
# Resolve all dependencies that the application requires to run.
|
2015-09-17 07:38:52 +00:00
|
|
|
|
2017-01-02 21:04:09 +00:00
|
|
|
# Stop on errors
|
|
|
|
set -e
|
2015-09-17 07:38:52 +00:00
|
|
|
|
2015-09-17 07:35:26 +00:00
|
|
|
cd "$(dirname "$0")/.."
|
2017-01-25 00:20:18 +00:00
|
|
|
|
2020-11-13 15:03:40 +00:00
|
|
|
# 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
|
|
|
|
|
2019-10-23 06:12:57 +00:00
|
|
|
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
|