Matridge 0.2.2__tar.gz → 0.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. {matridge-0.2.2 → matridge-0.3.0}/.copier-answers.yml +4 -2
  2. {matridge-0.2.2 → matridge-0.3.0}/.woodpecker/container.yaml +4 -3
  3. {matridge-0.2.2 → matridge-0.3.0}/.woodpecker/docs.yaml +1 -2
  4. {matridge-0.2.2 → matridge-0.3.0}/.woodpecker/test.yaml +1 -2
  5. matridge-0.3.0/CONTRIBUTING.md +100 -0
  6. {matridge-0.2.2 → matridge-0.3.0}/Dockerfile +5 -10
  7. {matridge-0.2.2/matridge.egg-info → matridge-0.3.0}/PKG-INFO +16 -32
  8. matridge-0.3.0/README.md +42 -0
  9. matridge-0.3.0/assets/matrix_outline.png +0 -0
  10. matridge-0.3.0/assets/matrix_outline.svg +71 -0
  11. {matridge-0.2.2/docs/source → matridge-0.3.0/docs/source/admin}/config.rst +11 -1
  12. matridge-0.3.0/docs/source/admin/index.rst +15 -0
  13. matridge-0.3.0/docs/source/admin/install.rst +71 -0
  14. {matridge-0.2.2 → matridge-0.3.0}/docs/source/conf.py +1 -1
  15. matridge-0.3.0/docs/source/contributing.rst +5 -0
  16. matridge-0.3.0/docs/source/index.rst +39 -0
  17. {matridge-0.2.2/docs/source → matridge-0.3.0/docs/source/user}/features.rst +5 -1
  18. matridge-0.3.0/docs/source/user/index.rst +14 -0
  19. matridge-0.3.0/docs/source/user/registration.rst +16 -0
  20. matridge-0.2.2/docs/source/user.rst → matridge-0.3.0/docs/source/user/usage.rst +4 -3
  21. {matridge-0.2.2 → matridge-0.3.0}/matridge/command.py +5 -2
  22. {matridge-0.2.2 → matridge-0.3.0}/matridge/gateway.py +6 -6
  23. {matridge-0.2.2 → matridge-0.3.0}/matridge/group.py +4 -4
  24. {matridge-0.2.2 → matridge-0.3.0}/matridge/matrix.py +32 -8
  25. {matridge-0.2.2 → matridge-0.3.0}/matridge/session.py +14 -12
  26. {matridge-0.2.2 → matridge-0.3.0}/matridge/util.py +19 -2
  27. {matridge-0.2.2 → matridge-0.3.0/matridge.egg-info}/PKG-INFO +16 -32
  28. {matridge-0.2.2 → matridge-0.3.0}/matridge.egg-info/SOURCES.txt +11 -4
  29. {matridge-0.2.2 → matridge-0.3.0}/matridge.egg-info/requires.txt +1 -1
  30. {matridge-0.2.2 → matridge-0.3.0}/pyproject.toml +1 -1
  31. matridge-0.3.0/uv.lock +2040 -0
  32. matridge-0.2.2/README.md +0 -58
  33. matridge-0.2.2/docs/source/index.rst +0 -27
  34. matridge-0.2.2/docs/source/readme.rst +0 -1
  35. matridge-0.2.2/uv.lock +0 -1780
  36. {matridge-0.2.2 → matridge-0.3.0}/.gitignore +0 -0
  37. {matridge-0.2.2 → matridge-0.3.0}/.pre-commit-config.yaml +0 -0
  38. {matridge-0.2.2 → matridge-0.3.0}/.woodpecker/autoupdate-deps.yaml +0 -0
  39. {matridge-0.2.2 → matridge-0.3.0}/.woodpecker/package.yaml +0 -0
  40. {matridge-0.2.2 → matridge-0.3.0}/LICENSE +0 -0
  41. {matridge-0.2.2 → matridge-0.3.0}/commitlint.config.js +0 -0
  42. {matridge-0.2.2 → matridge-0.3.0}/doap.xml +0 -0
  43. {matridge-0.2.2 → matridge-0.3.0}/docker-compose.yml +0 -0
  44. {matridge-0.2.2 → matridge-0.3.0}/docs/Makefile +0 -0
  45. {matridge-0.2.2 → matridge-0.3.0}/docs/source/codeberg.svg +0 -0
  46. {matridge-0.2.2 → matridge-0.3.0}/matridge/__init__.py +0 -0
  47. {matridge-0.2.2 → matridge-0.3.0}/matridge/__main__.py +0 -0
  48. {matridge-0.2.2 → matridge-0.3.0}/matridge/config.py +0 -0
  49. {matridge-0.2.2 → matridge-0.3.0}/matridge/contact.py +0 -0
  50. {matridge-0.2.2 → matridge-0.3.0}/matridge/reactions.py +0 -0
  51. {matridge-0.2.2 → matridge-0.3.0}/matridge.egg-info/dependency_links.txt +0 -0
  52. {matridge-0.2.2 → matridge-0.3.0}/matridge.egg-info/entry_points.txt +0 -0
  53. {matridge-0.2.2 → matridge-0.3.0}/matridge.egg-info/top_level.txt +0 -0
  54. {matridge-0.2.2 → matridge-0.3.0}/setup.cfg +0 -0
  55. {matridge-0.2.2 → matridge-0.3.0}/tests/test_base.py +0 -0
  56. {matridge-0.2.2 → matridge-0.3.0}/tests/test_conversion.py +0 -0
  57. {matridge-0.2.2 → matridge-0.3.0}/tests/test_reactions.py +0 -0
@@ -1,7 +1,7 @@
1
1
  # Do not edit manually!
2
2
  # Changes here will be overwritten by copier.
3
3
  # https://copier.readthedocs.io/
4
- _commit: 6fcd5f7
4
+ _commit: 88d0a39
5
5
  _src_path: git+https://codeberg.org/slidge/legacy-module-template
6
6
  authors:
7
7
  - email: nicoco@nicoco.fr
@@ -27,12 +27,13 @@ container_runtime_deps: []
27
27
  custom_build_system: ''
28
28
  custom_readme_head: ''
29
29
  custom_readme_tail: ''
30
+ debian_bundle: true
30
31
  dependencies:
31
32
  - matrix-nio[e2e]>=0.25,<0.26
32
33
  - beautifulsoup4>=4.12.2,<5
33
34
  - async-lru>=2.0.3,<3
34
35
  - slidge-style-parser>=0.1.6
35
- - slidge>=0.2.5,<0.3
36
+ - slidge>=0.3.0alpha3,<0.4
36
37
  dev_dependencies:
37
38
  - types-beautifulsoup4>=4.12.0.20241020
38
39
  intersphinx_mappings: []
@@ -42,6 +43,7 @@ mypy_ignores:
42
43
  native_builds: false
43
44
  pre_commit_custom_hooks: ''
44
45
  project_name: matridge
46
+ repology: slidge-matridge
45
47
  requires_lottie: false
46
48
  silo:
47
49
  lib:
@@ -8,6 +8,7 @@ when:
8
8
  - Dockerfile
9
9
  - pyproject.toml
10
10
  - uv.lock
11
+ - .woodpecker/container.yaml
11
12
 
12
13
  labels:
13
14
  platform: linux/amd64
@@ -36,7 +37,7 @@ variables:
36
37
 
37
38
  steps:
38
39
  build-tag:
39
- image: woodpeckerci/plugin-docker-buildx
40
+ image: woodpeckerci/plugin-docker-buildx:6.0.2
40
41
  when:
41
42
  event: [tag]
42
43
  settings:
@@ -48,7 +49,7 @@ steps:
48
49
  build-branch:
49
50
  when:
50
51
  event: [push]
51
- image: woodpeckerci/plugin-docker-buildx
52
+ image: woodpeckerci/plugin-docker-buildx:6.0.2
52
53
  settings:
53
54
  <<: *settings
54
55
  tags:
@@ -58,7 +59,7 @@ steps:
58
59
  when:
59
60
  event: [push]
60
61
  branch: ${CI_REPO_DEFAULT_BRANCH}
61
- image: woodpeckerci/plugin-docker-buildx
62
+ image: woodpeckerci/plugin-docker-buildx:6.0.2
62
63
  settings:
63
64
  <<: *settings
64
65
  target: ci
@@ -3,14 +3,13 @@
3
3
 
4
4
  when:
5
5
  event: [push, tag, pull_request]
6
- path: ["matridge/**/*.py", "docs/**/*", "README.md"]
6
+ path: ["matridge/**/*.py", "docs/**/*", "uv.lock", ".woodpecker/docs.yaml"]
7
7
 
8
8
  steps:
9
9
  build:
10
10
  image: codeberg.org/${CI_REPO_OWNER}/matridge:ci
11
11
  pull: true
12
12
  commands:
13
- - cp -r /venv .venv
14
13
  - uv sync --all-groups --all-extras
15
14
  - cd docs && make html
16
15
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  when:
5
5
  event: [push, pull_request]
6
- path: [pyproject.toml, uv.lock, "**/*.py"]
6
+ path: [pyproject.toml, uv.lock, "**/*.py", ".woodpecker/test.yaml"]
7
7
 
8
8
  variables:
9
9
  - &ci-image codeberg.org/${CI_REPO_OWNER}/matridge:ci
@@ -13,7 +13,6 @@ steps:
13
13
  image: *ci-image
14
14
  pull: true
15
15
  commands:
16
- - cp -r /venv .venv
17
16
  - uv sync --all-groups --all-extras
18
17
 
19
18
  ruff:
@@ -0,0 +1,100 @@
1
+ # Contributing
2
+
3
+ We are really happy to welcome new contributors to matridge!
4
+ Before starting anything, please join [our chat room](xmpp:slidge@conference.nicoco.fr?join)
5
+ to say hi and see if anyone is already working on the bug you want to fix or
6
+ the feature you want to implement.
7
+
8
+ ## Quickstart
9
+
10
+ To start hacking on matridge, you need to:
11
+
12
+ 1. Clone the repository: `git clone https://codeberg.org/slidge/matridge`.
13
+ 2. Install the required dependencies. (see below)
14
+ 3. Spin up a development XMPP server for matridge to connect to. (see below)
15
+
16
+ ### Easy mode: docker-compose
17
+
18
+ The easiest way to achieve 2 and 3 at the same time is to use the provided
19
+ `docker-compose.yml` file. Run ``docker compose up`` (or ``podman-compose up``)
20
+ in the directory of the repository you just cloned. It will:
21
+
22
+ - spin up a [prosody](https://prosody.im) instance configured for development;
23
+ - launch matridge in a dedicated container, with hot code reload.
24
+
25
+ You will then be able to connect to that prosody using any XMPP client, using
26
+ "test@localhost" as JID and "password" as password. We recommended
27
+ [gajim](https://gajim.org) which lets you start a different profile than your
28
+ main profile: `gajim -p slidge -c ~/.local/share/gajim-slidge`.
29
+
30
+ To avoid having to accept self-signed certificates, you can add prosody's
31
+ certificate to your local store. In debian, you can do that with:
32
+
33
+ ```bash
34
+ # download the certificate
35
+ curl https://codeberg.org/slidge/prosody-dev-container/raw/branch/main/localhost.crt | sudo tee /usr/local/share/ca-certificates/localhost.crt
36
+ # set the right perms
37
+ chmod 600 /usr/local/share/ca-certificates/localhost.crt
38
+ # import it
39
+ sudo update-ca-certificates
40
+ ```
41
+
42
+ ### Slightly harder mode: setting up a virtualenv
43
+
44
+ In some situations, developing in containers is not optimal, for instance if
45
+ you want to attach an interactive debugger to the matridge process.
46
+
47
+ matridge defines its dependencies in a [PEP 517](https://peps.python.org/pep-0517/)-compliant
48
+ `pyproject.toml` file. This means that you can use different tools to set up a
49
+ virtualenv with the appropriate dependencies.
50
+
51
+ We recommend using [uv](https://docs.astral.sh/uv/) which is fast and has some
52
+ nice features. By running ``uv sync --frozen --all-groups --all-extras``, a
53
+ standard virtualenv will be installed in `./.venv`. You can then activate it
54
+ with `source .venv/bin/activate` and launch `matridge --help`.
55
+
56
+ NB: you will need to set up a local XMPP server. An easy way to do that is to
57
+ use the `slidge-prosody-dev` container: `docker run --network host codeberg.org/slidge/prosody-slidge-dev`.
58
+ With it you will be able to launch matridge with
59
+ ``matridge --jid slidge.localhost --secret secret --debug --home-dir ./persistent``.
60
+
61
+ ### Hacking on slidge core simultaneously
62
+
63
+ Maybe you will discover that what you want to change, add or fix is not part
64
+ of matridge but part of slidge core. To modify slidge core, first you
65
+ need to clone [the slidge repo](https://codeberg.org/slidge/slidge) somewhere
66
+ on your computer.
67
+
68
+ Let's assume you cloned `slidge` in the same root dir as `matridge`,
69
+ e.g., `~/src/matridge` and `~/src/slidge`.
70
+ With the `docker-compose`-based dev setup, you will need to add an additional
71
+ mount for the slidge dir, e.g., `../slidge:/build/slidge`. If you opted for
72
+ the virtualenv solution, you can install slidge in your virtualenv in editable
73
+ mode with `[uv] pip install -e ../slidge`.
74
+
75
+ ## Guidelines
76
+
77
+ matridge uses these tools to ensure some level of code quality:
78
+
79
+ - [mypy](https://www.mypy-lang.org/)
80
+ for static type checking,
81
+ - [ruff](https://docs.astral.sh/ruff/)
82
+ to detect common python mistakes and enforce a consistent style,
83
+ - [pytest](https://docs.pytest.org/en/stable/)
84
+ for automated tests.
85
+
86
+ Commit messages should be in the form of
87
+ [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/), with
88
+ some additional types defined in [./commitlinx.config.js](https://codeberg.org/slidge/matridge/src/branch/main/commitlint.config.js).
89
+ This makes it possible to automatically generate changelogs on releases, it
90
+ is worth it! We use [git-cliff](https://git-cliff.org/) for this. You don't have
91
+ to install git-cliff locally, the magic happens in CI.
92
+
93
+ We recommended setting up [pre-commit](https://pre-commit.com/) to ensure that
94
+ these pass for each commit: `pre-commit install && pre-commit install --hook-type commit-msg`.
95
+
96
+ Make a new git branch, commit your changes, push it to your fork and open a
97
+ pull request!
98
+
99
+ NB: we also accept contributions without pull requests. Just push your changes
100
+ somewhere and tell us where to pull via the group chat.
@@ -18,13 +18,7 @@ RUN apt-get update -y && \
18
18
  WORKDIR /build
19
19
  ENV UV_PROJECT_ENVIRONMENT=/venv
20
20
  ENV PATH="/venv/bin:/root/.cargo/bin:$PATH"
21
- # By making the venv relocatable, we can copy it to /workspace/.venv in CI, and only update
22
- # dependencies that might be out-of-date. If uv.lock is not modified, then updating
23
- # the .venv is a no-op.
24
- # This allows us to not wait on the CI container build for the test workflows to run,
25
- # and also to run workflows for pull requests that modify the lockfile. In this,
26
- # situation, updating the CI container is not an option.
27
- RUN uv venv $UV_PROJECT_ENVIRONMENT --relocatable
21
+ RUN uv venv $UV_PROJECT_ENVIRONMENT
28
22
  COPY uv.lock pyproject.toml README.md .
29
23
  COPY matridge matridge
30
24
  # install dependencies in /venv
@@ -36,12 +30,13 @@ RUN --mount=source=.git,target=/build/.git,type=bind \
36
30
  # ************
37
31
  FROM builder AS ci
38
32
 
39
- # In CI we copy /venv to .venv, then update it for the whole workflow.
33
+ # We won't use this venv in CI, but this populates the uv cache in the container,
34
+ # minimizing (or even nulling) downloads.
40
35
  RUN --mount=source=.git,target=/build/.git,type=bind \
41
36
  uv sync --all-groups --no-install-project
42
- ENV UV_PROJECT_ENVIRONMENT=.venv
37
+ ENV UV_PROJECT_ENVIRONMENT="/woodpecker/src/codeberg.org/slidge/matridge/.venv"
43
38
  ENV UV_LINK_MODE=copy
44
- ENV PATH="/woodpecker/src/codeberg.org/slidge/matridge/.venv/bin:$PATH"
39
+ ENV PATH="$UV_PROJECT_ENVIRONMENT/bin:$PATH"
45
40
 
46
41
  # Dev container
47
42
  # *************
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: matridge
3
- Version: 0.2.2
3
+ Version: 0.3.0
4
4
  Summary: A Matrix/XMPP gateway
5
5
  Author-email: Nicolas Cedilnik <nicoco@nicoco.fr>
6
6
  License-Expression: AGPL-3.0-or-later
@@ -19,64 +19,48 @@ Requires-Dist: matrix-nio[e2e]<0.26,>=0.25
19
19
  Requires-Dist: beautifulsoup4<5,>=4.12.2
20
20
  Requires-Dist: async-lru<3,>=2.0.3
21
21
  Requires-Dist: slidge-style-parser>=0.1.6
22
- Requires-Dist: slidge<0.3,>=0.2.5
22
+ Requires-Dist: slidge<0.4,>=0.3.0alpha3
23
23
  Dynamic: license-file
24
24
 
25
25
  # matridge
26
26
 
27
27
  A
28
- [feature-rich](https://slidge.im/docs/matridge/main/features.html)
28
+ [feature-rich](https://slidge.im/docs/matridge/main/user/features.html)
29
29
  [Matrix](https://matrix.org) to
30
30
  [XMPP](https://xmpp.org/) puppeteering
31
31
  [gateway](https://xmpp.org/extensions/xep-0100.html), based on
32
32
  [slidge](https://slidge.im) and
33
33
  [nio](https://matrix-nio.readthedocs.io/).
34
34
 
35
- [![PyPI package version](https://badge.fury.io/py/matridge.svg)](https://pypi.org/project/matridge/)
36
35
  [![CI pipeline status](https://ci.codeberg.org/api/badges/14069/status.svg)](https://ci.codeberg.org/repos/14069)
37
36
  [![Chat](https://conference.nicoco.fr:5281/muc_badge/slidge@conference.nicoco.fr)](https://slidge.im/xmpp-web/#/guest?join=slidge@conference.nicoco.fr)
37
+ [![PyPI package version](https://badge.fury.io/py/matridge.svg)](https://pypi.org/project/matridge/)
38
38
 
39
+ [![Packaging status](https://repology.org/badge/vertical-allrepos/slidge-matridge.svg)](https://repology.org/project/slidge-matridge/versions)
39
40
 
40
- ## Installation
41
-
42
- Refer to the [slidge admin documentation](https://slidge.im/docs/slidge/main/admin/)
43
- for general info on how to set up an XMPP server component.
44
41
 
45
- ### Containers
42
+ matridge lets you chat with users of Matrix without leaving your favorite XMPP client.
46
43
 
47
- From [the codeberg package registry](https://codeberg.org/slidge/-/packages/container/matridge/latest)
44
+ ## Quickstart
48
45
 
49
46
  ```sh
50
- docker run codeberg.org/slidge/matridge # works with podman too
47
+ docker run codeberg.org/slidge/matridge \ # works with podman too
48
+ --jid matrix.example.org \ # can be whatever you want it to be
49
+ --secret some-secret \ # must match your XMPP server config
50
+ --home-dir /somewhere/writeable # for data persistence
51
51
  ```
52
52
 
53
53
  Use the `:latest` tag for the latest release, `:vX.X.X` for release X.X.X, and `:main`
54
54
  for the bleeding edge.
55
55
 
56
- ### Python package
57
-
58
- With [pipx](https://pypa.github.io/pipx/):
59
-
60
- ```sh
61
-
62
- # for the latest stable release (if any)
63
- pipx install matridge
64
-
65
- # for the bleeding edge
66
- pipx install matridge \
67
- --pip-args='--extra-index-url https://codeberg.org/api/packages/slidge/pypi/simple/'
68
-
69
- matridge --help
70
- ```
56
+ If you do not like containers, other installation methods are detailed
57
+ [in the docs](https://slidge.im/docs/matridge/main/admin/install.html).
71
58
 
72
59
  ## Documentation
73
60
 
74
61
  Hosted on [codeberg pages](https://slidge.im/docs/matridge/main/).
75
62
 
76
- ## Dev
63
+ ## Contributing
77
64
 
78
- ```sh
79
- git clone https://codeberg.org/slidge/matridge
80
- cd matridge
81
- docker-compose up # works with podman-compose too
82
- ```
65
+ Contributions are **very** welcome, and we tried our best to make it easy
66
+ to start hacking on matridge. See [CONTRIBUTING.md](./CONTRIBUTING.md).
@@ -0,0 +1,42 @@
1
+ # matridge
2
+
3
+ A
4
+ [feature-rich](https://slidge.im/docs/matridge/main/user/features.html)
5
+ [Matrix](https://matrix.org) to
6
+ [XMPP](https://xmpp.org/) puppeteering
7
+ [gateway](https://xmpp.org/extensions/xep-0100.html), based on
8
+ [slidge](https://slidge.im) and
9
+ [nio](https://matrix-nio.readthedocs.io/).
10
+
11
+ [![CI pipeline status](https://ci.codeberg.org/api/badges/14069/status.svg)](https://ci.codeberg.org/repos/14069)
12
+ [![Chat](https://conference.nicoco.fr:5281/muc_badge/slidge@conference.nicoco.fr)](https://slidge.im/xmpp-web/#/guest?join=slidge@conference.nicoco.fr)
13
+ [![PyPI package version](https://badge.fury.io/py/matridge.svg)](https://pypi.org/project/matridge/)
14
+
15
+ [![Packaging status](https://repology.org/badge/vertical-allrepos/slidge-matridge.svg)](https://repology.org/project/slidge-matridge/versions)
16
+
17
+
18
+ matridge lets you chat with users of Matrix without leaving your favorite XMPP client.
19
+
20
+ ## Quickstart
21
+
22
+ ```sh
23
+ docker run codeberg.org/slidge/matridge \ # works with podman too
24
+ --jid matrix.example.org \ # can be whatever you want it to be
25
+ --secret some-secret \ # must match your XMPP server config
26
+ --home-dir /somewhere/writeable # for data persistence
27
+ ```
28
+
29
+ Use the `:latest` tag for the latest release, `:vX.X.X` for release X.X.X, and `:main`
30
+ for the bleeding edge.
31
+
32
+ If you do not like containers, other installation methods are detailed
33
+ [in the docs](https://slidge.im/docs/matridge/main/admin/install.html).
34
+
35
+ ## Documentation
36
+
37
+ Hosted on [codeberg pages](https://slidge.im/docs/matridge/main/).
38
+
39
+ ## Contributing
40
+
41
+ Contributions are **very** welcome, and we tried our best to make it easy
42
+ to start hacking on matridge. See [CONTRIBUTING.md](./CONTRIBUTING.md).
Binary file
@@ -0,0 +1,71 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ version="1.1"
4
+ viewBox="0 0 28.864001 33.004002"
5
+ id="svg3"
6
+ sodipodi:docname="Matrix (proog) logo.svg"
7
+ width="28.864"
8
+ height="33.004002"
9
+ inkscape:version="1.4.1 (93de688d07, 2025-03-30)"
10
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
11
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
12
+ xmlns="http://www.w3.org/2000/svg"
13
+ xmlns:svg="http://www.w3.org/2000/svg"
14
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
15
+ xmlns:cc="http://creativecommons.org/ns#"
16
+ xmlns:dc="http://purl.org/dc/elements/1.1/">
17
+ <defs
18
+ id="defs3" />
19
+ <sodipodi:namedview
20
+ id="namedview3"
21
+ pagecolor="#ffffff"
22
+ bordercolor="#000000"
23
+ borderopacity="0.25"
24
+ inkscape:showpageshadow="2"
25
+ inkscape:pageopacity="0.0"
26
+ inkscape:pagecheckerboard="0"
27
+ inkscape:deskcolor="#d1d1d1"
28
+ inkscape:zoom="24.0625"
29
+ inkscape:cx="11.283117"
30
+ inkscape:cy="23.18961"
31
+ inkscape:window-width="1920"
32
+ inkscape:window-height="978"
33
+ inkscape:window-x="0"
34
+ inkscape:window-y="0"
35
+ inkscape:window-maximized="1"
36
+ inkscape:current-layer="svg3" />
37
+ <title
38
+ id="title1">Matrix (protocol) logo</title>
39
+ <g
40
+ transform="translate(0.414,0.536)"
41
+ fill="#040404"
42
+ id="g3">
43
+ <path
44
+ d="M 27.1,31.2 V 0.7 h -2.19 v -0.732 h 3.04 v 32 h -3.04 v -0.732 z"
45
+ id="path1"
46
+ style="stroke:#ffffff;stroke-opacity:1" />
47
+ <path
48
+ d="M 27.1,31.2 V 0.7 h -2.19 v -0.732 h 3.04 v 32 h -3.04 v -0.732 z"
49
+ id="path1-5" />
50
+ <path
51
+ d="m 8.23,10.4 v 1.54 h 0.044 c 0.385,-0.564 0.893,-1.03 1.49,-1.37 0.58,-0.323 1.25,-0.485 1.99,-0.485 0.72,0 1.38,0.14 1.97,0.42 0.595,0.279 1.05,0.771 1.36,1.48 0.338,-0.5 0.796,-0.941 1.38,-1.32 0.58,-0.383 1.27,-0.574 2.06,-0.574 0.602,0 1.16,0.074 1.67,0.22 0.514,0.148 0.954,0.383 1.32,0.707 0.366,0.323 0.653,0.746 0.859,1.27 0.205,0.522 0.308,1.15 0.308,1.89 v 7.63 h -3.13 v -6.46 c 0,-0.383 -0.015,-0.743 -0.044,-1.08 -0.0209,-0.307 -0.103,-0.607 -0.242,-0.882 -0.133,-0.251 -0.336,-0.458 -0.584,-0.596 -0.257,-0.146 -0.606,-0.22 -1.05,-0.22 -0.44,0 -0.796,0.085 -1.07,0.253 -0.272,0.17 -0.485,0.39 -0.639,0.662 -0.159,0.287 -0.264,0.602 -0.308,0.927 -0.052,0.347 -0.078,0.697 -0.078,1.05 v 6.35 h -3.13 v -6.4 c 0,-0.338 -0.007,-0.673 -0.021,-1 -0.0114,-0.314 -0.0749,-0.623 -0.188,-0.916 -0.108,-0.277 -0.3,-0.512 -0.55,-0.673 -0.258,-0.168 -0.636,-0.253 -1.14,-0.253 -0.198,0.0083 -0.394,0.042 -0.584,0.1 -0.258,0.0745 -0.498,0.202 -0.705,0.374 -0.228,0.184 -0.422,0.449 -0.584,0.794 -0.161,0.346 -0.242,0.798 -0.242,1.36 v 6.62 h -3.13 v -11.4 z"
52
+ id="path2"
53
+ style="stroke:#ffffff;stroke-width:0.5;stroke-dasharray:none;stroke-opacity:1" />
54
+ <path
55
+ d="m 0.936,0.732 v 30.5 h 2.19 v 0.732 h -3.04 v -32 h 3.03 v 0.732 z"
56
+ id="path3"
57
+ style="stroke:#ffffff;stroke-opacity:1" />
58
+ <path
59
+ d="m 0.945,0.763 v 30.5 h 2.19 v 0.732 h -3.04 v -32 h 3.03 v 0.732 z"
60
+ id="path3-6" />
61
+ </g>
62
+ <metadata
63
+ id="metadata5">
64
+ <rdf:RDF>
65
+ <cc:Work
66
+ rdf:about="">
67
+ <dc:title>Matrix (protocol) logo</dc:title>
68
+ </cc:Work>
69
+ </rdf:RDF>
70
+ </metadata>
71
+ </svg>
@@ -1,3 +1,7 @@
1
+ ..
2
+ DO NOT EDIT
3
+ This file is automatically generated with copier using https://codeberg.org/slidge/legacy-module-template
4
+
1
5
  Configuration
2
6
  =============
3
7
 
@@ -36,6 +40,12 @@ matridge-specific config
36
40
 
37
41
  All `generic slidge configuration options <https://slidge.im/docs/slidge/main/admin/config/#common-config>`_
38
42
  apply.
39
- matridge provides these additional component-wide options:
43
+
44
+ matridge provides the additional component-wide options displayed in the table below.
45
+ They can be used:
46
+
47
+ * in an INI config file by starting matridge with ``-c /path/to/file.ini``;
48
+ * as command line arguments, prepended with ``--``, e.g., ``--some-option=value``;
49
+ * as environment variables, upper case, prepended with ``MATRIDGE_``, and with dashes substituted with underscores, e.g., ``MATRIDGE_SOME_OPTION=value``.
40
50
 
41
51
  .. config-obj:: matridge.config
@@ -0,0 +1,15 @@
1
+ ..
2
+ DO NOT EDIT
3
+ This file is automatically generated with copier using https://codeberg.org/slidge/legacy-module-template
4
+
5
+ ==========
6
+ For admins
7
+ ==========
8
+
9
+ If you are the administrator of an XMPP server and want to set up matridge,
10
+ this part of the documentation is made for you.
11
+
12
+ .. toctree::
13
+
14
+ install
15
+ config
@@ -0,0 +1,71 @@
1
+ ..
2
+ DO NOT EDIT
3
+ This file is automatically generated with copier using https://codeberg.org/slidge/legacy-module-template
4
+
5
+ Installation
6
+ ------------
7
+
8
+ Containers
9
+ ~~~~~~~~~~
10
+
11
+ A container is built on every push to the git repository and uploaded to `the codeberg package
12
+ registry <https://codeberg.org/slidge/-/packages/container/matridge/latest>`__.
13
+
14
+ .. code:: sh
15
+
16
+ docker run codeberg.org/slidge/matridge # works with podman too
17
+
18
+ Use the ``:latest`` tag for the latest release, ``:vX.X.X`` for release
19
+ X.X.X, and ``:main`` for the bleeding edge.
20
+
21
+
22
+ Distribution packages
23
+ ~~~~~~~~~~~~~~~~~~~~~
24
+
25
+ matridge is available in the official repositories of a few linux distributions.
26
+
27
+ .. image:: https://repology.org/badge/vertical-allrepos/slidge-matridge.svg
28
+ :alt: Packaging status
29
+ :target: https://repology.org/project/slidge-matridge/versions
30
+
31
+ Python packages
32
+ ~~~~~~~~~~~~~~~
33
+
34
+ .. image:: https://badge.fury.io/py/matridge.svg
35
+ :alt: PyPI package version
36
+ :target: https://pypi.org/project/matridge/
37
+
38
+ matridge is available on the `python package index (PyPI) <https://pypi.org/project/matridge/>`__.
39
+
40
+ If you are not familiar with python packaging, we recommend using `pipx <https://pypa.github.io/pipx/>`__ to
41
+ set up matridge and its dependencies, isolated from the rest of your system.
42
+
43
+ .. code:: sh
44
+
45
+ # for the latest stable release published to PyPI, if any
46
+ pipx install matridge
47
+
48
+ matridge --help
49
+
50
+ Bleeding edge versions are also available on `codeberg's python index <https://codeberg/slidge/-/packages/pypi/matridge>`_.
51
+
52
+ .. code:: sh
53
+
54
+ # for the bleeding edge
55
+ pipx install matridge \
56
+ --pip-args='--extra-index-url https://codeberg.org/api/packages/slidge/pypi/simple/ --pre'
57
+
58
+
59
+ Unofficial debian package
60
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
61
+
62
+ If you are using debian you might be interested in installing the
63
+ `slidge (unofficial) debian
64
+ package <https://codeberg.org/slidge/debian>`__ which bundles matridge
65
+ along with other slidge-based XMPP gateways.
66
+
67
+ Follow the instructions in the repository README; edit
68
+ ``/etc/slidge/conf.d/common.conf`` and
69
+ ``/etc/slidge/matrix.conf``; run
70
+ ``sudo systemctl start slidge@matrix``; watch the logs with
71
+ ``sudo journalctl -u slidge@matrix -f``.
@@ -5,7 +5,7 @@ import os
5
5
  from datetime import datetime
6
6
  from pathlib import Path
7
7
 
8
- from slidge.__version__ import __version__ as slidge_version
8
+ from slidge import __version__ as slidge_version
9
9
 
10
10
  project = "matridge"
11
11
  copyright = f"{datetime.today().year}, the {project} contributors"
@@ -0,0 +1,5 @@
1
+ ..
2
+ DO NOT EDIT
3
+ This file is automatically generated with copier using https://codeberg.org/slidge/legacy-module-template
4
+
5
+ .. mdinclude:: ../../CONTRIBUTING.md
@@ -0,0 +1,39 @@
1
+ ..
2
+ DO NOT EDIT
3
+ This file is automatically generated with copier using https://codeberg.org/slidge/legacy-module-template
4
+
5
+ matridge
6
+ ========
7
+
8
+ .. sidebar:: Useful links
9
+
10
+ `Source <https://codeberg.org/slidge/matridge>`_
11
+
12
+ `Chat room <xmpp:slidge@conference.nicoco.fr?join>`_
13
+
14
+ `Bug tracker <https://codeberg.org/slidge/matridge/issues>`_
15
+
16
+
17
+ A
18
+ `feature-rich <user/features.html>`_
19
+ `Matrix <https://matrix.org>`_ to
20
+ `XMPP <https://xmpp.org/>`_ puppeteering
21
+ `gateway <https://xmpp.org/extensions/xep-0100.html>`_, based on
22
+ `slidge <https://slidge.im>`_ and
23
+ `nio <https://matrix-nio.readthedocs.io/>`_.
24
+
25
+ .. toctree::
26
+ :maxdepth: 3
27
+
28
+ admin/index
29
+ user/index
30
+ contributing
31
+ autoapi/index
32
+
33
+
34
+ Indices and tables
35
+ ==================
36
+
37
+ * :ref:`genindex`
38
+ * :ref:`modindex`
39
+ * :ref:`search`
@@ -1,3 +1,7 @@
1
+ ..
2
+ DO NOT EDIT
3
+ This file is automatically generated with copier using https://codeberg.org/slidge/legacy-module-template
4
+
1
5
  Features
2
6
  --------
3
7
 
@@ -5,4 +9,4 @@ The table below lists the notable features for matridge.
5
9
  Refer to `xmpp.org <https://xmpp.org/software/slidge/>`_ for a longer version,
6
10
  including all XEPs supported by `slidge <https://slidge.im/>`_.
7
11
 
8
- .. doap:: ../../doap.xml
12
+ .. doap:: ../../../doap.xml
@@ -0,0 +1,14 @@
1
+ ..
2
+ DO NOT EDIT
3
+ This file is automatically generated with copier using https://codeberg.org/slidge/legacy-module-template
4
+
5
+ For users
6
+ =========
7
+
8
+ You want to use a matridge instance? You have come to the right place.
9
+
10
+ .. toctree::
11
+
12
+ registration
13
+ usage
14
+ features
@@ -0,0 +1,16 @@
1
+ Registration
2
+ ============
3
+
4
+ To start using a matridge instance, you need to create an account by
5
+ registering with it. The instance has a unique XMPP (aka JID) address, which is
6
+ usually just a domain name (e.g., "matrix.example.org"), without a
7
+ username or local part.
8
+
9
+ There are two ways to register, depending on your client:
10
+
11
+ - If your client supports adhoc commands (such as Movim, Gajim, or Cheogram),
12
+ you can use the "Register" command with the matridge instance's
13
+ address.
14
+ - If your client does not support adhoc commands (such as Conversations), you
15
+ can register by sending a text message that says "register" to the
16
+ matridge instance's address.