forked from samuelphy/energy-meter-logger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
38 lines (36 loc) · 1.28 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
import sys
from setuptools import setup
try:
import pypandoc
readme = pypandoc.convert('README.md', 'rst')
readme = readme.replace("\r", "")
except ImportError:
import io
with io.open('README.md', encoding="utf-8") as f:
readme = f.read()
setup(name='energy_meter_logger',
version=0.1,
description='Read Energy Meter data using RS485 Modbus '+
'and store in local database.',
long_description=readme,
url='https://github.com/samuelphy/energy-meter-logger',
download_url='',
author='Samuel Vestlin',
author_email='[email protected]',
platforms='Raspberry Pi',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: MIT License',
'Operating System :: Raspbian',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3'
],
keywords='Energy Meter RS485 Modbus',
install_requires=[]+(['pyserial==3.4', 'minimalmodbus==1.0.2', 'influxdb', 'pyyaml==5.3.1', 'six==1.10', 'requests==2.17', 'certifi==2020.4.5', 'msgpack==1.0.2'] if "linux" in sys.platform else []),
license='MIT',
packages=[],
include_package_data=True,
tests_require=[],
test_suite='',
zip_safe=True)