From 50af0da13f6e94430b90d11c83d279f08228bc4a Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Fri, 15 Feb 2019 10:19:18 +0100 Subject: [PATCH] Add esphomeyaml legacy script --- esphome/const.py | 2 +- esphome/legacy.py | 13 +++++++++++++ setup.py | 12 +++++++----- 3 files changed, 21 insertions(+), 6 deletions(-) create mode 100644 esphome/legacy.py diff --git a/esphome/const.py b/esphome/const.py index befb8a2b08..3330327e37 100644 --- a/esphome/const.py +++ b/esphome/const.py @@ -1,7 +1,7 @@ """Constants used by esphome.""" MAJOR_VERSION = 1 -MINOR_VERSION = 10 +MINOR_VERSION = 11 PATCH_VERSION = '0-dev' __short_version__ = '{}.{}'.format(MAJOR_VERSION, MINOR_VERSION) __version__ = '{}.{}'.format(__short_version__, PATCH_VERSION) diff --git a/esphome/legacy.py b/esphome/legacy.py new file mode 100644 index 0000000000..0e19545d68 --- /dev/null +++ b/esphome/legacy.py @@ -0,0 +1,13 @@ +from __future__ import print_function +import sys + + +def main(): + print("The esphomeyaml command has been renamed to esphome.") + print("") + print("$ esphome {}".format(' '.join(sys.argv[1:]))) + return 1 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/setup.py b/setup.py index 6fba9017ab..676142b0ba 100755 --- a/setup.py +++ b/setup.py @@ -8,10 +8,10 @@ from esphome import const PROJECT_NAME = 'esphome' PROJECT_PACKAGE_NAME = 'esphome' PROJECT_LICENSE = 'MIT' -PROJECT_AUTHOR = 'Otto Winter' -PROJECT_COPYRIGHT = '2018, Otto Winter' +PROJECT_AUTHOR = 'ESPHome' +PROJECT_COPYRIGHT = '2019, ESPHome' PROJECT_URL = 'https://esphome.io/' -PROJECT_EMAIL = 'contact@otto-winter.com' +PROJECT_EMAIL = 'contact@esphome.io' PROJECT_GITHUB_USERNAME = 'esphome' PROJECT_GITHUB_REPOSITORY = 'esphome' @@ -50,7 +50,8 @@ CLASSIFIERS = [ 'Intended Audience :: End Users/Desktop', 'License :: OSI Approved :: MIT License', 'Programming Language :: C++', - 'Programming Language :: Python :: 2 :: Only', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 3', 'Topic :: Home Automation', ] @@ -72,7 +73,8 @@ setup( keywords=['home', 'automation'], entry_points={ 'console_scripts': [ - 'esphome = esphome.__main__:main' + 'esphome = esphome.__main__:main', + 'esphomeyaml = esphome.legacy:main' ] }, packages=find_packages()