import os
from setuptools import setup

project_dir = os.path.abspath(os.path.dirname(__file__))

long_descriptions = []
for rst in ('README.rst', 'LICENSE.rst'):
    with open(os.path.join(project_dir, rst), 'r') as f:
        long_descriptions.append(f.read())

setup(name='iotrelay-tempodb',
      version='1.0.0',
      description='TempoDB handler module for iotrelay',
      long_description='\n\n'.join(long_descriptions),
      author='Emmanuel Levijarvi',
      author_email='emansl@gmail.com',
      url='https://github.com/eman/iotrelay-tempodb',
      license='BSD',
      py_modules=['iotrelay_tempodb'],
      test_suite='tests',
      install_requires=['iotrelay', 'tempodb'],
      tests_require=['iotrelay'],
      classifiers=[
          'Development Status :: 4 - Beta',
          'Intended Audience :: Developers',
          'Topic :: Home Automation',
          'Topic :: Utilities',
          'License :: OSI Approved :: BSD License',
          'Operating System :: OS Independent',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
      ],
      keywords='tempodb IoT',
      entry_points={
          'iotrelay': ['handler=iotrelay_tempodb:Handler']
      })

import os
from setuptools import setup

project_dir = os.path.abspath(os.path.dirname(__file__))

long_descriptions = []
for rst in ('README.rst', 'LICENSE.rst'):
    with open(os.path.join(project_dir, rst), 'r') as f:
        long_descriptions.append(f.read())

setup(name='iotrelay-tempodb',
      version='1.0.0',
      description='TempoDB handler module for iotrelay',
      long_description='\n\n'.join(long_descriptions),
      author='Emmanuel Levijarvi',
      author_email='emansl@gmail.com',
      url='https://github.com/eman/iotrelay-tempodb',
      license='BSD',
      py_modules=['iotrelay_tempodb'],
      test_suite='tests',
      install_requires=['iotrelay', 'tempodb'],
      tests_require=['iotrelay'],
      classifiers=[
          'Development Status :: 4 - Beta',
          'Intended Audience :: Developers',
          'Topic :: Home Automation',
          'Topic :: Utilities',
          'License :: OSI Approved :: BSD License',
          'Operating System :: OS Independent',
          'Programming Language :: Python :: 2.7',
      ],
      keywords='tempodb IoT',
      entry_points={
          'iotrelay': ['handler=iotrelay_tempodb:Handler']
      })

remove python 3 - the tempodb client is not compatible