# Copyright (C) GRyCAP - I3M - UPV
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from setuptools import setup, find_namespace_packages

# Load readme
with open('README.md', mode='r', encoding='utf-8') as f:
    readme = f.read()

# Load version
with open('scar/version.py', mode='r', encoding='utf-8')  as f:
    exec(f.read())

setup(name='scar',
      version=__version__,
      description='CLI for deploying serverless infrastructures on multiple cloud environments',
      long_description=readme,
      long_description_content_type='text/markdown',      
      url='https://github.com/grycap/scar',
      author='GRyCAP - Universitat Politecnica de Valencia',
      author_email='products@grycap.upv.es',
      license='Apache 2.0',
      packages=find_namespace_packages(),
      install_requires=['setuptools >= 40.8.0',
                        'boto3',
                        'urllib3',
                        'tabulate',
                        'configparser',
                        'requests',
                        'pyyaml',
                        'packaging',
                        'docker'
      ],
      platforms=["any"],
      entry_points={
          'console_scripts': [
              'scar=scar.scarcli:main'
          ]
      },
      classifiers=['Programming Language :: Python :: 3',
                   'License :: OSI Approved :: Apache Software License'
      ]      
    )

# Copyright (C) GRyCAP - I3M - UPV
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from setuptools import setup, find_namespace_packages
from scar.version import __version__


# Load readme
with open('README.md', mode='r', encoding='utf-8') as f:
    readme = f.read()

setup(name='scar',
      version=__version__,
      description='CLI for deploying serverless infrastructures on multiple cloud environments',
      long_description=readme,
      long_description_content_type='text/markdown',
      url='https://github.com/grycap/scar',
      author='GRyCAP - Universitat Politecnica de Valencia',
      author_email='products@grycap.upv.es',
      license='Apache 2.0',
      packages=find_namespace_packages(),
      install_requires=['setuptools >= 40.8.0',
                        'boto3',
                        'urllib3',
                        'tabulate',
                        'configparser',
                        'requests',
                        'pyyaml',
                        'packaging',
                        'docker'
      ],
      platforms=["any"],
      entry_points={
          'console_scripts': [
              'scar=scar.scarcli:main'
          ]
      },
      classifiers=['Programming Language :: Python :: 3',
                   'License :: OSI Approved :: Apache Software License'
      ]      
    )

Remove exec in setup