Skip to content

Commit

Permalink
Setup: Read requirements from file. (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
damiansteiger authored and thomashaener committed May 15, 2017
1 parent a35904e commit bfccdfb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
# Readme file as long_description:
long_description = open('README.rst').read()

# Read in requirements.txt
with open ('requirements.txt', 'r') as f_requirements:
requirements = f_requirements.readlines()
requirements = [r.strip() for r in requirements]


class get_pybind_include(object):
"""Helper class to determine the pybind11 include path
Expand Down Expand Up @@ -159,8 +164,7 @@ def warning(self, warning_text):
'An open source software framework for quantum computing'),
long_description=long_description,
features={'cppsimulator': cppsim},
install_requires=['numpy', 'future', 'pytest>=3.0',
'pybind11>=1.7', 'requests'],
install_requires=requirements,
cmdclass={'build_ext': BuildExt},
zip_safe=False,
license='Apache 2',
Expand Down

0 comments on commit bfccdfb

Please sign in to comment.