From d92c8ccadf0bcf30db550bb94838c96bbe101c9c Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Thu, 8 Apr 2021 13:57:29 +0200 Subject: [PATCH] Raise minimum python version to 3.7 (#1673) --- esphome/__main__.py | 6 +++--- setup.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/esphome/__main__.py b/esphome/__main__.py index 20cb44d11..a41fce56d 100644 --- a/esphome/__main__.py +++ b/esphome/__main__.py @@ -638,10 +638,10 @@ def run_esphome(argv): _LOGGER.error("Missing configuration parameter, see esphome --help.") return 1 - if sys.version_info < (3, 6, 0): + if sys.version_info < (3, 7, 0): _LOGGER.error( - "You're running ESPHome with Python <3.6. ESPHome is no longer compatible " - "with this Python version. Please reinstall ESPHome with Python 3.6+" + "You're running ESPHome with Python <3.7. ESPHome is no longer compatible " + "with this Python version. Please reinstall ESPHome with Python 3.7+" ) return 1 diff --git a/setup.py b/setup.py index 3b4b77d61..6e4d4b06b 100755 --- a/setup.py +++ b/setup.py @@ -74,7 +74,7 @@ setup( zip_safe=False, platforms="any", test_suite="tests", - python_requires=">=3.6,<4.0", + python_requires=">=3.7,<4.0", install_requires=REQUIRES, keywords=["home", "automation"], entry_points={"console_scripts": ["esphome = esphome.__main__:main"]},