patch py-mccabe and py-flake8 to not require pytest-runner for install (#5427)

- Filter the pytest-runner dependency out of setup.py in py-mccabe and
  py-flake8
This commit is contained in:
Todd Gamblin 2017-09-25 12:46:47 -07:00 committed by GitHub
parent 1348fd5648
commit 13b61913da
2 changed files with 8 additions and 0 deletions

View file

@ -66,3 +66,7 @@ class PyFlake8(PythonPackage):
# TODO: Add test dependencies
# depends_on('py-nose', type='test')
def patch(self):
"""Filter pytest-runner requirement out of setup.py."""
filter_file("['pytest-runner']", "[]", 'setup.py', string=True)

View file

@ -47,3 +47,7 @@ class PyMccabe(PythonPackage):
# TODO: Add test dependencies
# depends_on('py-pytest', type='test')
def patch(self):
"""Filter pytest-runner requirement out of setup.py."""
filter_file("['pytest-runner']", "[]", 'setup.py', string=True)