forked from jziolkowski/tdm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
59 lines (53 loc) · 1.65 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
57
58
59
import os
import re
from setuptools import setup
with open("README.md", "r") as rme:
readme = rme.read()
with open("CHANGELOG.md", "r") as clog:
changelog = clog.read()
long_description = "{}\n\n# Changelog\n{}".format(readme, changelog)
if os.name == "nt":
scripts = None
entry_points = {
{
'console_scripts': ['tdmgr=tdmgr:main'],
}
}
else:
scripts = ['tdmgr.py']
entry_points = None
def get_version():
with open("tdmgr.py", "r") as tdmgr:
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
tdmgr.read(), re.M)
return version_match.group(1)
setup(
name='tdmgr',
version=get_version(),
url='https://github.com/jziolkowski/tdm',
license='GPLv3',
author='jziolkowski',
author_email='[email protected]',
description='Tasmota Device Manager is able to find, monitor and do magic things. The easy way. Like a Superhero.',
long_description=long_description,
long_description_content_type='text/markdown',
python_requires='>=3.6',
install_requires=[
"paho_mqtt>=1.4",
"PyQt5==5.14.2"
],
packages=['GUI', 'Util'],
entry_points=entry_points,
scripts=scripts,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Topic :: Home Automation",
"Development Status :: 4 - Beta"
],
project_urls={
"Issue Tracker": "https://github.com/jziolkowski/tdm/issues",
"Documentation": "https://github.com/jziolkowski/tdm/wiki",
},
)