-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
61 lines (54 loc) · 1.49 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
60
61
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @author: Tomas Vitvar, https://vitvar.com, [email protected]
import codecs
import os
import re
import sys
import argparse
import glob
from setuptools import find_packages
from setuptools import setup
# read file content
def read(*parts):
path = os.path.join(os.path.dirname(__file__), *parts)
with codecs.open(path, encoding='utf-8') as fobj:
return fobj.read()
# Read the version number from __init__.py
here = os.path.abspath(os.path.dirname(__file__))
version_file = os.path.join(here, 'ja2mqtt', '__init__.py')
exec(open(version_file).read())
# setup main
# required modules
install_requires = [
'click>=8.0.4',
'Jinja2>=3.0.3',
'paho-mqtt>=1.6.1',
'pyserial>=3.5',
'PyYAML>=6.0',
'jsonschema>=4.0.0',
'pytz>=2023.3'
]
setup(
name='ja2mqtt',
version=__version__,
description='Jablotron MQTT bridge',
long_description=read('README-pypi.text'),
py_modules=['ja2mqtt'],
author='Tomas Vitvar',
author_email='[email protected]',
packages=find_packages(exclude=['tests.*', 'tests']),
include_package_data=True,
install_requires=install_requires,
python_requires='>=3.6.0',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3.7',
],
entry_points='''
[console_scripts]
ja2mqtt=ja2mqtt.commands.ja2mqtt:ja2mqtt
''',
)