mirror of
https://github.com/home-assistant/core.git
synced 2025-12-25 05:26:47 +00:00
* Remove default zwave config path PYOZW now has much more comprehensive default handling for the config path (in src-lib/libopenzwave/libopenzwave.pyx:getConfig()). It looks in the same place we were looking, plus _many_ more. It will certainly do a much better job of finding the config files than we will (and will be updated as the library is changed, so we don't end up chasing it). The getConfig() method has been there for a while, but was subsntially improved recently. This change simply leaves the config_path as None if it is not specified, which will trigger the default handling in PYOZW. * Install python-openzwave from PyPI As of version 0.4, python-openzwave supports installation from PyPI, which means we can use our 'normal' dependency management tooling to install it. Yay. This uses the default 'embed' build (which goes and downloads statically sources to avoid having to compile anything locally). Check out the python-openzwave readme for more details. * Add python-openzwave deps to .travis.yml Python OpenZwave require the libudev headers to build. This adds the libudev-dev package to Travis runs via the 'apt' addon for Travis. Thanks to @MartinHjelmare for this fix. * Update docker build for PyPI openzwave Now that PYOZW can be install from PyPI, the docker image build process can be simplified to remove the explicit compilation of PYOZW.
51 lines
1.4 KiB
Docker
51 lines
1.4 KiB
Docker
# Dockerfile for development
|
|
# Based on the production Dockerfile, but with development additions.
|
|
# Keep this file as close as possible to the production Dockerfile, so the environments match.
|
|
|
|
FROM python:3.5
|
|
MAINTAINER Paulus Schoutsen <Paulus@PaulusSchoutsen.nl>
|
|
|
|
# Uncomment any of the following lines to disable the installation.
|
|
#ENV INSTALL_TELLSTICK no
|
|
#ENV INSTALL_OPENALPR no
|
|
#ENV INSTALL_FFMPEG no
|
|
#ENV INSTALL_LIBCEC no
|
|
#ENV INSTALL_PHANTOMJS no
|
|
#ENV INSTALL_COAP_CLIENT no
|
|
|
|
VOLUME /config
|
|
|
|
RUN mkdir -p /usr/src/app
|
|
WORKDIR /usr/src/app
|
|
|
|
# Copy build scripts
|
|
COPY virtualization/Docker/ virtualization/Docker/
|
|
RUN virtualization/Docker/setup_docker_prereqs
|
|
|
|
# Install hass component dependencies
|
|
COPY requirements_all.txt requirements_all.txt
|
|
RUN pip3 install --no-cache-dir -r requirements_all.txt && \
|
|
pip3 install --no-cache-dir mysqlclient psycopg2 uvloop cchardet
|
|
|
|
# BEGIN: Development additions
|
|
|
|
# Install nodejs
|
|
RUN curl -sL https://deb.nodesource.com/setup_7.x | bash - && \
|
|
apt-get install -y nodejs
|
|
|
|
# Install tox
|
|
RUN pip3 install --no-cache-dir tox
|
|
|
|
# Copy over everything required to run tox
|
|
COPY requirements_test.txt setup.cfg setup.py tox.ini ./
|
|
COPY homeassistant/const.py homeassistant/const.py
|
|
|
|
# Prefetch dependencies for tox
|
|
RUN tox -e py35 --notest
|
|
|
|
# END: Development additions
|
|
|
|
# Copy source
|
|
COPY . .
|
|
|
|
CMD [ "python", "-m", "homeassistant", "--config", "/config" ] |