import io, re
from setuptools import setup

package_name = 'ccsgp_get_started'
init_py = io.open('{}/__init__.py'.format(package_name)).read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_py))
metadata['doc'] = re.findall('"""(.+)"""', init_py)[0]

setup(
    name = package_name,
    version = metadata['version'],
    description = metadata['doc'],
    author = metadata['author'],
    author_email = metadata['email'],
    url = metadata['url'],
    packages = [package_name, '{}.ccsgp'.format(package_name),
                '{}.examples'.format(package_name)],
    include_package_data=True,
    dependency_links = [
        'http://sourceforge.net/projects/gnuplot-py/files/Gnuplot-py/1.8/gnuplot-py-1.8.tar.gz/download'
    ],
    install_requires = [ 'numpy==1.9.2', 'Pint==0.5.1', 'uncertainties==2.4.4', 'gnuplot-py==1.8'],
    license = 'MIT',
    keywords = ['gnuplot', 'graph', 'plot', 'panel'],
)

import io, re
from setuptools import setup

package_name = 'ccsgp_get_started'
init_py = io.open('{}/__init__.py'.format(package_name)).read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_py))
metadata['doc'] = re.findall('"""(.+)"""', init_py)[0]

setup(
    name = package_name,
    version = metadata['version'],
    description = metadata['doc'],
    author = metadata['author'],
    author_email = metadata['email'],
    url = metadata['url'],
    packages = [package_name, '{}.ccsgp'.format(package_name),
                '{}.examples'.format(package_name)],
    include_package_data=True,
    setup_requires = [ 'numpy==1.9.2' ],
    install_requires = [ 'numpy==1.9.2', 'Pint==0.5.1', 'uncertainties==2.4.4', 'gnuplot-py==1.8' ],
    dependency_links = [
        'http://prdownloads.sourceforge.net/gnuplot-py/gnuplot-py-1.8.tar.gz?download'
    ],
    license = 'MIT',
    keywords = ['gnuplot', 'graph', 'plot', 'panel'],
)

fix gnuplot dependency