Improve setup (#37075)
This commit is contained in:
parent
25b093e69e
commit
4aedafc73a
2 changed files with 19 additions and 3 deletions
|
@ -7,4 +7,5 @@ set -e
|
|||
cd "$(dirname "$0")/.."
|
||||
|
||||
echo "Installing development dependencies..."
|
||||
python3 -m pip install tox colorlog pre-commit $(grep mypy requirements_test.txt)
|
||||
python3 -m pip install wheel --constraint homeassistant/package_constraints.txt
|
||||
python3 -m pip install tox colorlog pre-commit $(grep mypy requirements_test.txt) --constraint homeassistant/package_constraints.txt
|
||||
|
|
19
script/setup
19
script/setup
|
@ -1,11 +1,26 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
# Setups the repository.
|
||||
|
||||
# Stop on errors
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
mkdir -p config
|
||||
|
||||
python3 -m venv venv
|
||||
source venv/bin/activate
|
||||
|
||||
script/bootstrap
|
||||
|
||||
pre-commit install
|
||||
pip install -e .
|
||||
pip install -e . --constraint homeassistant/package_constraints.txt
|
||||
|
||||
hass --script ensure_config -c config
|
||||
|
||||
echo "
|
||||
logger:
|
||||
default: info
|
||||
logs:
|
||||
homeassistant.components.cloud: debug
|
||||
" >> config/configuration.yaml
|
||||
|
|
Loading…
Add table
Reference in a new issue