mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 02:07:09 +00:00
Do not install all dependencies in dev mode (#7548)
* ps - do not install all dependencies * Comment out blinkt because it depends on GPIO * Add pip upgrade check back * Disable import error blinkt * Update comment * Fix comment
This commit is contained in:
parent
0e246059f9
commit
76675a54f8
@ -29,6 +29,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
|||||||
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the Blinkt Light platform."""
|
"""Set up the Blinkt Light platform."""
|
||||||
|
# pylint: disable=import-error
|
||||||
import blinkt
|
import blinkt
|
||||||
|
|
||||||
# ensure that the lights are off when exiting
|
# ensure that the lights are off when exiting
|
||||||
|
@ -93,7 +93,7 @@ blinkpy==0.5.2
|
|||||||
blinkstick==1.1.8
|
blinkstick==1.1.8
|
||||||
|
|
||||||
# homeassistant.components.light.blinkt
|
# homeassistant.components.light.blinkt
|
||||||
blinkt==0.1.0
|
# blinkt==0.1.0
|
||||||
|
|
||||||
# homeassistant.components.sensor.bitcoin
|
# homeassistant.components.sensor.bitcoin
|
||||||
blockchain==1.3.3
|
blockchain==1.3.3
|
||||||
|
@ -6,21 +6,15 @@ set -e
|
|||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
echo "Installing dependencies..."
|
# Some requirements use parameter --only-binary only available
|
||||||
# Requirements_all.txt states minimum pip version as 7.0.0 however,
|
# in pip 7+. Upgrade if necessary.
|
||||||
# parameter --only-binary doesn't work with pip < 7.0.0. Causing
|
|
||||||
# python3 -m pip install -r requirements_all.txt to fail unless pip upgraded.
|
|
||||||
|
|
||||||
if ! python3 -c 'import pkg_resources ; pkg_resources.require(["pip>=7.0.0"])' 2>/dev/null ; then
|
if ! python3 -c 'import pkg_resources ; pkg_resources.require(["pip>=7.0.0"])' 2>/dev/null ; then
|
||||||
echo "Upgrading pip..."
|
echo "Upgrading pip..."
|
||||||
python3 -m pip install -U pip
|
python3 -m pip install -U pip
|
||||||
fi
|
fi
|
||||||
python3 -m pip install -r requirements_all.txt
|
|
||||||
|
|
||||||
REQ_STATUS=$?
|
echo "Installing test dependencies..."
|
||||||
|
python3 -m pip install -r requirements_test_all.txt
|
||||||
echo "Installing development dependencies..."
|
|
||||||
python3 -m pip install -r requirements_test.txt
|
|
||||||
|
|
||||||
REQ_DEV_STATUS=$?
|
REQ_DEV_STATUS=$?
|
||||||
|
|
||||||
|
@ -25,7 +25,8 @@ COMMENT_REQUIREMENTS = (
|
|||||||
'python-eq3bt',
|
'python-eq3bt',
|
||||||
'avion',
|
'avion',
|
||||||
'decora',
|
'decora',
|
||||||
'face_recognition'
|
'face_recognition',
|
||||||
|
'blinkt',
|
||||||
)
|
)
|
||||||
|
|
||||||
TEST_REQUIREMENTS = (
|
TEST_REQUIREMENTS = (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user