From 697d5a6eedc2be5c9ef550324a46709b77a166dd Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Oct 24 2016 07:46:41 +0000 Subject: [PATCH 1/4] Specify in the README that the virtualenv must be py3 --- diff --git a/README.rst b/README.rst index 8c22380..0e6a5a9 100644 --- a/README.rst +++ b/README.rst @@ -24,7 +24,7 @@ development instance of this project, follow these steps: :: - mkvirtualenv mdapi + mkvirtualenv mdapi -p python3 * Install the dependencies From 634f2fe05a26e1bfd93a1191f8ea2c1b09bacbd9 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Oct 24 2016 13:07:48 +0000 Subject: [PATCH 2/4] Add a fedmsg.d/mdapi.py file so it helps working in a venv --- diff --git a/fedmsg.d/mdapi.py b/fedmsg.d/mdapi.py new file mode 100644 index 0000000..59def05 --- /dev/null +++ b/fedmsg.d/mdapi.py @@ -0,0 +1,17 @@ +""" This is an example mdapi configuration for fedmsg. +By convention, it is normally installed as ``/etc/fedmsg.d/mdapi.py`` + +For Fedora Infrastructure this file is not needed as we use dynamic +fedmsg endpoints. +""" + +import socket +hostname = socket.gethostname().split('.')[0] + +config = dict( + endpoints={ + "mdapi.%s" % hostname: [ + "tcp://127.0.0.1:3005", + ], + }, +) From e33165128cd63cf538e6a9c9778b8e82ce6ecf45 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Oct 25 2016 09:13:41 +0000 Subject: [PATCH 3/4] Require all fedmsg modules --- diff --git a/requirements.txt b/requirements.txt index 52e6698..69181a8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ aiohttp +fedmsg[all] requests sqlalchemy werkzeug -fedmsg From dedbdef1d54db8cdb47e4572f96c60769569d290 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Dec 28 2016 16:03:04 +0000 Subject: [PATCH 4/4] Small pep8 fix as suggested by @bowlofeggs --- diff --git a/fedmsg.d/mdapi.py b/fedmsg.d/mdapi.py index 59def05..b002ff8 100644 --- a/fedmsg.d/mdapi.py +++ b/fedmsg.d/mdapi.py @@ -6,6 +6,8 @@ fedmsg endpoints. """ import socket + + hostname = socket.gethostname().split('.')[0] config = dict(