Skip to content
Snippets Groups Projects
Commit cf1c36f8 authored by John Wiggins's avatar John Wiggins
Browse files

Make pytest-runner an optional dependency

parent 9967fb7f
No related branches found
No related tags found
No related merge requests found
# -*- coding: utf-8 -*-
from __future__ import with_statement
import sys
 
from setuptools import setup
 
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
pytest_runner = ['pytest-runner'] if needs_pytest else []
 
def get_version(fname='mccabe.py'):
with open(fname) as f:
Loading
Loading
@@ -33,7 +37,7 @@ setup(
license='Expat license',
py_modules=['mccabe'],
zip_safe=False,
setup_requires=['pytest-runner'],
setup_requires=pytest_runner,
tests_require=['pytest'],
entry_points={
'flake8.extension': [
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment