1
0
mirror of https://github.com/esphome/esphome.git synced 2024-10-06 10:50:58 +01:00

Raise minimum python version to 3.7 (#1673)

This commit is contained in:
Otto Winter 2021-04-08 13:57:29 +02:00 committed by GitHub
parent 7964b724ed
commit d92c8ccadf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -638,10 +638,10 @@ def run_esphome(argv):
_LOGGER.error("Missing configuration parameter, see esphome --help.") _LOGGER.error("Missing configuration parameter, see esphome --help.")
return 1 return 1
if sys.version_info < (3, 6, 0): if sys.version_info < (3, 7, 0):
_LOGGER.error( _LOGGER.error(
"You're running ESPHome with Python <3.6. ESPHome is no longer compatible " "You're running ESPHome with Python <3.7. ESPHome is no longer compatible "
"with this Python version. Please reinstall ESPHome with Python 3.6+" "with this Python version. Please reinstall ESPHome with Python 3.7+"
) )
return 1 return 1

View File

@ -74,7 +74,7 @@ setup(
zip_safe=False, zip_safe=False,
platforms="any", platforms="any",
test_suite="tests", test_suite="tests",
python_requires=">=3.6,<4.0", python_requires=">=3.7,<4.0",
install_requires=REQUIRES, install_requires=REQUIRES,
keywords=["home", "automation"], keywords=["home", "automation"],
entry_points={"console_scripts": ["esphome = esphome.__main__:main"]}, entry_points={"console_scripts": ["esphome = esphome.__main__:main"]},