From 37810d327ef1585791292249ec76dafe65b544ac Mon Sep 17 00:00:00 2001 From: Tim McCormack Date: Tue, 9 Aug 2022 13:39:32 -0400 Subject: [PATCH] docs: Fix badges and other cookiecutter-created repo/package references (#22) --- CHANGELOG.rst | 8 ++++++ README.rst | 26 +++++++++---------- edx_event_bus_kafka/__init__.py | 2 +- .../publishing/event_producer.py | 1 + 4 files changed, 23 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index a883efe7..fb6d5eea 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -15,6 +15,14 @@ Unreleased ~~~~~~~~~~ * +[0.3.0] - 2022-08-10 +~~~~~~~~~~~~~~~~~~~~ + +* Moved configuration onto separate file. + +Fixed +_____ + [0.2.0] - 2022-08-09 ~~~~~~~~~~~~~~~~~~~~ diff --git a/README.rst b/README.rst index eda9670b..0a8740f3 100644 --- a/README.rst +++ b/README.rst @@ -44,7 +44,7 @@ One Time Setup .. code-block:: # Clone the repository - git clone git@github.com:edx/event-bus-kafka.git + git clone git@github.com:openedx/event-bus-kafka.git cd event-bus-kafka # Set up a virtualenv using virtualenvwrapper with the same name as the repo and activate it @@ -131,26 +131,26 @@ For more information about these options, see the `Getting Help`_ page. .. _community Slack workspace: https://openedx.slack.com/ .. _Getting Help: https://openedx.org/getting-help -.. |pypi-badge| image:: https://img.shields.io/pypi/v/event-bus-kafka.svg - :target: https://pypi.python.org/pypi/event-bus-kafka/ +.. |pypi-badge| image:: https://img.shields.io/pypi/v/edx-event-bus-kafka.svg + :target: https://pypi.python.org/pypi/edx-event-bus-kafka/ :alt: PyPI -.. |ci-badge| image:: https://github.com/edx/event-bus-kafka/workflows/Python%20CI/badge.svg?branch=main - :target: https://github.com/edx/event-bus-kafka/actions +.. |ci-badge| image:: https://github.com/openedx/event-bus-kafka/workflows/Python%20CI/badge.svg?branch=main + :target: https://github.com/openedx/event-bus-kafka/actions :alt: CI -.. |codecov-badge| image:: https://codecov.io/github/edx/event-bus-kafka/coverage.svg?branch=main - :target: https://codecov.io/github/edx/event-bus-kafka?branch=main +.. |codecov-badge| image:: https://codecov.io/github/openedx/event-bus-kafka/coverage.svg?branch=main + :target: https://codecov.io/github/openedx/event-bus-kafka?branch=main :alt: Codecov -.. |doc-badge| image:: https://readthedocs.org/projects/event-bus-kafka/badge/?version=latest - :target: https://event-bus-kafka.readthedocs.io/en/latest/ +.. |doc-badge| image:: https://readthedocs.org/projects/edx-event-bus-kafka/badge/?version=latest + :target: https://edx-event-bus-kafka.readthedocs.io/en/latest/ :alt: Documentation -.. |pyversions-badge| image:: https://img.shields.io/pypi/pyversions/event-bus-kafka.svg - :target: https://pypi.python.org/pypi/event-bus-kafka/ +.. |pyversions-badge| image:: https://img.shields.io/pypi/pyversions/edx-event-bus-kafka.svg + :target: https://pypi.python.org/pypi/edx-event-bus-kafka/ :alt: Supported Python versions -.. |license-badge| image:: https://img.shields.io/github/license/edx/event-bus-kafka.svg - :target: https://github.com/edx/event-bus-kafka/blob/main/LICENSE.txt +.. |license-badge| image:: https://img.shields.io/github/license/openedx/event-bus-kafka.svg + :target: https://github.com/openedx/event-bus-kafka/blob/main/LICENSE.txt :alt: License diff --git a/edx_event_bus_kafka/__init__.py b/edx_event_bus_kafka/__init__.py index 63623c68..69e91584 100644 --- a/edx_event_bus_kafka/__init__.py +++ b/edx_event_bus_kafka/__init__.py @@ -2,4 +2,4 @@ Kafka implementation for Open edX event bus. """ -__version__ = '0.2.0' +__version__ = '0.3.0' diff --git a/edx_event_bus_kafka/publishing/event_producer.py b/edx_event_bus_kafka/publishing/event_producer.py index b0a77514..d9cfdafd 100644 --- a/edx_event_bus_kafka/publishing/event_producer.py +++ b/edx_event_bus_kafka/publishing/event_producer.py @@ -144,6 +144,7 @@ def get_producer_for_signal(signal: OpenEdxPublicSignal, event_key_field: str) - return None signal_serializer = get_serializer(signal) + def inner_to_dict(event_data, ctx=None): # pylint: disable=unused-argument """Tells Avro how to turn objects into dictionaries.""" return signal_serializer.to_dict(event_data)