from os.path import dirname, join

from cx_Freeze import Executable, setup
from setuptools import find_packages, setup

import usonic

NAME = 'usonic'
URL = 'https://github.com/Kneshal/project_usonic.git'
DESCRIPTION = 'A package to calculate ultrasonic parametres'
LICENCE = 'MIT'
AUTHOR = '<NAME>'
EMAIL = '<EMAIL>'
REQUIREMENTS = ['configobj>=5',
                'matplotlib>=3',
                'numpy==1.19.3',
                'psycopg2>=2',
                'PyQt5>=5',
                'pyserial>=3']
REQUIRES_PYTHON = '==3.7.0'


executables = [Executable('main.py',
               targetName='usonic.exe',
               base='Win32GUI',
               icon='log.ico')]

includes = REQUIREMENTS

zip_include_packages = REQUIREMENTS

include_files = ['Database.py',
                 'COMPortThread.py',
                 'PlotTab.py',
                 'PostgreSQL.py',
                 'Record.py',
                 'design_database.py',
                 'design_main.py',
                 'design_settings.py']

options = {
           'build_exe': {
                         'include_msvcr': True,
                         'includes': includes,
                         'zip_include_packages': zip_include_packages,
                         'build_exe': 'build_windows',
                         'include_files': include_files,
                        }
}

setup(
    name=NAME,
    version='1.0.0',
    executables=executables,
    options=options,
    # url=URL,
    description=DESCRIPTION,
    # license=LICENCE,
    # author=AUTHOR,
    # author_email=EMAIL,
    #packages=find_packages(),
    # setup_requires=REQUIREMENTS,
    # python_requires=REQUIRES_PYTHON,
    # long_description=open(join(dirname(__file__), 'README.md')).read(),
    # classifiers=['License :: OSI Approved :: MIT License',
    #             'Programming Language :: Python :: 3.7', ],
    # include_package_data=True,
)

from os.path import dirname, join

from cx_Freeze import Executable, setup
from setuptools import find_packages, setup

import usonic

NAME = 'usonic'
URL = 'https://github.com/Kneshal/project_usonic.git'
DESCRIPTION = 'A package to calculate ultrasonic parametres'
LICENCE = 'MIT'
AUTHOR = '<NAME>'
EMAIL = '<EMAIL>'
REQUIREMENTS = ['configobj>=5',
                'matplotlib>=3',
                'numpy==1.19.3',
                'psycopg2>=2',
                'PyQt5>=5',
                'pyserial>=3']
REQUIRES_PYTHON = '==3.7.0'


executables = [Executable('main.py',
               targetName='usonic.exe',
               base='Win32GUI',
               icon='log.ico')]

includes = REQUIREMENTS

zip_include_packages = REQUIREMENTS

include_files = ['Database.py',
                 'COMPortThread.py',
                 'PlotTab.py',
                 'PostgreSQL.py',
                 'Record.py',
                 'design_database.py',
                 'design_main.py',
                 'design_settings.py']

options = {
           'build_exe': {
                         'include_msvcr': True,
                         'includes': includes,
                         'zip_include_packages': zip_include_packages,
                         'build_exe': 'build_windows',
                         'include_files': include_files,
                        }
}

setup(
    name=NAME,
    version='1.0.0',
    executables=executables,
    options=options,
    # url=URL,
    description=DESCRIPTION,
    # license=LICENCE,
    # author=AUTHOR,
    # author_email=EMAIL,
    #packages=find_packages(),
    # setup_requires=REQUIREMENTS,
    # python_requires=REQUIRES_PYTHON,
    # long_description=open(join(dirname(__file__), 'README.md')).read(),
    # classifiers=['License :: OSI Approved :: MIT License',
    #             'Programming Language :: Python :: 3.7', ],
    # include_package_data=True,
)

# url=URL, # license=LICENCE, # author=AUTHOR, # author_email=EMAIL, #packages=find_packages(), # setup_requires=REQUIREMENTS, # python_requires=REQUIRES_PYTHON, # long_description=open(join(dirname(__file__), 'README.md')).read(), # classifiers=['License :: OSI Approved :: MIT License', #             'Programming Language :: Python :: 3.7', ], # include_package_data=True,