Remove --use-pep517 from pip install and change Python version in devcontainer (#963)

* Remove --use-pep517 from pip install

* Update Python version of devcontainer
This commit is contained in:
Bas Nijholt 2024-04-06 11:31:30 +02:00 committed by GitHub
commit a388656448
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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)