Add pytest-runner where needed

Instead of patching around in setup.py which isn't very reliable at
all add pytest-runner to propagatedBuildInputs where necessary and
set `doCheck=false`.
This commit is contained in:
Tobias Pflug 2020-02-27 17:11:20 +01:00
parent 99f885eb77
commit 7f32c6d559

View file

@ -8,9 +8,8 @@ self: super:
{ {
astroid = super.astroid.overrideAttrs ( astroid = super.astroid.overrideAttrs (
old: rec { old: rec {
postPatch = '' propagatedBuildInputs = old.propagatedBuildInputs ++ [ self.pytestrunner ];
substituteInPlace setup.py --replace 'setup_requires=["pytest-runner"],' 'setup_requires=[],' doCheck = false;
'';
} }
); );
@ -90,9 +89,8 @@ self: super:
faker = super.faker.overrideAttrs ( faker = super.faker.overrideAttrs (
old: { old: {
postPatch = '' propagatedBuildInputs = old.propagatedBuildInputs ++ [ self.pytestrunner ];
substituteInPlace setup.py --replace 'setup_requires=["pytest-runner"],' 'setup_requires=[],' || true doCheck = false;
'';
} }
); );
@ -108,9 +106,8 @@ self: super:
grandalf = super.grandalf.overrideAttrs ( grandalf = super.grandalf.overrideAttrs (
old: { old: {
postPatch = '' propagatedBuildInputs = old.propagatedBuildInputs ++ [ self.pytestrunner ];
substituteInPlace setup.py --replace "setup_requires=['pytest-runner',]," "setup_requires=[]," || true doCheck = false;
'';
} }
); );
@ -240,9 +237,8 @@ self: super:
mccabe = super.mccabe.overrideAttrs ( mccabe = super.mccabe.overrideAttrs (
old: { old: {
postPatch = '' propagatedBuildInputs = old.propagatedBuildInputs ++ [ self.pytestrunner ];
substituteInPlace setup.py --replace "setup_requires=['pytest-runner']," "setup_requires=[]," || true doCheck = false;
'';
} }
); );
@ -393,9 +389,8 @@ self: super:
pylint = super.pylint.overrideAttrs ( pylint = super.pylint.overrideAttrs (
old: { old: {
postPatch = '' propagatedBuildInputs = old.propagatedBuildInputs ++ [ self.pytestrunner ];
substituteInPlace setup.py --replace 'setup_requires=["pytest-runner"],' 'setup_requires=[],' doCheck = false;
'';
} }
); );