setup.py 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import sys
  2. from setuptools import setup
  3. try:
  4. import pypandoc
  5. readme = pypandoc.convert('README.md', 'rst')
  6. readme = readme.replace("\r", "")
  7. except ImportError:
  8. import io
  9. with io.open('README.md', encoding="utf-8") as f:
  10. readme = f.read()
  11. setup(name='ModbusLog',
  12. version=0.1,
  13. description='Read Energy Meter data using RS485 Modbus, '+
  14. 'store in local InfluxDB database and publish via MQTT.',
  15. long_description=readme,
  16. url='https://github.com/Flo-Kra/ModbusLogMQTT',
  17. download_url='',
  18. author='Florian Krauter',
  19. author_email='florian@krauter.at',
  20. platforms='Raspberry Pi',
  21. classifiers=[
  22. 'Development Status :: 4 - Beta',
  23. 'Intended Audience :: Developers',
  24. 'License :: MIT License',
  25. 'Operating System :: Raspbian',
  26. 'Programming Language :: Python :: 3'
  27. ],
  28. keywords='Energy Meter RS485 Modbus SD120 SDM630 InfluxDB',
  29. install_requires=[]+(['pyserial','minimalmodbus', 'influxdb', 'pyyaml', 'paho-mqtt', ] if "linux" in sys.platform else []),
  30. license='MIT',
  31. packages=[],
  32. include_package_data=True,
  33. tests_require=[],
  34. test_suite='',
  35. zip_safe=True)