Skip to content

Commit

Permalink
Explicitly require psycopg2.
Browse files Browse the repository at this point in the history
The downstream spec file was recently refactored to use Python
dependency autogeneration, and in the process all Requires: lines
on Python packages were removed, including psycopg2. This caused
Bodhi to fail to run when installed from that spec file,
highlighting that upstream should have listed psycopg2 as a
requirement.

PostgreSQL is Bodhi's only supported database and has long been so,
though it has not been formally listed in the requirements.txt
until this commit.

Signed-off-by: Randy Barlow <[email protected]>
(cherry picked from commit 2f8dd96)
  • Loading branch information
bowlofeggs committed Feb 14, 2019
1 parent 2b65b8c commit bf13c70
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions devel/ci/Dockerfile-f28
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ RUN dnf install --disablerepo rawhide-modular -y \
python2-markdown \
python2-mock \
python2-pillow \
python2-psycopg2 \
python2-pyramid-mako \
python2-pytest-cov \
python2-responses \
Expand All @@ -54,6 +55,7 @@ RUN dnf install --disablerepo rawhide-modular -y \
python3-mock \
python3-munch \
python3-pillow \
python3-psycopg2 \
python3-pydocstyle \
python3-pylibravatar \
python3-pyramid-mako \
Expand Down
2 changes: 2 additions & 0 deletions devel/ci/Dockerfile-f29
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ RUN dnf install --disablerepo rawhide-modular -y \
python2-markdown \
python2-mock \
python2-pillow \
python2-psycopg2 \
python2-pyramid-mako \
python2-pytest-cov \
python2-responses \
Expand All @@ -55,6 +56,7 @@ RUN dnf install --disablerepo rawhide-modular -y \
python3-mock \
python3-munch \
python3-pillow \
python3-psycopg2 \
python3-pydocstyle \
python3-pylibravatar \
python3-pyramid-mako \
Expand Down
1 change: 1 addition & 0 deletions devel/ci/Dockerfile-rawhide
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ RUN dnf install --disablerepo rawhide-modular -y \
python3-mock \
python3-munch \
python3-pillow \
python3-psycopg2 \
python3-pydocstyle \
python3-pylibravatar \
python3-pyramid-fas-openid \
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ markdown
packagedb-cli; python_version <= '2.7'
# for captchas
Pillow
psycopg2
pyDNS; python_version <= '2.7' # Should be required by pyLibravatar https://bugs.launchpad.net/pylibravatar/+bug/1661218
py3dns; python_version >= '3.0' # Should be required by pyLibravatar https://bugs.launchpad.net/pylibravatar/+bug/1661218
pylibravatar
Expand Down

0 comments on commit bf13c70

Please sign in to comment.