annotate pyproject.toml @ 4151:18026ce0819c

core (xmpp): message reception workflow refactoring: - Call methods from a root async one instead of using Deferred callbacks chain. - Use a queue to be sure to process messages in order.
author Goffi <goffi@goffi.org>
date Wed, 22 Nov 2023 14:50:35 +0100
parents c36295487082
children 04cdcb3fd713
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4081
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
1 [build-system]
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
2 requires = ["hatchling"]
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
3 build-backend = "hatchling.build"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
4
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
5 [project]
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
6 name = "libervia-backend"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
7 dynamic = ["version"]
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
8 description = "Libervia: A feature-rich XMPP client showcasing diverse frontends, uniting instant messaging, blogging, file sharing, and ActivityPub-XMPP interactions seamlessly."
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
9 readme = "README.md"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
10 license = "AGPL-3.0-or-later"
4106
4ad982a0358f install: bump minimum python version
Goffi <goffi@goffi.org>
parents: 4091
diff changeset
11 requires-python = ">=3.10"
4081
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
12 authors = [
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
13 { name = "Libervia Dev Team", email = "contact@goffi.org" },
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
14 ]
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
15 classifiers = [
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
16 "Development Status :: 5 - Production/Stable",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
17 "Environment :: Console",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
18 "Framework :: Twisted",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
19 "Operating System :: POSIX :: Linux",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
20 "Topic :: Communications :: Chat",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
21 "Topic :: Internet :: XMPP"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
22 ]
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
23 dependencies = [
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
24 "aiosqlite",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
25 "alembic",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
26 "babel < 3",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
27 "cryptography >= 41.0.1",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
28 "dbus-python < 1.3",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
29 "html2text < 2020.2",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
30 "jinja2 >= 3.1.2",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
31 "langid < 2",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
32 "lxml >= 3.1.0",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
33 "markdown >= 3.0",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
34 "miniupnpc < 2.1",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
35 "mutagen < 2",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
36 "netifaces < 0.12",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
37 "oldmemo >= 1.0.0, < 2",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
38 "omemo >= 1.0.0, < 2",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
39 "pillow >= 6.0.0",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
40 "progressbar2 < 3.54",
4149
c36295487082 core: introduce Pydantic based models in `libervia.backend.models.core`
Goffi <goffi@goffi.org>
parents: 4143
diff changeset
41 "pydantic ~= 2.4",
4081
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
42 "pygments < 3",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
43 "pygobject < 3.40.1",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
44 "pyopenssl >= 23.2.0",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
45 "python-dateutil >= 2.8.1, < 3",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
46 # currently disabled due to incompatibility, OTR feature may be removed in
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
47 # the close future
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
48 # "python-potr < 1.1",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
49 "pyxdg < 0.30",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
50 "pyyaml < 7.0.0",
4143
849721e1563b cli: `call` command:
Goffi <goffi@goffi.org>
parents: 4137
diff changeset
51 "prompt_toolkit ~= 3.0",
4128
e70eff252048 install: add `rich` dependency
Goffi <goffi@goffi.org>
parents: 4106
diff changeset
52 "rich ~= 13.5",
4081
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
53 "sat_tmp @ hg+https://repos.goffi.org/sat_tmp#egg=sat_tmp",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
54 "setuptools_scm",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
55 "shortuuid ~= 1.0.11",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
56 "sqlalchemy >= 1.4",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
57 "treq < 23.0.0",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
58 "twisted[tls] >= 22.10",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
59 "twomemo >= 1.0.0, < 2",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
60 "txdbus",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
61 "urwid >= 1.2.0, < 3",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
62 "urwid-satext @ hg+https://repos.goffi.org/urwid-satext#egg=urwid-satext",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
63 "wokkel >= 18.0.0, < 19.0.0",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
64 "xmlschema",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
65 ]
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
66 keywords = [
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
67 "XMPP",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
68 "chat",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
69 "instant_messaging",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
70 "blogging",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
71 "photo albums",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
72 "ActivityPub",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
73 "file sharing",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
74 "events"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
75 ]
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
76
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
77 [project.optional-dependencies]
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
78 SVG = [
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
79 "CairoSVG",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
80 ]
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
81
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
82 [project.scripts]
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
83 jp = "libervia.cli.base:LiberviaCli.run"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
84 li = "libervia.cli.base:LiberviaCli.run"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
85 libervia-backend = "libervia.backend.core.launcher:Launcher.run"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
86 libervia-cli = "libervia.cli.base:LiberviaCli.run"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
87 libervia-tui = "libervia.tui.base:LiberviaTUIApp.run"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
88 primitivus = "libervia.tui.base:LiberviaTUIApp.run"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
89 sat = "libervia.backend.core.launcher:Launcher.run"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
90
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
91 [project.urls]
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
92 Homepage = "https://libervia.org"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
93 Documentation = "https://libervia.org/documentation"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
94 Repository = "https://repos.goffi.org/libervia-backend/"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
95 Roadmap = "https://libervia.org/roadmap"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
96
4091
4eb7a5ecbd9d build: explicitely set `packages` so `doc` is not accidentaly included
Goffi <goffi@goffi.org>
parents: 4086
diff changeset
97 [tool.hatch.build.targets.wheel]
4eb7a5ecbd9d build: explicitely set `packages` so `doc` is not accidentaly included
Goffi <goffi@goffi.org>
parents: 4086
diff changeset
98 packages = ["libervia", "twisted"]
4eb7a5ecbd9d build: explicitely set `packages` so `doc` is not accidentaly included
Goffi <goffi@goffi.org>
parents: 4086
diff changeset
99
4081
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
100 [tool.hatch.envs.default]
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
101 # we need system-package for GPG
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
102 system-packages = true
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
103
4082
72e91ea3bc16 build: create a dev env with debugging tools
Goffi <goffi@goffi.org>
parents: 4081
diff changeset
104 [tool.hatch.envs.dev]
72e91ea3bc16 build: create a dev env with debugging tools
Goffi <goffi@goffi.org>
parents: 4081
diff changeset
105 dependencies = [
72e91ea3bc16 build: create a dev env with debugging tools
Goffi <goffi@goffi.org>
parents: 4081
diff changeset
106 "ipdb",
4137
10979b5c305a install: add test dependencies to dev env
Goffi <goffi@goffi.org>
parents: 4128
diff changeset
107 "pudb",
10979b5c305a install: add test dependencies to dev env
Goffi <goffi@goffi.org>
parents: 4128
diff changeset
108 "pytest",
10979b5c305a install: add test dependencies to dev env
Goffi <goffi@goffi.org>
parents: 4128
diff changeset
109 "pytest-twisted",
10979b5c305a install: add test dependencies to dev env
Goffi <goffi@goffi.org>
parents: 4128
diff changeset
110 "aiosmtpd"
4082
72e91ea3bc16 build: create a dev env with debugging tools
Goffi <goffi@goffi.org>
parents: 4081
diff changeset
111 ]
72e91ea3bc16 build: create a dev env with debugging tools
Goffi <goffi@goffi.org>
parents: 4081
diff changeset
112
72e91ea3bc16 build: create a dev env with debugging tools
Goffi <goffi@goffi.org>
parents: 4081
diff changeset
113
4081
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
114 [tool.hatch.version]
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
115 path = "libervia/backend/__init__.py"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
116
4086
479192bc0fa8 build: add missing `.ini` and `.yaml` files in all build, needed for wheel
Goffi <goffi@goffi.org>
parents: 4082
diff changeset
117 [tool.hatch.build]
479192bc0fa8 build: add missing `.ini` and `.yaml` files in all build, needed for wheel
Goffi <goffi@goffi.org>
parents: 4082
diff changeset
118 artifacts = [
479192bc0fa8 build: add missing `.ini` and `.yaml` files in all build, needed for wheel
Goffi <goffi@goffi.org>
parents: 4082
diff changeset
119 "*.ini",
479192bc0fa8 build: add missing `.ini` and `.yaml` files in all build, needed for wheel
Goffi <goffi@goffi.org>
parents: 4082
diff changeset
120 "*.yaml"
479192bc0fa8 build: add missing `.ini` and `.yaml` files in all build, needed for wheel
Goffi <goffi@goffi.org>
parents: 4082
diff changeset
121 ]
479192bc0fa8 build: add missing `.ini` and `.yaml` files in all build, needed for wheel
Goffi <goffi@goffi.org>
parents: 4082
diff changeset
122
4081
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
123 [tool.hatch.build.targets.wheel.shared-data]
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
124 "i18n/fr/LC_MESSAGES/libervia_backend.mo" = "share/locale/fr/LC_MESSAGES/libervia_backend.mo"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
125 CHANGELOG = "share/doc/libervia-backend/CHANGELOG"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
126 COPYING = "share/doc/libervia-backend/COPYING"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
127 INSTALL = "share/doc/libervia-backend/INSTALL"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
128 README = "share/doc/libervia-backend/README"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
129 README4TRANSLATORS = "share/doc/libervia-backend/README4TRANSLATORS"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
130 "misc/org.libervia.Libervia.service" = "share/dbus-1/services/org.libervia.Libervia.service"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
131
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
132 [tool.hatch.metadata]
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
133 allow-direct-references = true