Skip to content

Commit

Permalink
BUG: pytest-runner no required for setup.py (#2643)
Browse files Browse the repository at this point in the history
  • Loading branch information
shoyer authored Jan 3, 2019
1 parent faacc8d commit c62c4fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@

PYTHON_REQUIRES = '>=3.5'
INSTALL_REQUIRES = ['numpy >= 1.12', 'pandas >= 0.19.2']
SETUP_REQUIRES = ['pytest-runner >= 4.2']
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
SETUP_REQUIRES = ['pytest-runner >= 4.2'] if needs_pytest else []
TESTS_REQUIRE = ['pytest >= 2.7.1']
if sys.version_info[0] < 3:
TESTS_REQUIRE.append('mock')
Expand Down

0 comments on commit c62c4fa

Please sign in to comment.