setup.py 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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='energy_meter_logger',
  12. version=0.1,
  13. description='Read Energy Meter data using RS485 Modbus '+
  14. 'and store in local database.',
  15. long_description=readme,
  16. url='https://github.com/samuelphy/energy-meter-logger',
  17. download_url='',
  18. author='Samuel Vestlin',
  19. author_email='samuel@elphy.se',
  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 :: 2.7',
  27. 'Programming Language :: Python :: 3'
  28. ],
  29. keywords='Energy Meter RS485 Modbus',
  30. install_requires=[]+(['pyserial','minimalmodbus', 'influxdb', 'pyyaml'] if "linux" in sys.platform else []),
  31. license='MIT',
  32. packages=[],
  33. include_package_data=True,
  34. tests_require=[],
  35. test_suite='',
  36. zip_safe=True)