aioesphomeapi/setup.py

45 lines
1.3 KiB
Python
Raw Normal View History

2018-12-13 21:34:57 +01:00
#!/usr/bin/env python3
"""aioesphomeapi setup script."""
from setuptools import find_packages, setup
2019-11-23 20:37:31 +01:00
VERSION = '2.6.1'
2018-12-13 21:34:57 +01:00
PROJECT_NAME = 'aioesphomeapi'
PROJECT_PACKAGE_NAME = 'aioesphomeapi'
PROJECT_LICENSE = 'MIT'
PROJECT_AUTHOR = 'Otto Winter'
2019-02-11 16:57:26 +01:00
PROJECT_COPYRIGHT = ' 2019, Otto Winter'
PROJECT_URL = 'https://esphome.io/'
2018-12-13 21:34:57 +01:00
PROJECT_EMAIL = 'contact@otto-winter.com'
2019-02-11 16:57:26 +01:00
PROJECT_GITHUB_USERNAME = 'esphome'
2019-01-07 10:52:40 +01:00
PROJECT_GITHUB_REPOSITORY = 'aioesphomeapi'
2018-12-13 21:34:57 +01:00
PYPI_URL = 'https://pypi.python.org/pypi/{}'.format(PROJECT_PACKAGE_NAME)
GITHUB_PATH = '{}/{}'.format(PROJECT_GITHUB_USERNAME, PROJECT_GITHUB_REPOSITORY)
GITHUB_URL = 'https://github.com/{}'.format(GITHUB_PATH)
DOWNLOAD_URL = '{}/archive/{}.zip'.format(GITHUB_URL, VERSION)
REQUIRES = [
'attrs',
2019-03-16 12:51:17 +01:00
# Pin protobuf version to 3.6.1, 3.7 is slightly incompatible with the generated
# api_pb2.py. We could upgrade to 3.7, but that breaks HA installs because
# image_processing.tensorflow pins protobuf to 3.6.1
'protobuf==3.6.1',
2019-02-11 16:56:18 +01:00
'zeroconf>=0.21.3',
2018-12-13 21:34:57 +01:00
]
setup(
name=PROJECT_PACKAGE_NAME,
version=VERSION,
url=PROJECT_URL,
download_url=DOWNLOAD_URL,
author=PROJECT_AUTHOR,
author_email=PROJECT_EMAIL,
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=REQUIRES,
python_requires='>=3.5.3',
)