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.
main
Martin Weinelt 2 years ago
parent 836e3af544
commit 9f340b5bf1
  1. 4
      pkgs/development/python-modules/alembic/default.nix
  2. 4
      pkgs/development/python-modules/ansible-lint/default.nix
  3. 2
      pkgs/development/python-modules/build/default.nix
  4. 3
      pkgs/development/python-modules/cattrs/default.nix
  5. 2
      pkgs/development/python-modules/clickhouse-driver/default.nix
  6. 2
      pkgs/development/python-modules/dask/default.nix
  7. 1
      pkgs/development/python-modules/datashader/default.nix
  8. 1
      pkgs/development/python-modules/debugpy/default.nix
  9. 4
      pkgs/development/python-modules/diskcache/default.nix
  10. 1
      pkgs/development/python-modules/dm-haiku/default.nix
  11. 1
      pkgs/development/python-modules/flax/default.nix
  12. 1
      pkgs/development/python-modules/hypothesmith/default.nix
  13. 1
      pkgs/development/python-modules/ibis-framework/default.nix
  14. 1
      pkgs/development/python-modules/optax/default.nix
  15. 4
      pkgs/development/python-modules/pylint/default.nix
  16. 2
      pkgs/development/python-modules/scikit-learn/default.nix
  17. 1
      pkgs/development/python-modules/tensorflow-datasets/default.nix
  18. 5
      pkgs/development/python-modules/yamlfix/default.nix
  19. 1
      pkgs/tools/misc/pre-commit/default.nix
  20. 1
      pkgs/tools/package-management/pdm/default.nix

@ -42,10 +42,6 @@ buildPythonPackage rec {
pytest-xdist
];
pytestFlagsArray = [
"--numprocesses" "$NIX_BUILD_CORES"
];
meta = with lib; {
homepage = "https://bitbucket.org/zzzeek/alembic";
description = "A database migration tool for SQLAlchemy";

@ -57,10 +57,6 @@ buildPythonPackage rec {
pytestCheckHook
];
pytestFlagsArray = [
"--numprocesses" "$NIX_BUILD_CORES"
];
preCheck = ''
# ansible wants to write to $HOME and crashes if it can't
export HOME=$(mktemp -d)

@ -52,8 +52,6 @@ buildPythonPackage rec {
];
pytestFlagsArray = [
"-n"
"$NIX_BUILD_CORES"
"-W"
"ignore::DeprecationWarning"
];

@ -52,9 +52,6 @@ buildPythonPackage rec {
ujson
];
pytestFlagsArray = [
"--numprocesses $NIX_BUILD_CORES"
];
postPatch = ''
substituteInPlace pyproject.toml \

@ -57,8 +57,6 @@ buildPythonPackage rec {
# some test in test_buffered_reader.py doesn't seem to return
disabledTestPaths = [ "tests/test_buffered_reader.py" ];
pytestFlagsArray = [ "-n" "$NIX_BUILD_CORES" ];
# most tests require `clickhouse`
# TODO: enable tests after `clickhouse` unbroken
doCheck = false;

@ -67,8 +67,6 @@ buildPythonPackage rec {
'';
pytestFlagsArray = [
# parallelize
"--numprocesses $NIX_BUILD_CORES"
# rerun failed tests up to three times
"--reruns 3"
# don't run tests that require network access

@ -70,7 +70,6 @@ buildPythonPackage rec {
'';
pytestFlagsArray = [
"-n $NIX_BUILD_CORES"
"datashader"
];

@ -84,7 +84,6 @@ buildPythonPackage rec {
# Override default arguments in pytest.ini
pytestFlagsArray = [
"--timeout=0"
"-n=$NIX_BUILD_CORES"
];
disabledTests = lib.optionals (pythonAtLeast "3.10") [

@ -45,10 +45,6 @@ buildPythonPackage rec {
"test_get_many"
];
pytestFlagsArray = [
"-n $NIX_BUILD_CORES"
];
pythonImportsCheck = [
"diskcache"
];

@ -38,7 +38,6 @@ buildPythonPackage rec {
pytestCheckHook
tensorflow
];
pytestFlagsArray = [ "-n $NIX_BUILD_CORES" ];
pythonImportsCheck = [
"haiku"

@ -42,7 +42,6 @@ buildPythonPackage rec {
pytestCheckHook
tensorflow
];
pytestFlagsArray = [ "-n $NIX_BUILD_CORES" ];
disabledTestPaths = [
# Docs test, needs extra deps + we're not interested in it.

@ -39,7 +39,6 @@ buildPythonPackage rec {
pytestFlagsArray = [
"-v"
"--numprocesses $NIX_BUILD_CORES"
];
disabledTests = [

@ -119,7 +119,6 @@ buildPythonPackage rec {
];
pytestFlagsArray = [
"--numprocesses $NIX_BUILD_CORES"
"ibis/tests"
"ibis/backends/tests"
"ibis/backends/{${lib.concatStringsSep "," backends}}/tests"

@ -38,7 +38,6 @@ buildPythonPackage rec {
tensorflow
tensorflow-datasets
];
pytestFlagsArray = [ "-n $NIX_BUILD_CORES" ];
pythonImportsCheck = [
"optax"

@ -65,10 +65,6 @@ buildPythonPackage rec {
export HOME=$TEMPDIR
'';
pytestFlagsArray = [
"-n $NIX_BUILD_CORES"
];
disabledTestPaths = [
# tests miss multiple input files
# FileNotFoundError: [Errno 2] No such file or directory

@ -78,8 +78,6 @@ buildPythonPackage rec {
# https://github.com/scikit-learn/scikit-learn/issues/17582
# 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}"))}'"
"-n" "$NIX_BUILD_CORES"
];
preCheck = ''

@ -96,7 +96,6 @@ buildPythonPackage rec {
tensorflow
tifffile
];
pytestFlagsArray = [ "-n $NIX_BUILD_CORES" ];
disabledTestPaths = [
# Sandbox violations: network access, filesystem write attempts outside of build dir, ...

@ -37,11 +37,6 @@ buildPythonPackage rec {
--replace 'python_paths = "."' ""
'';
pytestFlagsArray = [
"-n"
"$NIX_BUILD_CORES"
];
pythonImportsCheck = [
"yamlfix"
];

@ -74,7 +74,6 @@ buildPythonPackage rec {
'';
pytestFlagsArray = [
"--numprocesses $NIX_BUILD_CORES"
"--forked"
];

@ -71,7 +71,6 @@ buildPythonApplication rec {
];
pytestFlagsArray = [
"--numprocesses $NIX_BUILD_CORES"
"-m 'not network'"
];

Loading…
Cancel
Save