mirror of
https://github.com/esphome/esphome-flasher.git
synced 2024-11-16 10:55:31 +01:00
60 lines
1.7 KiB
Python
60 lines
1.7 KiB
Python
#!/usr/bin/env python
|
|
"""esphomeflasher setup script."""
|
|
import os
|
|
|
|
from setuptools import setup, find_packages
|
|
|
|
from esphomeflasher import const
|
|
|
|
PROJECT_NAME = 'esphomeflasher'
|
|
PROJECT_PACKAGE_NAME = 'esphomeflasher'
|
|
PROJECT_LICENSE = 'MIT'
|
|
PROJECT_AUTHOR = 'ESPHome'
|
|
PROJECT_COPYRIGHT = '2021, ESPHome'
|
|
PROJECT_URL = 'https://esphome.io/guides/faq.html'
|
|
PROJECT_EMAIL = 'contact@esphome.io'
|
|
|
|
PROJECT_GITHUB_USERNAME = 'esphome'
|
|
PROJECT_GITHUB_REPOSITORY = 'esphome-flasher'
|
|
|
|
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, const.__version__)
|
|
|
|
here = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
with open(os.path.join(here, 'requirements.txt')) as requirements_txt:
|
|
REQUIRES = requirements_txt.read().splitlines()
|
|
|
|
with open(os.path.join(here, 'README.md')) as readme:
|
|
LONG_DESCRIPTION = readme.read()
|
|
|
|
|
|
setup(
|
|
name=PROJECT_PACKAGE_NAME,
|
|
version=const.__version__,
|
|
license=PROJECT_LICENSE,
|
|
url=GITHUB_URL,
|
|
download_url=DOWNLOAD_URL,
|
|
author=PROJECT_AUTHOR,
|
|
author_email=PROJECT_EMAIL,
|
|
description="ESP8266/ESP32 firmware flasher for ESPHome",
|
|
include_package_data=True,
|
|
zip_safe=False,
|
|
platforms='any',
|
|
test_suite='tests',
|
|
python_requires='>=3.7,<4.0',
|
|
install_requires=REQUIRES,
|
|
long_description=LONG_DESCRIPTION,
|
|
long_description_content_type='text/markdown',
|
|
keywords=['home', 'automation'],
|
|
entry_points={
|
|
'console_scripts': [
|
|
'esphomeflasher = esphomeflasher.__main__:main'
|
|
]
|
|
},
|
|
packages=find_packages(include="esphomerelease.*")
|
|
)
|