<reponame>pjamesjoyce/lcopt_cv<gh_stars>1-10
'''
To create the wheel run - python setup.py bdist_wheel
'''

from setuptools import setup
import os

pkg_name = 'lcopt_cv'
pkg_version = '0.1.3'

packages = []
root_dir = os.path.dirname(__file__)
if root_dir:
    os.chdir(root_dir)

for dirpath, dirnames, filenames in os.walk(pkg_name):
    # Ignore dirnames that start with '.'
    if '__init__.py' in filenames:
        pkg = dirpath.replace(os.path.sep, '.')
        if os.path.altsep:
            pkg = pkg.replace(os.path.altsep, '.')
        packages.append(pkg)


def package_files(directory):
    paths = []
    for (path, directories, filenames) in os.walk(directory):
        for filename in filenames:
            paths.append(os.path.join('..', path, filename))
    return paths


my_package_files = []
my_package_files.extend(package_files(os.path.join(pkg_name, 'assets')))
#my_package_files.extend(package_files(os.path.join('lcopt', 'static')))
#my_package_files.extend(package_files(os.path.join('lcopt', 'templates')))
my_package_files.extend(package_files(os.path.join(pkg_name, 'bin')))
print(my_package_files)

setup(
    name=pkg_name,
    version=pkg_version,
    packages=packages,
    author="<NAME>",
    author_email="<EMAIL>",
    license=open('LICENSE.txt').read(),
    package_data={pkg_name: my_package_files},
    entry_points = {
        'console_scripts': [
            'lcopt-cv = lcopt_cv.bin.lcopt_cv_gui:main',
            'lcopt-cv-q = lcopt_cv.bin.lcopt_cv_gui_q:main',
        ]
    },
    install_requires=[
        'opencv-python',
        'imutils',
        'pillow',
        'brightway2',
        'pandas',
        'lcopt'
    ],
    include_package_data=True, 
    url="https://github.com/pjamesjoyce/{}/".format(pkg_name),
    download_url="https://github.com/pjamesjoyce/{}/archive/{}.tar.gz".format(pkg_name, pkg_version),
    long_description=open('README.md').read(),
    description='Computer vision module that links to lcopt',
    keywords=['LCA', 'Life Cycle Assessment', 'Foreground system', 'Background system', 'Foreground model', 'Computer vision'],
    classifiers=[
        'Intended Audience :: End Users/Desktop',
        'Intended Audience :: Developers',
        'Intended Audience :: Science/Research',
        'License :: OSI Approved :: BSD License',
        'Operating System :: MacOS :: MacOS X',
        'Operating System :: Microsoft :: Windows',
        'Operating System :: POSIX',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Topic :: Scientific/Engineering :: Information Analysis',
        'Topic :: Scientific/Engineering :: Mathematics',
        'Topic :: Scientific/Engineering :: Visualization',
    ],
)

# Also consider:
# http://code.activestate.com/recipes/577025-loggingwebmonitor-a-central-logging-server-and-mon/

'''
To create the wheel run - python setup.py bdist_wheel
'''

from setuptools import setup
import os

pkg_name = 'lcopt_cv'
pkg_version = '0.1.3'

packages = []
root_dir = os.path.dirname(__file__)
if root_dir:
    os.chdir(root_dir)

for dirpath, dirnames, filenames in os.walk(pkg_name):
    # Ignore dirnames that start with '.'
    if '__init__.py' in filenames:
        pkg = dirpath.replace(os.path.sep, '.')
        if os.path.altsep:
            pkg = pkg.replace(os.path.altsep, '.')
        packages.append(pkg)


def package_files(directory):
    paths = []
    for (path, directories, filenames) in os.walk(directory):
        for filename in filenames:
            paths.append(os.path.join('..', path, filename))
    return paths


my_package_files = []
my_package_files.extend(package_files(os.path.join(pkg_name, 'assets')))
#my_package_files.extend(package_files(os.path.join('lcopt', 'static')))
#my_package_files.extend(package_files(os.path.join('lcopt', 'templates')))
my_package_files.extend(package_files(os.path.join(pkg_name, 'bin')))
print(my_package_files)

setup(
    name=pkg_name,
    version=pkg_version,
    packages=packages,
    author="<NAME>",
    author_email="<EMAIL>",
    license=open('LICENSE.txt').read(),
    package_data={pkg_name: my_package_files},
    entry_points = {
        'console_scripts': [
            'lcopt-cv = lcopt_cv.bin.lcopt_cv_gui:main',
            'lcopt-cv-q = lcopt_cv.bin.lcopt_cv_gui_q:main',
        ]
    },
    install_requires=[
        'opencv-python',
        'imutils',
        'pillow',
        'brightway2',
        'pandas',
        'lcopt'
    ],
    include_package_data=True, 
    url="https://github.com/pjamesjoyce/{}/".format(pkg_name),
    download_url="https://github.com/pjamesjoyce/{}/archive/{}.tar.gz".format(pkg_name, pkg_version),
    long_description=open('README.md').read(),
    description='Computer vision module that links to lcopt',
    keywords=['LCA', 'Life Cycle Assessment', 'Foreground system', 'Background system', 'Foreground model', 'Computer vision'],
    classifiers=[
        'Intended Audience :: End Users/Desktop',
        'Intended Audience :: Developers',
        'Intended Audience :: Science/Research',
        'License :: OSI Approved :: BSD License',
        'Operating System :: MacOS :: MacOS X',
        'Operating System :: Microsoft :: Windows',
        'Operating System :: POSIX',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Topic :: Scientific/Engineering :: Information Analysis',
        'Topic :: Scientific/Engineering :: Mathematics',
        'Topic :: Scientific/Engineering :: Visualization',
    ],
)

# Also consider:
# http://code.activestate.com/recipes/577025-loggingwebmonitor-a-central-logging-server-and-mon/
To create the wheel run - python setup.py bdist_wheel # Ignore dirnames that start with '.' #my_package_files.extend(package_files(os.path.join('lcopt', 'static'))) #my_package_files.extend(package_files(os.path.join('lcopt', 'templates'))) # Also consider: # http://code.activestate.com/recipes/577025-loggingwebmonitor-a-central-logging-server-and-mon/