Merge pull request #110601 from dotlambda/pytest_xdist-2.2.0
python3Packages.pytest_xdist: 2.1.0 -> 2.2.0
This commit is contained in:
commit
76048fe485
@ -2,7 +2,7 @@
|
|||||||
, fonttools
|
, fonttools
|
||||||
, lxml, fs # for fonttools extras
|
, lxml, fs # for fonttools extras
|
||||||
, setuptools_scm
|
, setuptools_scm
|
||||||
, pytestCheckHook, pytest_5, pytestcov, pytest_xdist
|
, pytestCheckHook, pytestcov, pytest_xdist
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -30,14 +30,14 @@ buildPythonPackage rec {
|
|||||||
propagatedBuildInputs = [ fonttools lxml fs ];
|
propagatedBuildInputs = [ fonttools lxml fs ];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
# Override pytestCheckHook to use pytest v5, because some tests fail on pytest >= v6
|
pytestCheckHook
|
||||||
# https://github.com/adobe-type-tools/psautohint/issues/284#issuecomment-742800965
|
|
||||||
# Override might be able to be removed in future, check package dependency pins (coverage.yml)
|
|
||||||
(pytestCheckHook.override{ pytest = pytest_5; })
|
|
||||||
pytestcov
|
pytestcov
|
||||||
pytest_xdist
|
pytest_xdist
|
||||||
];
|
];
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
|
# Test that fails on pytest >= v6
|
||||||
|
# https://github.com/adobe-type-tools/psautohint/issues/284#issuecomment-742800965
|
||||||
|
"test_hashmap_old_version"
|
||||||
# Slow tests, reduces test time from ~5 mins to ~30s
|
# Slow tests, reduces test time from ~5 mins to ~30s
|
||||||
"test_mmufo"
|
"test_mmufo"
|
||||||
"test_flex_ufo"
|
"test_flex_ufo"
|
||||||
|
@ -2,7 +2,9 @@
|
|||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, setuptools_scm
|
, setuptools_scm
|
||||||
|
, py
|
||||||
, pytest
|
, pytest
|
||||||
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -14,19 +16,16 @@ buildPythonPackage rec {
|
|||||||
sha256 = "6aa9ac7e00ad1a539c41bec6d21011332de671e938c7637378ec9710204e37ca";
|
sha256 = "6aa9ac7e00ad1a539c41bec6d21011332de671e938c7637378ec9710204e37ca";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pytest setuptools_scm ];
|
nativeBuildInputs = [ setuptools_scm ];
|
||||||
|
|
||||||
# Do not function
|
propagatedBuildInputs = [ py pytest ];
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
checkPhase = ''
|
checkInputs = [ pytestCheckHook ];
|
||||||
py.test testing
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Run tests in isolated forked subprocesses";
|
description = "Run tests in isolated forked subprocesses";
|
||||||
homepage = "https://github.com/pytest-dev/pytest-forked";
|
homepage = "https://github.com/pytest-dev/pytest-forked";
|
||||||
license = lib.licenses.mit;
|
license = lib.licenses.mit;
|
||||||
|
maintainers = with lib.maintainers; [ dotlambda ];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,28 +1,39 @@
|
|||||||
{ lib, fetchPypi, buildPythonPackage, execnet, pytest_6
|
{ lib
|
||||||
, setuptools_scm, pytest-forked, filelock, psutil, six, isPy3k }:
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, isPy27
|
||||||
|
, setuptools_scm
|
||||||
|
, pytestCheckHook
|
||||||
|
, filelock
|
||||||
|
, execnet
|
||||||
|
, pytest
|
||||||
|
, pytest-forked
|
||||||
|
, psutil
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pytest-xdist";
|
pname = "pytest-xdist";
|
||||||
version = "2.1.0";
|
version = "2.2.0";
|
||||||
disabled = !isPy3k;
|
disabled = isPy27;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "0wh6pn66nncfs6ay0n863bgyriwsgppn8flx5l7551j1lbqkinc2";
|
sha256 = "1d8edbb1a45e8e1f8e44b1260583107fc23f8bc8da6d18cb331ff61d41258ecf";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ setuptools_scm pytest_6 ];
|
nativeBuildInputs = [ setuptools_scm ];
|
||||||
checkInputs = [ pytest_6 filelock ];
|
checkInputs = [ pytestCheckHook filelock ];
|
||||||
propagatedBuildInputs = [ execnet pytest-forked psutil six ];
|
propagatedBuildInputs = [ execnet pytest pytest-forked psutil ];
|
||||||
|
|
||||||
# pytest6 doesn't allow for new lines
|
# access file system
|
||||||
# capture_deprecated not compatible with latest pytest6
|
disabledTests = [
|
||||||
checkPhase = ''
|
"test_distribution_rsyncdirs_example"
|
||||||
# Excluded tests access file system
|
"test_rsync_popen_with_path"
|
||||||
export HOME=$TMPDIR
|
"test_popen_rsync_subdir"
|
||||||
pytest -n $NIX_BUILD_CORES \
|
"test_rsync_report"
|
||||||
-k "not (distribution_rsyncdirs_example or rsync or warning_captured_deprecated_in_pytest_6)"
|
"test_init_rsync_roots"
|
||||||
'';
|
"test_rsyncignore"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "py.test xdist plugin for distributed testing and loop-on-failing modes";
|
description = "py.test xdist plugin for distributed testing and loop-on-failing modes";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user