mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 07:28:10 +01:00
Mark python 3.5 support deprecated (#849)
* Mark python 3.5 unsupported Fixes https://github.com/esphome/issues/issues/831 * Update .travis.yml * Update typing dep
This commit is contained in:
parent
6297395018
commit
bfea6ca79b
3 changed files with 9 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
||||||
sudo: false
|
sudo: false
|
||||||
language: python
|
language: python
|
||||||
python: '3.5'
|
python: '3.6'
|
||||||
install: script/setup
|
install: script/setup
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
|
@ -15,8 +15,8 @@ matrix:
|
||||||
- script/ci-custom.py
|
- script/ci-custom.py
|
||||||
- flake8 esphome
|
- flake8 esphome
|
||||||
- pylint esphome
|
- pylint esphome
|
||||||
- python: "3.5"
|
- python: "3.6"
|
||||||
env: TARGET=Test3.5
|
env: TARGET=Test3.6
|
||||||
script:
|
script:
|
||||||
- esphome tests/test1.yaml compile
|
- esphome tests/test1.yaml compile
|
||||||
- esphome tests/test2.yaml compile
|
- esphome tests/test2.yaml compile
|
||||||
|
|
|
@ -14,7 +14,7 @@ from esphome.const import CONF_BAUD_RATE, CONF_BROKER, CONF_LOGGER, CONF_OTA, \
|
||||||
CONF_PASSWORD, CONF_PORT, CONF_ESPHOME, CONF_PLATFORMIO_OPTIONS
|
CONF_PASSWORD, CONF_PORT, CONF_ESPHOME, CONF_PLATFORMIO_OPTIONS
|
||||||
from esphome.core import CORE, EsphomeError, coroutine, coroutine_with_priority
|
from esphome.core import CORE, EsphomeError, coroutine, coroutine_with_priority
|
||||||
from esphome.helpers import color, indent
|
from esphome.helpers import color, indent
|
||||||
from esphome.py_compat import IS_PY2, safe_input
|
from esphome.py_compat import IS_PY2, safe_input, IS_PY3
|
||||||
from esphome.util import run_external_command, run_external_process, safe_print, list_yaml_files
|
from esphome.util import run_external_command, run_external_process, safe_print, list_yaml_files
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
@ -514,6 +514,10 @@ def run_esphome(argv):
|
||||||
_LOGGER.warning("You're using ESPHome with python 2. Support for python 2 is deprecated "
|
_LOGGER.warning("You're using ESPHome with python 2. Support for python 2 is deprecated "
|
||||||
"and will be removed in 1.15.0. Please reinstall ESPHome with python 3.6 "
|
"and will be removed in 1.15.0. Please reinstall ESPHome with python 3.6 "
|
||||||
"or higher.")
|
"or higher.")
|
||||||
|
elif IS_PY3 and sys.version_info < (3, 6, 0):
|
||||||
|
_LOGGER.warning("You're using ESPHome with python 3.5. Support for python 3.5 is "
|
||||||
|
"deprecated and will be removed in 1.15.0. Please reinstall ESPHome with "
|
||||||
|
"python 3.6 or higher.")
|
||||||
|
|
||||||
if args.command in PRE_CONFIG_ACTIONS:
|
if args.command in PRE_CONFIG_ACTIONS:
|
||||||
try:
|
try:
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -28,7 +28,7 @@ REQUIRES = [
|
||||||
'paho-mqtt==1.4.0',
|
'paho-mqtt==1.4.0',
|
||||||
'colorlog==4.0.2',
|
'colorlog==4.0.2',
|
||||||
'tornado==5.1.1',
|
'tornado==5.1.1',
|
||||||
'typing>=3.6.6;python_version<"3.5"',
|
'typing>=3.6.6;python_version<"3.6"',
|
||||||
'protobuf==3.10.0',
|
'protobuf==3.10.0',
|
||||||
'tzlocal==2.0.0',
|
'tzlocal==2.0.0',
|
||||||
'pytz==2019.3',
|
'pytz==2019.3',
|
||||||
|
|
Loading…
Reference in a new issue