Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make copr_messaging optional #2590

Merged
merged 1 commit into from
Mar 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backend/copr-backend.spec
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ Requires: openssh-clients
Requires: prunerepo >= %prunerepo_version
Requires: python3-copr
Requires: python3-copr-common >= %copr_common_version
Requires: python3-copr-messaging
Recommends: python3-copr-messaging
Requires: python3-daemon
Requires: python3-dateutil
Requires: python3-fedmsg
Recommends: python3-fedmsg
Requires: python3-filelock
Requires: python3-gobject
Requires: python3-humanize
Expand Down
6 changes: 5 additions & 1 deletion backend/copr_backend/msgbus.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
import copy
import json

from copr_messaging import schema
try:
from copr_messaging import schema
except ImportError:
# copr_messaging is optional
schema = None

from .constants import BuildStatus

Expand Down