]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: add zipapp-reqs.txt, mirroring cephadm's zipapp dependencies
authorJohn Mulligan <jmulligan@redhat.com>
Fri, 14 Jul 2023 19:44:09 +0000 (15:44 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Fri, 3 Nov 2023 22:51:49 +0000 (18:51 -0400)
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 <jmulligan@redhat.com>
src/cephadm/zipapp-reqs.txt [new file with mode: 0644]

diff --git a/src/cephadm/zipapp-reqs.txt b/src/cephadm/zipapp-reqs.txt
new file mode 100644 (file)
index 0000000..cf36f87
--- /dev/null
@@ -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