#!/usr/bin/env python
import os
import sys
from setuptools import setup

vsn_path = "%s/version" % os.path.dirname(os.path.abspath(__file__))
if not os.path.exists(vsn_path):
    print("%s is missing" % vsn_path)
    sys.exit(1)

setup(name='aomi',
      version=open(vsn_path, 'r').read(),
      description='Easy access to secrets is not as bad as it sounds',
      author='Jonathan Freedman',
      author_email='jonathan.freedman@autodesk.com',
      license='MIT',
      url='https://github.com/autodesk/aomi',
      install_requires=['PyYAML', 'hvac', 'jinja2'],
      include_package_data=True,
      packages=['aomi'],
      entry_points = {
          'console_scripts': ['aomi = aomi.cli:main']
      },
      package_data={'aomi':['version', 'templates/*.j2']}
)

#!/usr/bin/env python
import os
import sys
from setuptools import setup

vsn_path = "%s/aomi/version" % os.path.dirname(os.path.abspath(__file__))
if not os.path.exists(vsn_path):
    print("%s is missing" % vsn_path)
    sys.exit(1)

setup(name='aomi',
      version=open(vsn_path, 'r').read(),
      description='Easy access to secrets is not as bad as it sounds',
      author='Jonathan Freedman',
      author_email='jonathan.freedman@autodesk.com',
      license='MIT',
      url='https://github.com/autodesk/aomi',
      install_requires=['PyYAML', 'hvac', 'jinja2'],
      include_package_data=True,
      packages=['aomi'],
      entry_points = {
          'console_scripts': ['aomi = aomi.cli:main']
      },
      package_data={'aomi':['version', 'templates/*.j2']}
)

read version from right place