Read requirements in setup.py

This commit is contained in:
Ben Firshman 2013-12-20 21:25:19 +00:00
parent 5cc4b59dc0
commit dd920890f3
1 changed files with 3 additions and 2 deletions

View File

@ -21,6 +21,8 @@ def find_version(*file_paths):
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
with open('requirements.txt') as f:
install_requires = f.read().splitlines()
setup(
name='fig',
@ -32,8 +34,7 @@ setup(
packages=['fig'],
package_data={},
include_package_data=True,
install_requires=[],
dependency_links=[],
install_requires=install_requires,
entry_points="""
[console_scripts]
fig=fig.cli.main:main