#!/usr/bin/env python
# -*- coding: utf-8 -*-

from setuptools import setup
import re
import os
import codecs


# Borrowed from
# https://github.com/jezdez/django_compressor/blob/develop/setup.py
def read(*parts):
    return codecs.open(os.path.join(os.path.dirname(__file__), *parts)).read()


def find_version(*file_paths):
    version_file = read(*file_paths)
    version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
                              version_file, re.M)
    if version_match:
        return version_match.group(1)
    raise RuntimeError("Unable to find version string.")


setup(
    name='fig',
    version=find_version("fig", "__init__.py"),
    description='',
    url='https://github.com/orchardup/fig',
    author='Orchard Laboratories Ltd.',
    author_email='hello@orchardup.com',
    packages=['fig'],
    package_data={},
    include_package_data=True,
    install_requires=[],
    dependency_links=[],
    entry_points="""
    [console_scripts]
    fig=fig.cli.main:main
    """,
)

@@ -593,16 +593,97 @@
 ing.%22)%0A%0A
+with open('requirements.txt') as f:%0A    install_requires = f.read().splitlines()%0A
 %0Asetup(%0A
@@ -989,35 +989,24 @@
 res=
-%5B%5D,%0A    dependency_links=%5B%5D
+install_requires
 ,%0A  

Read requirements in setup.py