treewide: drop useless pytest-runner (#328922)

This commit is contained in:
OTABI Tomoya
2024-09-17 10:18:03 +09:00
committed by GitHub
11 changed files with 19 additions and 60 deletions
@@ -30,7 +30,6 @@ python3.pkgs.buildPythonApplication rec {
gobject-introspection
makeBinaryWrapper
wrapGAppsHook3
python3.pkgs.pytest-runner
];
buildInputs = [
+2 -3
View File
@@ -7,7 +7,6 @@
, importlib-metadata
, packaging
, pycryptodome
, pytest-runner
, pythonOlder
, recommonmark
, setuptools-scm
@@ -41,7 +40,8 @@ buildPythonPackage rec {
postPatch = ''
# pythonRelaxDeps doesn't work
substituteInPlace setup.py \
--replace "setuptools_scm>=7.1.0,<8.0.0" "setuptools_scm>=7.1.0"
--replace-fail "setuptools_scm>=7.1.0,<8.0.0" "setuptools_scm>=7.1.0" \
--replace-fail '"pytest-runner",' ""
'';
nativeBuildInputs = [
@@ -49,7 +49,6 @@ buildPythonPackage rec {
# ever since https://github.com/vyperlang/vyper/pull/2816
git
pytest-runner
setuptools-scm
];
@@ -4,13 +4,12 @@
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
pytest-runner,
aiohttp,
attrs,
multidict,
colorlog,
pynacl,
pytest-cov,
pytest-cov-stub,
pytest-randomly,
pytest-asyncio,
mock,
@@ -52,9 +51,8 @@ buildPythonPackage rec {
nativeCheckInputs = [
pytestCheckHook
pytest-runner
pytest-asyncio
pytest-cov
pytest-cov-stub
pytest-randomly
mock
];
@@ -3,7 +3,6 @@
buildPythonPackage,
fetchFromGitHub,
setuptools-scm,
pytest-runner,
pytest,
decopatch,
makefun,
@@ -34,11 +33,14 @@ buildPythonPackage rec {
# we disable this file creation as it touches internet
postPatch = ''
echo "version = '${version}'" > pytest_harvest/_version.py
substituteInPlace pytest_harvest/tests/test_lazy_and_harvest.py \
--replace-fail "from distutils.version import LooseVersion" "from packaging.version import parse" \
--replace-fail "LooseVersion" "parse"
'';
nativeBuildInputs = [
setuptools-scm
pytest-runner
];
buildInputs = [ pytest ];
@@ -1,40 +0,0 @@
{
lib,
buildPythonPackage,
fetchPypi,
setuptools-scm,
pytest,
}:
buildPythonPackage rec {
pname = "pytest-runner";
version = "6.0.1";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-cNRzlYWnAI83v0kzwBP9sye4h4paafy7MxbIiILw9Js=";
};
postPatch = ''
rm pytest.ini
'';
nativeBuildInputs = [
setuptools-scm
pytest
];
checkPhase = ''
py.test tests
'';
# Fixture not found
doCheck = false;
meta = with lib; {
description = "Invoke py.test as distutils command with dependency resolution";
homepage = "https://github.com/pytest-dev/pytest-runner";
license = licenses.mit;
};
}
@@ -2,7 +2,6 @@
lib,
buildPythonPackage,
fetchFromGitHub,
pytest-runner,
# runtime dependencies
numpy,
onnx,
@@ -34,9 +33,10 @@ buildPythonPackage rec {
hash = "sha256-qtRzckw/KHWm3gjFwF+cPuBhGbfktjhYIwImwHn2CFk=";
};
nativeBuildInputs = [
pytest-runner
];
postPatch = ''
substituteInPlace setup.py \
--replace-fail "'pytest-runner'" ""
'';
pythonRelaxDeps = [ "flatbuffers" ];
@@ -35,7 +35,6 @@ python3Packages.buildPythonApplication rec {
nativeCheckInputs = with python3Packages; [
pytest
pytest-runner
];
checkPhase = ''
+1 -2
View File
@@ -99,8 +99,7 @@ let self = python3.pkgs.buildPythonApplication rec {
lockfile
mock
pexpect
pytest
pytest-runner
pytestCheckHook
fasteners
]);
@@ -17,6 +17,11 @@ python3Packages.buildPythonApplication rec {
hash = "sha256-P49fkLvdCm/Eco+nD3SGM04PRQatBzq9CHlayueQetk=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail "'pytest-runner'," ""
'';
# crun patchelf proot runc fakechroot
# are download statistically linked during runtime
buildInputs = [
@@ -28,7 +33,6 @@ python3Packages.buildPythonApplication rec {
];
nativeCheckInputs = with python3Packages; [
pytest-runner
pytestCheckHook
];
+1
View File
@@ -483,6 +483,7 @@ mapAliases ({
pytest-pep8 = pytestpep8; # added 2021-01-04
pytest-pep257 = throw "pytest-pep257 was removed, as the pep257 package was migrated into pycodestyle"; # added 2022-04-12
pytest-pythonpath = throw "pytest-pythonpath is obsolete as of pytest 7.0.0 and has been removed"; # added 2022-03-09
pytest-runner = throw "pytest-runner has been removed as it uses deprecated features of setuptools and is deprecated by upstream"; # added 2024-09-15
pytest-sanic = throw "pytest-sanic has been removed because it is unmaintained and broken"; # added 2023-06-22
pytestpep8 = throw "pytestpep8 was removed because it is abandoned and no longer compatible with pytest v6.0"; # added 2020-12-10
pytestquickcheck = pytest-quickcheck; # added 2021-07-20
-2
View File
@@ -12474,8 +12474,6 @@ self: super: with self; {
pytest-responses = callPackage ../development/python-modules/pytest-responses { };
pytest-runner = callPackage ../development/python-modules/pytest-runner { };
pytest-server-fixtures = callPackage ../development/python-modules/pytest-server-fixtures { };
pytest-services = callPackage ../development/python-modules/pytest-services { };