import os
import setuptools
import sys

# Written according to the docs at
# https://packaging.python.org/en/latest/distributing.html

project_root = os.path.dirname(__file__)
peru_sh_path = os.path.join(project_root, 'clowder.sh')
module_root = os.path.join(project_root, 'clowder')
version_file = os.path.join(module_root, 'VERSION')


def get_version():
    with open(version_file) as f:
        return f.read().strip()


def get_all_resources_filepaths():
    resources_paths = ['VERSION']
    resources_dir = os.path.join(module_root, 'resources')
    for dirpath, dirnames, filenames in os.walk(resources_dir):
        relpaths = [os.path.relpath(os.path.join(dirpath, f),
                                    start=module_root)
                    for f in filenames]
        resources_paths.extend(relpaths)
    return resources_paths


def get_install_requires():
    dependencies = ['docopt', 'PyYAML']
    # Python 3.3 needs extra libs that aren't installed by default.
    if sys.version_info < (3, 3):
        raise RuntimeError('The minimum supported Python version is 3.3.')
    elif (3, 3) <= sys.version_info < (3, 4):
        dependencies.extend(['asyncio', 'pathlib'])
    return dependencies


setuptools.setup(
    name='clowder',
    description='A tool for managing code',
    version=get_version(),
    url='https://github.com/jrgoodle/clowder',
    author="joe DeCapo <joe@polka.cat>,
    license='MIT',
    packages=['clowder'],
    package_data={'clowder': get_all_resources_filepaths()},
    entry_points={
        'console_scripts': [
            'clowder=clowder.clowder',
        ]
    },
    install_requires=get_install_requires(),
)

@@ -890,24 +890,17 @@
 = %5B'
-docopt', 'PyYAML
+gitpython
 '%5D%0A 
@@ -1128,16 +1128,18 @@
 %0A       
+ #
  depende

Update dependencies in `setup.py`