2018-12-13 21:34:57 +01:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
"""aioesphomeapi setup script."""
|
2020-06-19 21:42:32 +02:00
|
|
|
import os
|
|
|
|
|
2018-12-13 21:34:57 +01:00
|
|
|
from setuptools import find_packages, setup
|
|
|
|
|
2020-06-19 21:42:32 +02:00
|
|
|
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()
|
|
|
|
|
|
|
|
|
2021-02-15 15:59:25 +01:00
|
|
|
VERSION = '2.6.5'
|
2018-12-13 21:34:57 +01:00
|
|
|
PROJECT_NAME = 'aioesphomeapi'
|
|
|
|
PROJECT_PACKAGE_NAME = 'aioesphomeapi'
|
|
|
|
PROJECT_LICENSE = 'MIT'
|
|
|
|
PROJECT_AUTHOR = 'Otto Winter'
|
2020-06-19 21:42:32 +02:00
|
|
|
PROJECT_COPYRIGHT = ' 2019-2020, Otto Winter'
|
2019-02-11 16:57:26 +01:00
|
|
|
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)
|
2020-08-22 18:12:28 +02:00
|
|
|
GITHUB_PATH = '{}/{}'.format(PROJECT_GITHUB_USERNAME,
|
|
|
|
PROJECT_GITHUB_REPOSITORY)
|
2018-12-13 21:34:57 +01:00
|
|
|
GITHUB_URL = 'https://github.com/{}'.format(GITHUB_PATH)
|
|
|
|
|
|
|
|
DOWNLOAD_URL = '{}/archive/{}.zip'.format(GITHUB_URL, VERSION)
|
|
|
|
|
2020-07-15 13:41:55 +02:00
|
|
|
with open(os.path.join(here, 'requirements.txt')) as requirements_txt:
|
|
|
|
REQUIRES = requirements_txt.read().splitlines()
|
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,
|
2020-06-19 21:42:32 +02:00
|
|
|
description='Python API for interacting with ESPHome devices.',
|
|
|
|
long_description=long_description,
|
2020-06-19 13:22:13 +02:00
|
|
|
license=PROJECT_LICENSE,
|
2018-12-13 21:34:57 +01:00
|
|
|
packages=find_packages(),
|
|
|
|
include_package_data=True,
|
|
|
|
zip_safe=False,
|
|
|
|
install_requires=REQUIRES,
|
|
|
|
python_requires='>=3.5.3',
|
|
|
|
)
|