fix(server): warn-on-sphinx-unsupported for python3.11 in engipy
test-runner / smoke (push) Canceled after 0s
test-runner / smoke (push) Canceled after 0s
engipy webapp использует pkgs.python311.withPackages (fastapi, pydantic, sentence-transformers, torch). При evaluation Nix встречает python3.11-sphinx-9.1.0 как транзитивную docs-dep — а она не поддерживает python 3.11 (broken). sphinx не нужен в runtime, и реальная БД от него не зависит, поэтому глушим ошибку до warning через nixpkgs.problems.handlers (см. .agent/rules/project-rules.md R1 — outputs должны вычисляться).
This commit is contained in:
1 parent
02c49d44c3
commit
352dca3595
1 file changed
+8
@@ -76,6 +76,14 @@
|
|||||||
torch
|
torch
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
|
# engipy webapp (uvicorn) тащит python311 + fastapi + pydantic +
|
||||||
|
# sentence-transformers. sphinx-9.1.0 не поддерживается для python3.11
|
||||||
|
# (см. https://nixos.org/manual/nixpkgs/unstable#sec-problems — unsupportedPython).
|
||||||
|
# sphinx не используется в runtime, поэтому глушим evaluation-error до
|
||||||
|
# warning. Альтернатива — переезд на pkgs.python312, но проще держать
|
||||||
|
# python311 в соответствие с тем, как код собирается локально.
|
||||||
|
nixpkgs.config.problems.handlers.sphinx.unsupportedPython = "warn";
|
||||||
|
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
(xlib.helpers.mkTmpfile "d" "/mnt" "0755" "root" "root")
|
(xlib.helpers.mkTmpfile "d" "/mnt" "0755" "root" "root")
|
||||||
(xlib.helpers.mkTmpfile "d" xlib.dirs.services-mnt-folder "0755" "root" "root")
|
(xlib.helpers.mkTmpfile "d" xlib.dirs.services-mnt-folder "0755" "root" "root")
|
||||||
|
|||||||
Reference in new issue
Block a user