-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
53 lines (47 loc) · 1.55 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
import os
import re
from setuptools import setup, find_packages
def get_version(package):
"""
Return package version as listed in `__version__` in `__init__.py`.
"""
path = os.path.join(os.path.dirname(__file__), package, 'omnikloggerproxy.py')
with open(path, 'rb') as f:
init_py = f.read().decode('utf-8')
return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
with open("README.md", "r", encoding="UTF-8") as fh:
long_description = fh.read()
install_requires = [
'configparser>=3.7.4',
'pyyaml>=5.1',
'requests>=2.21.0',
'paho-mqtt>=1.5.0'
]
setup(
name="omnikdataloggerproxy",
version=get_version('.'),
license="gpl-3.0",
author="Jan Bouwhuis",
author_email="jan@jbsoft.nl",
description="Omnik Data Logger Proxy",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/jbouwh/omnikdataloggerproxy",
packages=find_packages(),
data_files=[('.', [
'iptables_setup_example.sh',
'omnikproxy_example_startup.sh',
'config.yaml_example.txt',
'config.ini_example.txt',
'omnikdataloggerproxy.service'])
],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Topic :: Home Automation',
'Programming Language :: Python :: 3.7',
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
],
install_requires=install_requires,
scripts=['omnikloggerproxy.py'],
)