From a38865644814b7c634cbec0884626324a8b1b01c Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Sat, 6 Apr 2024 11:31:30 +0200 Subject: [PATCH] Remove `--use-pep517` from `pip install` and change Python version in devcontainer (#963) * Remove --use-pep517 from pip install * Update Python version of devcontainer --- .devcontainer.json | 2 +- scripts/install_ha | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.devcontainer.json b/.devcontainer.json index 14778469..9b9ba58b 100644 --- a/.devcontainer.json +++ b/.devcontainer.json @@ -1,6 +1,6 @@ { "name": "basnijholt/adaptive_lighting", - "image": "mcr.microsoft.com/vscode/devcontainers/python:0-3.11-bullseye", + "image": "mcr.microsoft.com/vscode/devcontainers/python:3.12", "postCreateCommand": "scripts/setup-devcontainer", "forwardPorts": [ 8123 diff --git a/scripts/install_ha b/scripts/install_ha index c38fe351..efe0bd25 100755 --- a/scripts/install_ha +++ b/scripts/install_ha @@ -2,15 +2,15 @@ set -ex cd "$(dirname "$0")/.." -pip install -r core/requirements.txt --use-pep517 +pip install -r core/requirements.txt 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 -pip install -r core/requirements_test.txt --use-pep517 +pip install -r core/requirements_test.txt -pip install -e core/ --use-pep517 +pip install -e core/ pip install ulid-transform # this is in Adaptive-lighting's manifest.json -pip install $(python test_dependencies.py) --use-pep517 +pip install $(python test_dependencies.py)