Skip to content
Snippets Groups Projects
Forked from Platform / Development / swh-journal
55 commits behind the upstream repository.
Antoine Lambert's avatar
Antoine Lambert authored
black is considered stable since release 22.1.0 and the version
we are currently using is quite outdated and not compatible with
click 8.1.0, so it is time to bump it to its latest stable release.

Please note that E501 pycodestyle warning related to line length
is replaced by B950 one from flake8-bugbear as recommended by black.
https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#line-length

Related to T3922
e0447de8
History

swh-journal

Persistent logger of changes to the archive, with publish-subscribe support.

See the documentation for more details.

Local test

As a pre-requisite, you need a kakfa installation path. The following target will take care of this:

make install

Then, provided you are in the right virtual environment as described in the swh getting-started:

pytest

or:

tox

Running

publisher

Command:

$ swh-journal --config-file ~/.config/swh/journal/publisher.yml \
              publisher

Auto-completion

To have the completion, add the following in your ~/.virtualenvs/swh/bin/postactivate:

eval "$(_SWH_JOURNAL_COMPLETE=$autocomplete_cmd swh-journal)"