-
Notifications
You must be signed in to change notification settings - Fork 181
/
setup.py
50 lines (47 loc) · 1.64 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
from setuptools import setup
import os
import re
def find_version():
with open('tasmotizer.py', 'r') as version_file:
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file.read(), re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
if os.name == "nt":
scripts = None
entry_points = {
{
'console_scripts': ['tasmotizer=tasmotizer:main'],
}
}
else:
scripts = ['tasmotizer.py']
entry_points = None
setup(
name='tasmotizer',
version=find_version(),
url='https://github.com/tasmota/tasmotizer',
py_modules=['tasmotizer', 'gui', 'tasmotizer_esptool', 'banner', 'utils'],
license='GPLv3',
author='jziolkowski',
author_email='jacek@ziolkowscy.com',
description='The time has come to... Tasmotize!',
long_description="Tasmotizer is a dedicated flashing tool for <a href=https://github.com/arendst/Tasmota>Tasmota</>, featuring automatic firmware backup, downloading release and development bins, and device configuration.",
python_requires='>=3.6',
install_requires=[
"pyserial>=3.0",
"PyQt5>=5.10"
],
entry_points=entry_points,
scripts=scripts,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
],
project_urls={
"Issue Tracker": "https://github.com/tasmota/tasmotizer/issues",
"Documentation": "https://github.com/tasmota/tasmotizer/wiki",
},
)