Merge pull request #332821 from pbsds/fix-pytest-cov-stub-migrations-1722970313

treewide: migrate to pytest-cov-stub
This commit is contained in:
Peder Bergebakken Sundt
2024-08-09 15:59:11 +02:00
committed by GitHub
13 changed files with 28 additions and 29 deletions
@@ -13,7 +13,7 @@
pytest-aiohttp,
pytest-asyncio,
pytestCheckHook,
pytest-cov,
pytest-cov-stub,
pythonOlder,
yarl,
}:
@@ -50,7 +50,7 @@ buildPythonPackage rec {
aresponses
pytest-aiohttp
pytest-asyncio
pytest-cov
pytest-cov-stub
pytestCheckHook
];
@@ -7,7 +7,7 @@
requests,
websocket-client,
# dependencies for tests
pytest-cov,
pytest-cov-stub,
pytest,
sure,
responses,
@@ -35,7 +35,7 @@ buildPythonPackage rec {
];
nativeCheckInputs = [
pytest-cov
pytest-cov-stub
pytest
sure
responses
@@ -2,7 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
pytest-cov,
pytest-cov-stub,
pytestCheckHook,
requests,
}:
@@ -22,7 +22,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [ requests ];
nativeCheckInputs = [
pytest-cov
pytest-cov-stub
pytestCheckHook
];
@@ -9,7 +9,7 @@
lib,
pytest,
pytest-asyncio,
pytest-cov,
pytest-cov-stub,
pytest-rerunfailures,
pytestCheckHook,
redis,
@@ -46,7 +46,7 @@ buildPythonPackage rec {
hypothesis
pytest
pytest-asyncio
pytest-cov
pytest-cov-stub
pytest-rerunfailures
pytestCheckHook
];
@@ -9,7 +9,7 @@
pykwalify,
jsonschema,
pytestCheckHook,
pytest-cov,
pytest-cov-stub,
}:
buildPythonPackage rec {
@@ -34,11 +34,9 @@ buildPythonPackage rec {
jsonschema
];
nativeCheckInputs = [ pytestCheckHook ];
checkInputs = [
# addopts uses --no-cov
pytest-cov
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
];
disabledTestPaths = [
@@ -3,7 +3,7 @@
buildPythonPackage,
fetchFromGitHub,
pytest-asyncio,
pytest-cov,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
requests,
@@ -27,7 +27,7 @@ buildPythonPackage rec {
nativeCheckInputs = [
pytest-asyncio
pytest-cov
pytest-cov-stub
pytestCheckHook
requests
requests-mock
@@ -4,7 +4,7 @@
fetchPypi,
isPy27,
pytest,
pytest-cov,
pytest-cov-stub,
nbval,
jupyter-packaging,
ipywidgets,
@@ -38,7 +38,7 @@ buildPythonPackage rec {
nativeCheckInputs = [
pytest
pytest-cov
pytest-cov-stub
nbval
];
@@ -11,7 +11,7 @@
# tests
hypothesis,
pytest-cov,
pytest-cov-stub,
pytestCheckHook,
}:
@@ -31,7 +31,7 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace pytest.ini \
--replace "--cov=ndindex/ --cov-report=term-missing --flakes" ""
--replace "--flakes" ""
'';
passthru.optional-dependencies.arrays = [ numpy ];
@@ -40,7 +40,7 @@ buildPythonPackage rec {
nativeCheckInputs = [
hypothesis
pytest-cov # uses cov markers
pytest-cov-stub
pytestCheckHook
] ++ passthru.optional-dependencies.arrays;
@@ -8,7 +8,7 @@
typing-extensions,
pytestCheckHook,
pytest-benchmark,
pytest-cov,
pytest-cov-stub,
pydantic,
}:
@@ -39,7 +39,7 @@ buildPythonPackage rec {
pydantic
pytestCheckHook
pytest-benchmark
pytest-cov
pytest-cov-stub
];
pytestFlagsArray = [ "--benchmark-disable" ];
@@ -9,7 +9,7 @@
pyexcel-xls,
psutil,
pytestCheckHook,
pytest-cov,
pytest-cov-stub,
setuptools,
}:
@@ -43,7 +43,7 @@ buildPythonPackage rec {
nativeCheckInputs = [
pytestCheckHook
pytest-cov
pytest-cov-stub
pyexcel
pyexcel-xls
psutil
@@ -7,7 +7,7 @@
metar,
pytest-aiohttp,
pytest-asyncio,
pytest-cov,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
setuptools,
@@ -45,7 +45,7 @@ buildPythonPackage rec {
freezegun
pytest-aiohttp
pytest-asyncio
pytest-cov
pytest-cov-stub
pytestCheckHook
] ++ lib.flatten (lib.attrValues optional-dependencies);
@@ -6,6 +6,7 @@
buildPythonPackage rec {
pname = "pytest-cov-stub";
# please use pythonRemoveDeps rather than change this version
version = (lib.importTOML ./src/pyproject.toml).project.version;
pyproject = true;
@@ -3,7 +3,7 @@
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytest-cov,
pytest-cov-stub,
pytest-asyncio,
pytest-timeout,
responses,
@@ -30,7 +30,7 @@ buildPythonPackage rec {
nativeCheckInputs = [
pytest-asyncio
pytest-timeout
pytest-cov
pytest-cov-stub
pytestCheckHook
responses
];