#!/usr/bin/env python

import os
from setuptools import setup, find_packages

root = os.path.dirname(os.path.realpath(__file__))

if __name__ == "__main__":
	with open(os.sep.join([root, 'README.rst'])) as file:
		long_description = file.read()
	with open(os.sep.join([root, 'octo', 'version'])) as file:
		version = file.read().strip()

	setup(name='octo',
	      version=version,
	      description='A plugin framework which allows you to write your application as a collection of (optionally interconnected) plugins.',
	      long_description=long_description,
	      author='Nick Groenen',
	      author_email='zoni@zoni.nl',
	      url='http://octo.zoni.nl',
	      classifiers=[
	          "Environment :: Plugins",
	          "Topic :: Software Development :: Libraries :: Application Frameworks",
	          "Development Status :: 4 - Beta",
	          "Operating System :: POSIX :: Linux",
	          "Programming Language :: Python",
	          "Programming Language :: Python :: 2.7",
	          "Programming Language :: Python :: 3",
	          "Topic :: Software Development",
	          "Topic :: Utilities",
	      ],
	      license="License :: OSI Approved :: BSD License",
	      packages=find_packages(),
	      entry_points={
	          'console_scripts': ['octo = octo.cli:main']
	      },
	      install_requires=open(os.sep.join([root, 'requirements.txt'])).readlines(),
	     )
