from setuptools import setup, find_packages

MAIN_MODULE = 'agent'

# Find the agent package that contains the main module
packages = find_packages('.')
agent_package = 'gridappsdvolttron'

# Find the version number from the main module
agent_module = agent_package + '.' + MAIN_MODULE
# -1 not valid import level in python3
_temp = __import__(agent_module, globals(), locals(), ['__version__'], 0)
__version__ = _temp.__version__

# Setup
setup(
    name=agent_package + 'agent',
    version=__version__,
    author_email="craig.allwardt@pnnl.gov",
    description="This agent will connect to a gridappsd instance, read and write to the message bus.",
    author="Craig Allwardt",
    install_requires=['volttron'],
    packages=packages,
    entry_points={
        'setuptools.installation': [
            'eggsecutable = ' + agent_module + ':main',
        ]
    }
)