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', 'tweepy', 'gevent'
        'google-auth-oauthlib', 'google-api-python-client', 'boto3',
        'flask-mail', 'flask-cors'
    ],
    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)

@@ -70,16 +70,17 @@
 rt sys%0A%0A
+%0A
 VERSION 
@@ -750,21 +750,16 @@
 ription=
-%0A    
 'Party P
@@ -1054,16 +1054,24 @@
 .3.0.9',
+%0A       
  'pillow
@@ -1072,16 +1072,24 @@
 pillow',
+%0A       
  'Flask'
@@ -1089,16 +1089,24 @@
 'Flask',
+%0A       
  'gunico
@@ -1133,16 +1133,24 @@
 gerous',
+%0A       
  'Jinja2
@@ -1151,16 +1151,24 @@
 Jinja2',
+%0A       
  'scipy'
@@ -1172,15 +1172,31 @@
 py',
- 'six',
+%0A        'six',%0A       
  'We
@@ -1203,16 +1203,24 @@
 rkzeug',
+%0A       
  'keras'
@@ -1246,16 +1246,32 @@
 ow',
- 'h5py',
+%0A        'h5py',%0A       
  'tw
@@ -1276,16 +1276,24 @@
 tweepy',
+%0A       
  'gevent
@@ -1293,16 +1293,17 @@
 'gevent'
+,
 %0A       
@@ -1326,16 +1326,24 @@
 uthlib',
+%0A       
  'google
@@ -1362,16 +1362,24 @@
 client',
+%0A       
  'boto3'
@@ -1401,16 +1401,24 @@
 k-mail',
+%0A       
  'flask-
@@ -1974,16 +1974,25 @@
 ywords=%5B
+%0A        
 'OpenCV'
@@ -2045,16 +2045,21 @@
 , 'game'
+%0A    
 %5D,%0A    z
@@ -2069,12 +2069,15 @@
 safe
-=
+ = 
 False
+%0A
 )%0A

Fix typo