Skip to content

Commit

Permalink
Only run pytest-runner if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Expyron committed Mar 5, 2018
1 parent af8f35a commit 42c8bae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@
os.system('py.test')
sys.exit()

needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
pytest_runner = ['pytest-runner'] if needs_pytest else []

setup(
author='Ritesh Kadmawala',
author_email='ritesh@loanzen.in',
description='falcon-auth',
download_url='',
setup_requires=['pytest-runner'],
setup_requires=pytest_runner,
install_requires=[
'falcon',
'pyjwt'
Expand Down

0 comments on commit 42c8bae

Please sign in to comment.