Skip to content

Commit

Permalink
Remove --use-pep517 from pip install and change Python version in…
Browse files Browse the repository at this point in the history
… devcontainer (#963)

* Remove --use-pep517 from pip install

* Update Python version of devcontainer
  • Loading branch information
basnijholt authored Apr 6, 2024
1 parent 2f31b42 commit a388656
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .devcontainer.json
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 4 additions & 4 deletions scripts/install_ha
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit a388656

Please sign in to comment.