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
pull/7557/head
Paulus Schoutsen 2017-05-11 19:20:23 -07:00 committed by GitHub
parent 0e246059f9
commit 76675a54f8
4 changed files with 8 additions and 12 deletions

View File

@ -29,6 +29,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
def setup_platform(hass, config, add_devices, discovery_info=None):
"""Set up the Blinkt Light platform."""
# pylint: disable=import-error
import blinkt
# ensure that the lights are off when exiting

View File

@ -93,7 +93,7 @@ blinkpy==0.5.2
blinkstick==1.1.8
# homeassistant.components.light.blinkt
blinkt==0.1.0
# blinkt==0.1.0
# homeassistant.components.sensor.bitcoin
blockchain==1.3.3

View File

@ -6,21 +6,15 @@ set -e
cd "$(dirname "$0")/.."
echo "Installing dependencies..."
# Requirements_all.txt states minimum pip version as 7.0.0 however,
# 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.
# Some requirements use parameter --only-binary only available
# in pip 7+. Upgrade if necessary.
if ! python3 -c 'import pkg_resources ; pkg_resources.require(["pip>=7.0.0"])' 2>/dev/null ; then
echo "Upgrading pip..."
python3 -m pip install -U pip
fi
python3 -m pip install -r requirements_all.txt
REQ_STATUS=$?
echo "Installing development dependencies..."
python3 -m pip install -r requirements_test.txt
echo "Installing test dependencies..."
python3 -m pip install -r requirements_test_all.txt
REQ_DEV_STATUS=$?

View File

@ -25,7 +25,8 @@ COMMENT_REQUIREMENTS = (
'python-eq3bt',
'avion',
'decora',
'face_recognition'
'face_recognition',
'blinkt',
)
TEST_REQUIREMENTS = (