mirror of
https://github.com/esphome/esphome.git
synced 2024-11-29 10:14:13 +01:00
Add esphomeyaml legacy script
This commit is contained in:
parent
a8d87a1fee
commit
50af0da13f
3 changed files with 21 additions and 6 deletions
|
@ -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
13
esphome/legacy.py
Normal 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())
|
12
setup.py
12
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()
|
||||
|
|
Loading…
Reference in a new issue