Skip to content

Commit

Permalink
Added forgotten requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Wilhelm authored and Florian Wilhelm committed Jul 6, 2015
1 parent 541de33 commit ba1fb35
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ def local_version2str(version):
return version.format_with('+{node}')


def get_install_requirements(path):
with open(os.path.join(__location__, path)) as fh:
content = fh.read()
return [req for req in content.splitlines() if req != '']


def setup_package():
docs_path = os.path.join(__location__, 'docs')
docs_build_path = os.path.join(docs_path, '_build')
Expand Down Expand Up @@ -115,6 +121,7 @@ def setup_package():
'Operating System :: Microsoft :: Windows'],
setup_requires=['six', 'setuptools_scm'] + pytest_runner,
tests_require=['pytest-cov', 'pytest'],
install_requires=get_install_requirements('requirements.txt'),
package_data={'pyscaffold': ['data/*']},
cmdclass={'docs': build_cmd_docs(), 'doctest': build_cmd_docs()},
command_options=command_options,
Expand Down

0 comments on commit ba1fb35

Please sign in to comment.