mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
Improve setup (#37075)
This commit is contained in:
parent
25b093e69e
commit
4aedafc73a
@ -7,4 +7,5 @@ set -e
|
|||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
echo "Installing development dependencies..."
|
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.
|
# Setups the repository.
|
||||||
|
|
||||||
# Stop on errors
|
# Stop on errors
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
|
mkdir -p config
|
||||||
|
|
||||||
|
python3 -m venv venv
|
||||||
|
source venv/bin/activate
|
||||||
|
|
||||||
script/bootstrap
|
script/bootstrap
|
||||||
|
|
||||||
pre-commit install
|
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…
x
Reference in New Issue
Block a user