mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2024-09-21 03:31:05 +02:00
Fix packaging (#79)
This commit is contained in:
parent
59658145e4
commit
996fba8796
37
setup.py
37
setup.py
@ -6,30 +6,29 @@ from setuptools import find_packages, setup
|
|||||||
|
|
||||||
here = os.path.abspath(os.path.dirname(__file__))
|
here = os.path.abspath(os.path.dirname(__file__))
|
||||||
|
|
||||||
with open(os.path.join(here, 'README.rst'), encoding='utf-8') as readme_file:
|
with open(os.path.join(here, "README.rst"), encoding="utf-8") as readme_file:
|
||||||
long_description = readme_file.read()
|
long_description = readme_file.read()
|
||||||
|
|
||||||
|
|
||||||
VERSION = "5.1.0"
|
VERSION = "5.1.0"
|
||||||
PROJECT_NAME = 'aioesphomeapi'
|
PROJECT_NAME = "aioesphomeapi"
|
||||||
PROJECT_PACKAGE_NAME = 'aioesphomeapi'
|
PROJECT_PACKAGE_NAME = "aioesphomeapi"
|
||||||
PROJECT_LICENSE = 'MIT'
|
PROJECT_LICENSE = "MIT"
|
||||||
PROJECT_AUTHOR = 'Otto Winter'
|
PROJECT_AUTHOR = "Otto Winter"
|
||||||
PROJECT_COPYRIGHT = ' 2019-2020, Otto Winter'
|
PROJECT_COPYRIGHT = " 2019-2020, Otto Winter"
|
||||||
PROJECT_URL = 'https://esphome.io/'
|
PROJECT_URL = "https://esphome.io/"
|
||||||
PROJECT_EMAIL = 'esphome@nabucasa.com'
|
PROJECT_EMAIL = "esphome@nabucasa.com"
|
||||||
|
|
||||||
PROJECT_GITHUB_USERNAME = 'esphome'
|
PROJECT_GITHUB_USERNAME = "esphome"
|
||||||
PROJECT_GITHUB_REPOSITORY = 'aioesphomeapi'
|
PROJECT_GITHUB_REPOSITORY = "aioesphomeapi"
|
||||||
|
|
||||||
PYPI_URL = 'https://pypi.python.org/pypi/{}'.format(PROJECT_PACKAGE_NAME)
|
PYPI_URL = "https://pypi.python.org/pypi/{}".format(PROJECT_PACKAGE_NAME)
|
||||||
GITHUB_PATH = '{}/{}'.format(PROJECT_GITHUB_USERNAME,
|
GITHUB_PATH = "{}/{}".format(PROJECT_GITHUB_USERNAME, PROJECT_GITHUB_REPOSITORY)
|
||||||
PROJECT_GITHUB_REPOSITORY)
|
GITHUB_URL = "https://github.com/{}".format(GITHUB_PATH)
|
||||||
GITHUB_URL = 'https://github.com/{}'.format(GITHUB_PATH)
|
|
||||||
|
|
||||||
DOWNLOAD_URL = '{}/archive/{}.zip'.format(GITHUB_URL, VERSION)
|
DOWNLOAD_URL = "{}/archive/{}.zip".format(GITHUB_URL, VERSION)
|
||||||
|
|
||||||
with open(os.path.join(here, 'requirements.txt')) as requirements_txt:
|
with open(os.path.join(here, "requirements.txt")) as requirements_txt:
|
||||||
REQUIRES = requirements_txt.read().splitlines()
|
REQUIRES = requirements_txt.read().splitlines()
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
@ -39,13 +38,13 @@ setup(
|
|||||||
download_url=DOWNLOAD_URL,
|
download_url=DOWNLOAD_URL,
|
||||||
author=PROJECT_AUTHOR,
|
author=PROJECT_AUTHOR,
|
||||||
author_email=PROJECT_EMAIL,
|
author_email=PROJECT_EMAIL,
|
||||||
description='Python API for interacting with ESPHome devices.',
|
description="Python API for interacting with ESPHome devices.",
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
license=PROJECT_LICENSE,
|
license=PROJECT_LICENSE,
|
||||||
packages=find_packages("aioesphomeapi"),
|
packages=find_packages(exclude=["tests", "tests.*"]),
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
install_requires=REQUIRES,
|
install_requires=REQUIRES,
|
||||||
python_requires='>=3.7',
|
python_requires=">=3.7",
|
||||||
test_suite="tests",
|
test_suite="tests",
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user