#
# to build the distrubution @ dist/gaming_spiders-*.*.*.tar.gz
#
#   >git clone https://github.com/simonsdave/gaming_spiders.git
#   >cd gaming_spiders
#   >python setup.py bdist_wheel sdist --formats=gztar sdist --formats=gztar
#

import re

from setuptools import setup

#
# this approach used below to determine ```version``` was inspired by
# https://github.com/kennethreitz/requests/blob/master/setup.py#L31
#
# why this complexity? wanted version number to be available in the
# a runtime.
#
# the code below assumes the distribution is being built with the
# current directory being the directory in which setup.py is stored
# which should be totally fine 99.9% of the time. not going to add
# the coode complexity to deal with other scenarios
#
reg_ex_pattern = r'__version__\s*=\s*[\'"](?P<version>[^\'"]*)[\'"]'
reg_ex = re.compile(reg_ex_pattern)
version = ''
with open('gaming_spiders/__init__.py', 'r') as fd:
    for line in fd:
        match = reg_ex.match(line)
        if match:
            version = match.group('version')
            break
if not version:
    raise Exception("Can't locate project's version number")

setup(
    name='gaming_spiders',
    packages=[
        'gaming_spiders',
    ],
    scripts=[
    ],
    install_requires=[
        'cloudfeaster==0.9.20',
    ],
    version=version,
    description='Gaming Spiders',
    author='Dave Simons',
    author_email='simonsdave@gmail.com',
    url='https://github.com/simonsdave/gaming_spiders'
)

@@ -1224,24 +1224,457 @@
   scripts=%5B%0A
+        'gaming_spiders/bigfishonlinegames.py',%0A        'gaming_spiders/gamehouseonlinegames.py',%0A        'gaming_spiders/hiddenobjectgames.py',%0A        'gaming_spiders/match3games.py',%0A        'gaming_spiders/miniclip.py',%0A        'gaming_spiders/solitaireonline.py',%0A        'gaming_spiders/gamesonly.py',%0A        'gaming_spiders/mahjonggames.py',%0A        'gaming_spiders/mindgames.py',%0A        'gaming_spiders/msnonlinegames.py',%0A
     %5D,%0A    i

add spiders to setup.py as scripts