Add esphomeyaml legacy script

This commit is contained in:
Otto Winter 2019-02-15 10:19:18 +01:00
parent a8d87a1fee
commit 50af0da13f
No known key found for this signature in database
GPG key ID: DB66C0BE6013F97E
3 changed files with 21 additions and 6 deletions

View file

@ -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)

13
esphome/legacy.py Normal file
View file

@ -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())

View file

@ -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()