import os
from setuptools import setup
from hokusai.version import VERSION

with open("README.md", "r") as fh:
    long_description = fh.read()

setup(name='hokusai',
      version=VERSION,
      description='Artsy Docker development toolkit',
      long_description=long_description,
      long_description_content_type="text/markdown",
      url='http://github.com/artsy/hokusai',
      author='Isac Petruzzi',
      author_email='isac@artsymail.com',
      license='MIT',
      packages=['hokusai'],
      package_data={'hokusai': ['cli/*', 'commands/*', 'lib/*', 'services/*', 'templates/*', 'templates/hokusai/*']},
      install_requires=[
          'click==6.7',
          'click-repl==0.1.3',
          'prompt-toolkit==1.0.15',
          'MarkupSafe==1.0',
          'Jinja2==2.9.6',
          'PyYAML==3.12',
          'termcolor==1.1.0',
          'boto3==1.4.4',
          'botocore==1.5.41'
      ],
      zip_safe=False,
      include_package_data = True,
      scripts = ['bin/hokusai'])

@@ -35,44 +35,8 @@
 etup
-%0Afrom hokusai.version import VERSION
 %0A%0Awi
@@ -142,15 +142,90 @@
 ion=
-VERSION
+open(os.path.join(os.path.dirname(__file__), %22hokusai%22, %22VERSION%22)).read().strip()
 ,%0A  

read version from file as string in setup.py - prevents setuptools loading hokusai before installing deps