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:
parent
1348fd5648
commit
13b61913da
2 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue