mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-23 17:04:19 +01:00
perf(nix): keep the VM library's unit tests out of the suites' source
komorebiVm (the python package every KDE VM suite imports) took all of lib/, including lib/tests. The VM never runs those tests and setuptools does not package them, but editing one changed komorebiVm and so rebuilt every suite (34 of 34, about 50 min of the fast tier). It now takes lib/ minus lib/tests. libCheck (vm-lib) keeps its own source, so the unit tests still run. Verified (nix eval of drvPath in a throwaway git copy): an edit of lib/tests/test_keys.py leaves kfde-vm.stacks and kfde-vm.commands unchanged (before: both changed). Not verified by a build.
This commit is contained in:
1 parent
f861a03adb
commit
262f44d2b6
1 file changed
+3
-1
@@ -40,7 +40,9 @@ let
|
||||
pyproject = true;
|
||||
src = lib.fileset.toSource {
|
||||
root = ./lib;
|
||||
fileset = ./lib;
|
||||
# not the unit tests: the VM never runs them (setuptools does not package them), so
|
||||
# editing one must not rebuild every suite; `libCheck` keeps them
|
||||
fileset = lib.fileset.difference ./lib ./lib/tests;
|
||||
};
|
||||
build-system = [ ps.setuptools ];
|
||||
dependencies = [ ps.pillow ];
|
||||
|
||||
Reference in new issue
Block a user