From e708f2e15973ae9d4745c50f22bd753c42c5ed88 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Fri, 14 Jul 2023 15:44:09 -0400 Subject: [PATCH] cephadm: add zipapp-reqs.txt, mirroring cephadm's zipapp dependencies Add Jinja2 and MarkupSafe dependencies to a requirements.txt style file. This file tracks the dependencies needed to run the cephadm libs in the unit test framework. The actual dependencies that get added to the ziapp are managed by build.py but mirrored here. Signed-off-by: John Mulligan --- src/cephadm/zipapp-reqs.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/cephadm/zipapp-reqs.txt diff --git a/src/cephadm/zipapp-reqs.txt b/src/cephadm/zipapp-reqs.txt new file mode 100644 index 00000000000..cf36f87b2bc --- /dev/null +++ b/src/cephadm/zipapp-reqs.txt @@ -0,0 +1,16 @@ +# Requirements for the cephadm zipapp (aka the binary). +# +# IMPORTANT: The cephadm binary is expected to be portable across python +# versions and CPU architectures. Dependencies are copied into the zipapp +# by the build script and must not require compiled C (or C++, Rust, etc) +# modules. Modules that have an optional C accelerator but can fall back +# to pure python are OK. When you add a package to this list verify that +# build.py creates the zipapp with only python files. +# +# IMPORTANT: This file is only used for installing the requirements that +# cephaadm needs for the tox/unit tests. The actual zipapp is build using +# the build.py script. The PY_REQUIREMENTS value in that script *must* +# be kept in sync with this list. +# +MarkupSafe >= 2.1.3, <2.2 +Jinja2 >= 3.1.2, <3.2 -- 2.39.5