#!/usr/bin/env python
# encoding: utf-8

import os
import re
from setuptools import setup, find_packages


def rel_path(path):
    return os.path.join(os.path.dirname(__file__), path)


def get_version():
    with open(rel_path(os.path.join("paperweight", "__init__.py"))) as f:
        for line in f:
            if line.startswith("VERSION"):
                version = re.findall(r'\"(.+?)\"', line)[0]
                return version
    return "0.0.0.dev"


try:
    long_description = open(rel_path('README.rst'), 'rt').read()
except IOError:
    long_description = ''

setup(
    name="magphysio",
    version=get_version(),
    packages=find_packages,
    # install_requires=['Jinja2'],
    author="Jonathan Sick",
    author_email="jonathansick@mac.com",
    description="Python I/O for MAGPHYS workflows",
    long_description=long_description,
    license="MIT",
    keywords="astronomy",
    url="http://github.com/jonathansick/magphysio",
)

#!/usr/bin/env python
# encoding: utf-8

import os
import re
from setuptools import setup, find_packages


def rel_path(path):
    return os.path.join(os.path.dirname(__file__), path)


def get_version():
    with open(rel_path(os.path.join("magphysio", "__init__.py"))) as f:
        for line in f:
            if line.startswith("VERSION"):
                version = re.findall(r'\"(.+?)\"', line)[0]
                return version
    return "0.0.0.dev"


try:
    long_description = open(rel_path('README.rst'), 'rt').read()
except IOError:
    long_description = ''

setup(
    name="magphysio",
    version=get_version(),
    packages=find_packages(),
    # install_requires=['Jinja2'],
    author="Jonathan Sick",
    author_email="jonathansick@mac.com",
    description="Python I/O for MAGPHYS workflows",
    long_description=long_description,
    license="MIT",
    keywords="astronomy",
    url="http://github.com/jonathansick/magphysio"
)

Fix package structure