Skip to content

Commit

Permalink
Add python-libselinux (#7)
Browse files Browse the repository at this point in the history
* Add python-libselinux

This is required for installing molecule, as you can see in ansible/molecule#2660 (comment), so it's a good candidate to be bundled by default.

@Tecnativa TT25794
  • Loading branch information
yajo authored Feb 4, 2021
1 parent e22b965 commit 5b76cb4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"[python]": {
"editor.defaultFormatter": "ms-python.python",
"editor.formatOnSave": true
}
},
"python.testing.pytestArgs": ["--prebuild"]
}
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ RUN dnf install -y \
pre-commit \
python \
python-pip \
python3-libselinux \
skopeo \
&& pip install --no-cache-dir \
versort \
Expand Down
5 changes: 5 additions & 0 deletions tests/test_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,8 @@
def test_binaries(cexec, tool):
"""Make sure all required binaries are installed."""
assert cexec(tool, "--version")


def test_python_libselinux(cexec):
"""Ensure python libselinux package is installed."""
assert cexec("python", "-c", "import selinux; print(selinux.__file__)")

0 comments on commit 5b76cb4

Please sign in to comment.