Skip to content

Commit

Permalink
Merge pull request #5939 from freedomofpress/update-builder-182
Browse files Browse the repository at this point in the history
Updated focal builder image
  • Loading branch information
emkll committed May 17, 2021
2 parents 6eb5ac8 + fc78532 commit 5d1a601
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion install_files/securedrop-app-code/debian/rules
Expand Up @@ -28,7 +28,7 @@ override_dh_virtualenv:
dh_virtualenv \
--python=/usr/bin/python3 \
--builtin-venv \
--preinstall setuptools-scm==5.0.2 \
--preinstall setuptools-scm==6.0.1 \
--extra-pip-arg "--verbose" \
--extra-pip-arg "--no-deps" \
--extra-pip-arg "--no-binary=:all:" \
Expand Down
4 changes: 2 additions & 2 deletions molecule/builder-focal/image_hash
@@ -1,2 +1,2 @@
# sha256 digest quay.io/freedomofpress/sd-docker-builder-focal:2021_04_14
46e06c9a83ec7f8f11d227aaaefb1da3b33d35c95f963d54087bcee965fae59e
# sha256 digest quay.io/freedomofpress/sd-docker-builder-focal:2021_05_13
0bb7bfdad1336057b3d7a84528efba0f8ba14520b8de139f52df6f382c58e1a7
10 changes: 6 additions & 4 deletions molecule/testinfra/app/test_appenv.py
@@ -1,4 +1,3 @@
import os.path
import pytest

import testutils
Expand All @@ -9,9 +8,12 @@

@pytest.mark.parametrize('exp_pip_pkg', sdvars.pip_deps)
def test_app_pip_deps(host, exp_pip_pkg):
""" Ensure pip dependencies are installed """
pip = host.pip_package.get_packages(pip_path=os.path.join(sdvars.securedrop_venv_bin, "pip"))
assert pip[exp_pip_pkg['name']]['version'] == exp_pip_pkg['version']
""" Ensure expected package versions are installed """
cmd = "{}/bin/python3 -c \"from importlib.metadata import version; print(version('{}'))\"".format( # noqa
sdvars.securedrop_venv, exp_pip_pkg['name']
)
result = host.run(cmd)
assert result.stdout.strip() == exp_pip_pkg['version']


@pytest.mark.skip_in_prod
Expand Down

0 comments on commit 5d1a601

Please sign in to comment.