#!/usr/bin/env python
from setuptools import setup, find_packages
import os
import glob
import numpy
import codecs

# dependencies
install_reqs = [
    'numpy>=1.17.0'
]

# getting version from __init__.py
def read(rel_path):
    here = os.path.abspath(os.path.dirname(__file__))
    with codecs.open(os.path.join(here, rel_path), 'r') as fp:
        return fp.read()

def get_version(rel_path):
    for line in read(rel_path).splitlines():
        if line.startswith('__version__'):
            delim = '"' if '"' in line else "'"
            return line.split(delim)[1]
    else:
        raise RuntimeError('Unable to find version string.')
    
## install main application
desc = 'TEMPLATE package'
setup(
    name = 'TEMPLATE',
    version = get_version('TEMPLATE/__init__.py'),
    description = desc,
    long_description = desc + '\n See README for more information.',
    author = '<NAME>',
    author_email = '<EMAIL>',
    entry_points={
        'console_scripts': [
            'TEMPLATE = TEMPLATE.__main__:main'
        ]
    },
    install_requires = install_reqs,
    include_dirs = [numpy.get_include()],
    license = 'MIT license',
    packages = find_packages(),
    package_dir={'TEMPLATE':
                 'TEMPLATE'},
    url = 'https://github.com/leylabmpi/TEMPLATE'
)





#!/usr/bin/env python
from setuptools import setup, find_packages
import os
import glob
import numpy
import codecs

# dependencies
install_reqs = [
    'numpy>=1.17.0'
]

# getting version from __init__.py
def read(rel_path):
    here = os.path.abspath(os.path.dirname(__file__))
    with codecs.open(os.path.join(here, rel_path), 'r') as fp:
        return fp.read()

def get_version(rel_path):
    for line in read(rel_path).splitlines():
        if line.startswith('__version__'):
            delim = '"' if '"' in line else "'"
            return line.split(delim)[1]
    else:
        raise RuntimeError('Unable to find version string.')
    
## install main application
desc = 'TEMPLATE package'
setup(
    name = 'TEMPLATE',
    version = get_version('TEMPLATE/__init__.py'),
    description = desc,
    long_description = desc + '\n See README for more information.',
    author = '<NAME>',
    author_email = '<EMAIL>',
    entry_points={
        'console_scripts': [
            'TEMPLATE = TEMPLATE.__main__:main'
        ]
    },
    install_requires = install_reqs,
    include_dirs = [numpy.get_include()],
    license = 'MIT license',
    packages = find_packages(),
    package_dir={'TEMPLATE':
                 'TEMPLATE'},
    url = 'https://github.com/leylabmpi/TEMPLATE'
)





#!/usr/bin/env python # dependencies # getting version from __init__.py ## install main application