from setuptools import setup, find_packages

import os
import re
import sys


VERSION = '0.1.6'  # x.y.z[-dev#]
REPOSITORY = 'https://github.com/JustinShenk/party-pi'

PACKAGES = find_packages(where='partypi')

README = ''
with open('README.rst', 'r') as f:
    README = f.read()
README = re.sub(r' _(.+): ([^(http)].+)',
                r' _\1: {}/blob/master/\2'.format(REPOSITORY), README)


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


extra_files = package_files('match_scientist')
print("Extra_files: ", extra_files)

setup(
    name='partypi',
    version=VERSION,
    description='Party Pi is a computer vision emotion detection game with OpenCV and Microsoft Oxford Emotion API.',
    long_description=README,
    author='Justin Shenk',
    author_email='shenk.justin@gmail.com',
    packages=['partypi'],
    package_data={'': extra_files},
    install_requires=[
        'opencv-contrib-python==3.3.0.9',
        'pillow',
        'Flask',
        'gunicorn',
        'itsdangerous',
        'Jinja2',
        'scipy',
        'six',
        'Werkzeug',
        'keras',
        'tensorflow',
        'h5py',
        'gevent'
    ],
    url=REPOSITORY,
    download_url='{}/tarball/{}'.format(REPOSITORY, VERSION),
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Education',
        'Intended Audience :: Science/Research',
        'Natural Language :: English',
        'Programming Language :: Python',
        'Topic :: Games/Entertainment',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Topic :: Multimedia :: Video :: Display',
    ],
    license='MIT',
    keywords=[
        'OpenCV', 'cv2', 'emotion', 'detection', 'game'
    ],
    zip_safe = False
)

from setuptools import setup, find_packages

import os
import re
import sys


VERSION = '0.2.0'  # x.y.z[-dev#]
REPOSITORY = 'https://github.com/JustinShenk/party-pi'

PACKAGES = find_packages(where='partypi')

README = ''
with open('README.rst', 'r') as f:
    README = f.read()
README = re.sub(r' _(.+): ([^(http)].+)',
                r' _\1: {}/blob/master/\2'.format(REPOSITORY), README)


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


extra_files = package_files('partypi')
print("Extra_files: ", extra_files)

setup(
    name='partypi',
    version=VERSION,
    description='Party Pi is a computer vision emotion detection game with OpenCV and Keras.',
    long_description=README,
    author='Justin Shenk',
    author_email='shenk.justin@gmail.com',
    packages=['partypi'],
    package_data={'': extra_files},
    install_requires=[
        'opencv-contrib-python==3.3.0.9',
        'pillow',
        'Flask',
        'gunicorn',
        'itsdangerous',
        'Jinja2',
        'scipy',
        'six',
        'Werkzeug',
        'keras',
        'tensorflow',
        'h5py',
        'gevent'
    ],
    url=REPOSITORY,
    download_url='{}/tarball/{}'.format(REPOSITORY, VERSION),
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Education',
        'Intended Audience :: Science/Research',
        'Natural Language :: English',
        'Programming Language :: Python',
        'Topic :: Games/Entertainment',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Topic :: Multimedia :: Video :: Display',
    ],
    license='MIT',
    keywords=[
        'OpenCV', 'computer', 'vision', 'emotion', 'detection', 'game'
    ],
    zip_safe = False
)

update setup