treewide: remove redundant numprocesses pytest-xdist parameter
Including the pytest-xdist package automatically configures numprocesses to $NIX_BUILD_CORES, so specifying these on a package level has become redundant.
This commit is contained in:
parent
836e3af544
commit
9f340b5bf1
|
@ -42,10 +42,6 @@ buildPythonPackage rec {
|
||||||
pytest-xdist
|
pytest-xdist
|
||||||
];
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [
|
|
||||||
"--numprocesses" "$NIX_BUILD_CORES"
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://bitbucket.org/zzzeek/alembic";
|
homepage = "https://bitbucket.org/zzzeek/alembic";
|
||||||
description = "A database migration tool for SQLAlchemy";
|
description = "A database migration tool for SQLAlchemy";
|
||||||
|
|
|
@ -57,10 +57,6 @@ buildPythonPackage rec {
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [
|
|
||||||
"--numprocesses" "$NIX_BUILD_CORES"
|
|
||||||
];
|
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
# ansible wants to write to $HOME and crashes if it can't
|
# ansible wants to write to $HOME and crashes if it can't
|
||||||
export HOME=$(mktemp -d)
|
export HOME=$(mktemp -d)
|
||||||
|
|
|
@ -52,8 +52,6 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [
|
pytestFlagsArray = [
|
||||||
"-n"
|
|
||||||
"$NIX_BUILD_CORES"
|
|
||||||
"-W"
|
"-W"
|
||||||
"ignore::DeprecationWarning"
|
"ignore::DeprecationWarning"
|
||||||
];
|
];
|
||||||
|
|
|
@ -52,9 +52,6 @@ buildPythonPackage rec {
|
||||||
ujson
|
ujson
|
||||||
];
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [
|
|
||||||
"--numprocesses $NIX_BUILD_CORES"
|
|
||||||
];
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace pyproject.toml \
|
substituteInPlace pyproject.toml \
|
||||||
|
|
|
@ -57,8 +57,6 @@ buildPythonPackage rec {
|
||||||
# some test in test_buffered_reader.py doesn't seem to return
|
# some test in test_buffered_reader.py doesn't seem to return
|
||||||
disabledTestPaths = [ "tests/test_buffered_reader.py" ];
|
disabledTestPaths = [ "tests/test_buffered_reader.py" ];
|
||||||
|
|
||||||
pytestFlagsArray = [ "-n" "$NIX_BUILD_CORES" ];
|
|
||||||
|
|
||||||
# most tests require `clickhouse`
|
# most tests require `clickhouse`
|
||||||
# TODO: enable tests after `clickhouse` unbroken
|
# TODO: enable tests after `clickhouse` unbroken
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
|
@ -67,8 +67,6 @@ buildPythonPackage rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pytestFlagsArray = [
|
pytestFlagsArray = [
|
||||||
# parallelize
|
|
||||||
"--numprocesses $NIX_BUILD_CORES"
|
|
||||||
# rerun failed tests up to three times
|
# rerun failed tests up to three times
|
||||||
"--reruns 3"
|
"--reruns 3"
|
||||||
# don't run tests that require network access
|
# don't run tests that require network access
|
||||||
|
|
|
@ -70,7 +70,6 @@ buildPythonPackage rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pytestFlagsArray = [
|
pytestFlagsArray = [
|
||||||
"-n $NIX_BUILD_CORES"
|
|
||||||
"datashader"
|
"datashader"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -84,7 +84,6 @@ buildPythonPackage rec {
|
||||||
# Override default arguments in pytest.ini
|
# Override default arguments in pytest.ini
|
||||||
pytestFlagsArray = [
|
pytestFlagsArray = [
|
||||||
"--timeout=0"
|
"--timeout=0"
|
||||||
"-n=$NIX_BUILD_CORES"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTests = lib.optionals (pythonAtLeast "3.10") [
|
disabledTests = lib.optionals (pythonAtLeast "3.10") [
|
||||||
|
|
|
@ -45,10 +45,6 @@ buildPythonPackage rec {
|
||||||
"test_get_many"
|
"test_get_many"
|
||||||
];
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [
|
|
||||||
"-n $NIX_BUILD_CORES"
|
|
||||||
];
|
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"diskcache"
|
"diskcache"
|
||||||
];
|
];
|
||||||
|
|
|
@ -38,7 +38,6 @@ buildPythonPackage rec {
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
tensorflow
|
tensorflow
|
||||||
];
|
];
|
||||||
pytestFlagsArray = [ "-n $NIX_BUILD_CORES" ];
|
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"haiku"
|
"haiku"
|
||||||
|
|
|
@ -42,7 +42,6 @@ buildPythonPackage rec {
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
tensorflow
|
tensorflow
|
||||||
];
|
];
|
||||||
pytestFlagsArray = [ "-n $NIX_BUILD_CORES" ];
|
|
||||||
|
|
||||||
disabledTestPaths = [
|
disabledTestPaths = [
|
||||||
# Docs test, needs extra deps + we're not interested in it.
|
# Docs test, needs extra deps + we're not interested in it.
|
||||||
|
|
|
@ -39,7 +39,6 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
pytestFlagsArray = [
|
pytestFlagsArray = [
|
||||||
"-v"
|
"-v"
|
||||||
"--numprocesses $NIX_BUILD_CORES"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
|
|
|
@ -119,7 +119,6 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [
|
pytestFlagsArray = [
|
||||||
"--numprocesses $NIX_BUILD_CORES"
|
|
||||||
"ibis/tests"
|
"ibis/tests"
|
||||||
"ibis/backends/tests"
|
"ibis/backends/tests"
|
||||||
"ibis/backends/{${lib.concatStringsSep "," backends}}/tests"
|
"ibis/backends/{${lib.concatStringsSep "," backends}}/tests"
|
||||||
|
|
|
@ -38,7 +38,6 @@ buildPythonPackage rec {
|
||||||
tensorflow
|
tensorflow
|
||||||
tensorflow-datasets
|
tensorflow-datasets
|
||||||
];
|
];
|
||||||
pytestFlagsArray = [ "-n $NIX_BUILD_CORES" ];
|
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"optax"
|
"optax"
|
||||||
|
|
|
@ -65,10 +65,6 @@ buildPythonPackage rec {
|
||||||
export HOME=$TEMPDIR
|
export HOME=$TEMPDIR
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pytestFlagsArray = [
|
|
||||||
"-n $NIX_BUILD_CORES"
|
|
||||||
];
|
|
||||||
|
|
||||||
disabledTestPaths = [
|
disabledTestPaths = [
|
||||||
# tests miss multiple input files
|
# tests miss multiple input files
|
||||||
# FileNotFoundError: [Errno 2] No such file or directory
|
# FileNotFoundError: [Errno 2] No such file or directory
|
||||||
|
|
|
@ -78,8 +78,6 @@ buildPythonPackage rec {
|
||||||
# https://github.com/scikit-learn/scikit-learn/issues/17582
|
# https://github.com/scikit-learn/scikit-learn/issues/17582
|
||||||
# Since we are overriding '-k' we need to include the 'disabledTests' from above manually.
|
# Since we are overriding '-k' we need to include the 'disabledTests' from above manually.
|
||||||
"-k" "'not (NuSVC and memmap) ${toString (lib.forEach disabledTests (t: "and not ${t}"))}'"
|
"-k" "'not (NuSVC and memmap) ${toString (lib.forEach disabledTests (t: "and not ${t}"))}'"
|
||||||
|
|
||||||
"-n" "$NIX_BUILD_CORES"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
|
|
|
@ -96,7 +96,6 @@ buildPythonPackage rec {
|
||||||
tensorflow
|
tensorflow
|
||||||
tifffile
|
tifffile
|
||||||
];
|
];
|
||||||
pytestFlagsArray = [ "-n $NIX_BUILD_CORES" ];
|
|
||||||
|
|
||||||
disabledTestPaths = [
|
disabledTestPaths = [
|
||||||
# Sandbox violations: network access, filesystem write attempts outside of build dir, ...
|
# Sandbox violations: network access, filesystem write attempts outside of build dir, ...
|
||||||
|
|
|
@ -37,11 +37,6 @@ buildPythonPackage rec {
|
||||||
--replace 'python_paths = "."' ""
|
--replace 'python_paths = "."' ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pytestFlagsArray = [
|
|
||||||
"-n"
|
|
||||||
"$NIX_BUILD_CORES"
|
|
||||||
];
|
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"yamlfix"
|
"yamlfix"
|
||||||
];
|
];
|
||||||
|
|
|
@ -74,7 +74,6 @@ buildPythonPackage rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pytestFlagsArray = [
|
pytestFlagsArray = [
|
||||||
"--numprocesses $NIX_BUILD_CORES"
|
|
||||||
"--forked"
|
"--forked"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -71,7 +71,6 @@ buildPythonApplication rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [
|
pytestFlagsArray = [
|
||||||
"--numprocesses $NIX_BUILD_CORES"
|
|
||||||
"-m 'not network'"
|
"-m 'not network'"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue