from setuptools import find_packages, setup
import os
import dingo

# import subprocess
#
# subprocess.call(["sudo", "apt-get", "install", "libgeos-dev"])

setup(name='dingo',
      version='v0.1-pre',
      author='Reiner Lemoine Institut, openego development group',
      author_email='jonathan.amme@rl-institut.de',
      description='DIstribution Network GeneratOr',
      url='https://github.com/openego/dingo',
      license='GNU GPLv3',
      packages=find_packages(),
      install_requires=['networkx >= 1.11, <= 1.11',
                        'geopy >= 1.11.0, <= 1.11.0',
                        'pandas >= 0.17.0 <= 0.19.1',
                        'pyomo >= 5.0.1, <= 5.0.1',
                        'pyproj >= 1.9.5.1, <= 1.9.5.1',
                        'sqlalchemy >= 1.0.11, <= 1.1.4',
                        'geoalchemy2 >= 0.2.6, <= 0.4.0',
                        'matplotlib  >= 1.5.3, <= 1.5.3',
                        'egoio >= 0.0.2, <= 0.0.2',
                        'oemof.db  >= 0.0.4, <= 0.0.4',
                        'egopowerflow >= 0.0.2, <= 0.0.2',
                        'shapely >= 1.5.12, <= 1.5.12',
                        'pypsa >= 0.7.1, <= 0.7.1'
                        ],
      package_data={
          'config': [
              os.path.join('config',
                           '*.cfg'),
            ],
          'data': [
              os.path.join('data',
                           '*.csv'),
            ],
          'testcases': [
              os.path.join('grid',
                           'mv_grid',
                           'tests',
                           'testcases',
                           '*.vrp'),
              os.path.join('grid',
                           'mv_grid',
                           'tests',
                           'testcases',
                           'Augerat',
                           '*.vrp'),
              os.path.join('grid',
                           'mv_grid',
                           'tests',
                           'testcases',
                           'Augerat-tcc',
                           '*.vrp'),
              os.path.join('grid',
                           'mv_grid',
                           'tests',
                           'testcases',
                           'Takes-tcc',
                           '*.vrp'),
              os.path.join('grid',
                           'mv_grid',
                           'tests',
                           'testcases',
                           'Vigo',
                           '*.vrp'),

          ]}
      )

@@ -618,16 +618,17 @@
 = 0.17.0
+,
  %3C= 0.19

fix typo in version spec of setup