aioesphomeapi/setup.py

55 lines
1.6 KiB
Python

#!/usr/bin/env python3
"""aioesphomeapi setup script."""
import os
from setuptools import find_packages, setup
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst'), encoding='utf-8') as readme_file:
long_description = readme_file.read()
VERSION = '2.6.1'
PROJECT_NAME = 'aioesphomeapi'
PROJECT_PACKAGE_NAME = 'aioesphomeapi'
PROJECT_LICENSE = 'MIT'
PROJECT_AUTHOR = 'Otto Winter'
PROJECT_COPYRIGHT = ' 2019-2020, Otto Winter'
PROJECT_URL = 'https://esphome.io/'
PROJECT_EMAIL = 'contact@otto-winter.com'
PROJECT_GITHUB_USERNAME = 'esphome'
PROJECT_GITHUB_REPOSITORY = 'aioesphomeapi'
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',
# 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',
'zeroconf>=0.21.3',
]
setup(
name=PROJECT_PACKAGE_NAME,
version=VERSION,
url=PROJECT_URL,
download_url=DOWNLOAD_URL,
author=PROJECT_AUTHOR,
author_email=PROJECT_EMAIL,
description='Python API for interacting with ESPHome devices.',
long_description=long_description,
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=REQUIRES,
python_requires='>=3.5.3',
)