forked from owagner/modbus2mqtt
-
Notifications
You must be signed in to change notification settings - Fork 28
/
setup.py
36 lines (30 loc) · 874 Bytes
/
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
import re
from setuptools import setup
version = re.search(
'^__version__\s*=\s*"(.*)"',
open('modbus2mqtt/modbus2mqtt.py').read(),
re.M
).group(1)
# for some stupid reason we need restructured text here.
# For now I'll stick with markdown..
#with open("README.md", "rb") as f:
# long_descr = f.read().decode("utf-8")
long_descr = ""
setup(
name = "modbus2mqtt",
packages = ["modbus2mqtt"],
install_requires=[
'paho-mqtt',
'pymodbus',
'serial',
],
entry_points = {
"console_scripts": ['modbus2mqtt = modbus2mqtt.modbus2mqtt:main']
},
version = version,
description = "Bridge from Modbus to MQTT",
long_description = long_descr,
author = "Max Brüggemann",
author_email = "[email protected]",
url = "https://github.com/mbs38/spicierModbus2mqtt",
)