Skip to content

Commit d1b8eba

Browse files
committed
Fix salt tests
Seems salt python package doesn't pull its dependencies... So install them manually, at least thoses required use salt.client python api.
1 parent 006dad9 commit d1b8eba

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

images/debian_bookworm/Dockerfile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,7 @@ RUN /v/bin/pip install -U pip
6666
RUN /v/bin/pip install 'requests==2.30.0'
6767

6868
# install salt
69-
ARG _BUILD_DEPS="gcc g++ libc6-dev python3-dev"
70-
RUN apt update && apt install -y $_BUILD_DEPS && \
71-
python3 -m pip install --break-system-packages --no-cache salt && \
72-
apt -y purge $_BUILD_DEPS && \
73-
apt -y autoremove --purge && \
74-
rm -rf /var/lib/apt/lists/*
69+
RUN python3 -m pip install --break-system-packages --no-cache salt tornado distro looseversion msgpack pyyaml packaging jinja2
7570

7671
ENV LANG fr_FR.ISO-8859-15
7772
ENV LANGUAGE fr_FR

test-requirements.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ pytest-cov
22
pytest-xdist
33
paramiko
44
types-paramiko
5-
salt
65
pywinrm
76
ansible
7+
salt
8+
# XXX: salt.client dependencies
9+
tornado
10+
distro
11+
looseversion
12+
msgpack

0 commit comments

Comments
 (0)