-
Notifications
You must be signed in to change notification settings - Fork 24
/
setup.py
56 lines (46 loc) · 1.63 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/usr/bin/env python
"""esp_flasher setup script."""
import os
from setuptools import setup, find_packages
from esp_flasher import const
PROJECT_NAME = 'ESP_Flasher'
PROJECT_PACKAGE_NAME = 'esp_flasher'
PROJECT_LICENSE = 'MIT'
PROJECT_AUTHOR = 'Jason2866'
PROJECT_COPYRIGHT = '2023, Jason2866'
PROJECT_URL = 'https://github.com/Jason2866/ESP_Flasher'
PROJECT_EMAIL = '[email protected]'
PROJECT_GITHUB_USERNAME = 'Jason2866'
PROJECT_GITHUB_REPOSITORY = 'ESP_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)
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,
author=PROJECT_AUTHOR,
author_email=PROJECT_EMAIL,
description="ESP8266/ESP32 Tasmota firmware flasher for ESP",
include_package_data=True,
zip_safe=False,
platforms='any',
test_suite='tests',
python_requires='>=3.8,<4.0',
install_requires=REQUIRES,
long_description=LONG_DESCRIPTION,
long_description_content_type='text/markdown',
keywords=['home', 'automation'],
entry_points={
'console_scripts': [
'esp_flasher = esp_flasher.__main__:main'
]
},
packages=find_packages(include="esprelease.*")
)