import os

from setuptools import setup, find_packages

from packageinfo import VERSION, NAME

with open('README.rst', 'r') as readme:
    README_TEXT = readme.read()


def write_version_py(filename=None):
    if filename is None:
        filename = os.path.join(
            os.path.dirname(__file__), 'simlammps', 'version.py')
    ver = """\
version = '%s'
"""
    fh = open(filename, 'wb')
    try:
        fh.write(ver % VERSION)
    finally:
        fh.close()


write_version_py()

setup(
    name=NAME,
    version=VERSION,
    author='SimPhoNy, EU FP7 Project (Nr. 604005) www.simphony-project.eu',
    description='The lammps wrapper for the SimPhoNy framework',
    long_description=README_TEXT,
    entry_points={
        'simphony.engine': ['lammps = simlammps']},
    packages=find_packages(),
    install_requires=["simphony>=0.5",
                      "pyyaml >= 3.11"]
    )

import os

from setuptools import setup, find_packages

from packageinfo import VERSION, NAME

with open('README.rst', 'r') as readme:
    README_TEXT = readme.read()


def write_version_py(filename=None):
    if filename is None:
        filename = os.path.join(
            os.path.dirname(__file__), 'simlammps', 'version.py')
    ver = """\
version = '%s'
"""
    fh = open(filename, 'wb')
    try:
        fh.write(ver % VERSION)
    finally:
        fh.close()


write_version_py()

setup(
    name=NAME,
    version=VERSION,
    author='SimPhoNy, EU FP7 Project (Nr. 604005) www.simphony-project.eu',
    description='The lammps wrapper for the SimPhoNy framework',
    long_description=README_TEXT,
    entry_points={
        'simphony.engine': ['lammps = simlammps']},
    packages=find_packages(),
    install_requires=["simphony>=0.5"]
    )

Remove unused dep