Skip to content

Commit

Permalink
Set setup_requires = install_requires
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 ba1fb35 commit 3547209
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def setup_package():
docs_build_path = os.path.join(docs_path, '_build')
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
pytest_runner = ['pytest-runner'] if needs_pytest else []
requirements = get_install_requirements('requirements.txt')
command_options = {
'docs': {'build_dir': ('setup.py', docs_build_path),
'config_dir': ('setup.py', docs_path),
Expand Down Expand Up @@ -119,9 +120,9 @@ def setup_package():
'Operating System :: Unix',
'Operating System :: MacOS',
'Operating System :: Microsoft :: Windows'],
setup_requires=['six', 'setuptools_scm'] + pytest_runner,
setup_requires=requirements + pytest_runner,
tests_require=['pytest-cov', 'pytest'],
install_requires=get_install_requirements('requirements.txt'),
install_requires=requirements,
package_data={'pyscaffold': ['data/*']},
cmdclass={'docs': build_cmd_docs(), 'doctest': build_cmd_docs()},
command_options=command_options,
Expand Down

0 comments on commit 3547209

Please sign in to comment.