forked from esphome/esphome
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make compatible with python 3 (esphome#281)
* Make compatible with python 3 * Update travis * Env * Fix typo * Fix install correct platformio * Lint * Fix build flags * Lint * Upgrade pylint * Lint
- Loading branch information
1 parent
5db70be
commit 22fd4ec
Showing
39 changed files
with
249 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,30 @@ | ||
sudo: false | ||
language: python | ||
python: | ||
- "2.7" | ||
jobs: | ||
|
||
matrix: | ||
fast_finish: true | ||
include: | ||
- name: "Lint" | ||
install: | ||
- pip install -r requirements.txt | ||
- pip install flake8==3.5.0 pylint==1.9.3 tzlocal pillow | ||
- python: "2.7" | ||
env: TARGET=Lint2.7 | ||
install: pip install -e . && pip install flake8==3.6.0 pylint==1.9.4 tzlocal pillow | ||
script: | ||
- flake8 esphomeyaml | ||
- pylint esphomeyaml | ||
- name: "Test" | ||
install: | ||
- pip install -e . | ||
- pip install tzlocal pillow | ||
- python: "3.5.3" | ||
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 | ||
script: | ||
- flake8 esphomeyaml | ||
- pylint esphomeyaml | ||
- python: "2.7" | ||
env: TARGET=Test2.7 | ||
install: pip install -e . && pip install flake8==3.6.0 pylint==1.9.4 tzlocal pillow | ||
script: | ||
- esphomeyaml tests/test1.yaml compile | ||
- esphomeyaml tests/test2.yaml compile | ||
- python: "3.5.3" | ||
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 | ||
script: | ||
- esphomeyaml tests/test1.yaml compile | ||
- esphomeyaml tests/test2.yaml compile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ def to_code(config): | |
def lib_deps(config): | ||
if CORE.is_esp32: | ||
return '[email protected]' | ||
elif CORE.is_esp8266: | ||
if CORE.is_esp8266: | ||
return '[email protected]' | ||
raise NotImplementedError | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.