Make tzlocal a requirement

This commit is contained in:
Otto Winter 2019-01-06 09:48:03 +01:00
parent 94cb7bf6bd
commit 9bce35e335
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E
7 changed files with 8 additions and 15 deletions

View File

@ -6,25 +6,25 @@ matrix:
include: include:
- python: "2.7" - python: "2.7"
env: TARGET=Lint2.7 env: TARGET=Lint2.7
install: pip install -e . && pip install flake8==3.6.0 pylint==1.9.4 tzlocal pillow install: pip install -e . && pip install flake8==3.6.0 pylint==1.9.4 pillow
script: script:
- flake8 esphomeyaml - flake8 esphomeyaml
- pylint esphomeyaml - pylint esphomeyaml
- python: "3.5.3" - python: "3.5.3"
env: TARGET=Lint3.5 env: TARGET=Lint3.5
install: pip install -U https://github.com/platformio/platformio-core/archive/develop.zip && pip install -e . && pip install flake8==3.6.0 pylint==2.2.2 tzlocal pillow install: pip install -U https://github.com/platformio/platformio-core/archive/develop.zip && pip install -e . && pip install flake8==3.6.0 pylint==2.2.2 pillow
script: script:
- flake8 esphomeyaml - flake8 esphomeyaml
- pylint esphomeyaml - pylint esphomeyaml
- python: "2.7" - python: "2.7"
env: TARGET=Test2.7 env: TARGET=Test2.7
install: pip install -e . && pip install flake8==3.6.0 pylint==1.9.4 tzlocal pillow install: pip install -e . && pip install flake8==3.6.0 pylint==1.9.4 pillow
script: script:
- esphomeyaml tests/test1.yaml compile - esphomeyaml tests/test1.yaml compile
- esphomeyaml tests/test2.yaml compile - esphomeyaml tests/test2.yaml compile
- python: "3.5.3" - python: "3.5.3"
env: TARGET=Test3.5 env: TARGET=Test3.5
install: pip install -U https://github.com/platformio/platformio-core/archive/develop.zip && pip install -e . && pip install flake8==3.6.0 pylint==2.2.2 tzlocal pillow install: pip install -U https://github.com/platformio/platformio-core/archive/develop.zip && pip install -e . && pip install flake8==3.6.0 pylint==2.2.2 pillow
script: script:
- esphomeyaml tests/test1.yaml compile - esphomeyaml tests/test1.yaml compile
- esphomeyaml tests/test2.yaml compile - esphomeyaml tests/test2.yaml compile

View File

@ -21,8 +21,7 @@ COPY docker/platformio.ini /pio/platformio.ini
RUN platformio run -d /pio; rm -rf /pio RUN platformio run -d /pio; rm -rf /pio
COPY . . COPY . .
RUN pip install --no-cache-dir --no-binary :all: -e . && \ RUN pip install --no-cache-dir --no-binary :all: -e .
pip install --no-cache-dir --no-binary :all: tzlocal
WORKDIR /config WORKDIR /config
ENTRYPOINT ["esphomeyaml"] ENTRYPOINT ["esphomeyaml"]

View File

@ -33,9 +33,6 @@ RUN \
\ \
&& pip2 install --no-cache-dir --no-binary :all: -e /opt/esphomeyaml \ && pip2 install --no-cache-dir --no-binary :all: -e /opt/esphomeyaml \
\ \
# tzlocal for automatic timezone detection
&& pip2 install --no-cache-dir --no-binary :all: tzlocal \
\
# Change some platformio settings # Change some platformio settings
&& platformio settings set enable_telemetry No \ && platformio settings set enable_telemetry No \
&& platformio settings set check_libraries_interval 1000000 \ && platformio settings set check_libraries_interval 1000000 \

View File

@ -3,4 +3,4 @@ FROM python:2.7
COPY requirements.txt /requirements.txt COPY requirements.txt /requirements.txt
RUN pip install -r /requirements.txt && \ RUN pip install -r /requirements.txt && \
pip install flake8==3.6.0 pylint==1.9.4 tzlocal pillow pip install flake8==3.6.0 pylint==1.9.4 pillow

View File

@ -18,5 +18,4 @@ RUN platformio run -d /pio; rm -rf /pio
COPY requirements.txt /requirements.txt COPY requirements.txt /requirements.txt
RUN pip install --no-cache-dir -r /requirements.txt && \ RUN pip install --no-cache-dir -r /requirements.txt
pip install --no-cache-dir tzlocal

View File

@ -31,9 +31,6 @@ RUN \
\ \
&& pip2 install --no-cache-dir --no-binary :all: https://github.com/OttoWinter/esphomeyaml/archive/dev.zip \ && pip2 install --no-cache-dir --no-binary :all: https://github.com/OttoWinter/esphomeyaml/archive/dev.zip \
\ \
# tzlocal for automatic timezone detection
&& pip2 install --no-cache-dir --no-binary :all: tzlocal \
\
# Change some platformio settings # Change some platformio settings
&& platformio settings set enable_telemetry No \ && platformio settings set enable_telemetry No \
&& platformio settings set check_libraries_interval 1000000 \ && platformio settings set check_libraries_interval 1000000 \

View File

@ -31,6 +31,7 @@ REQUIRES = [
'esptool>=2.3.1', 'esptool>=2.3.1',
'typing>=3.0.0', 'typing>=3.0.0',
'protobuf>=3.4', 'protobuf>=3.4',
'tzlocal>=1.4',
] ]
CLASSIFIERS = [ CLASSIFIERS = [