annotate pyproject.toml @ 4172:0e48181d50ab

Plugin XEP-0277: Add metadata to prevent adding random suffixes to generated user-friendly IDs.
author Goffi <goffi@goffi.org>
date Tue, 05 Dec 2023 13:10:21 +0100
parents 04cdcb3fd713
children 4af030d4d3d8
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",
4157
04cdcb3fd713 plugin XEP-0444: complete implementation:
Goffi <goffi@goffi.org>
parents: 4149
diff changeset
29 "emoji ~= 2.8",
4081
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
30 "html2text < 2020.2",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
31 "jinja2 >= 3.1.2",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
32 "langid < 2",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
33 "lxml >= 3.1.0",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
34 "markdown >= 3.0",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
35 "miniupnpc < 2.1",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
36 "mutagen < 2",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
37 "netifaces < 0.12",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
38 "oldmemo >= 1.0.0, < 2",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
39 "omemo >= 1.0.0, < 2",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
40 "pillow >= 6.0.0",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
41 "progressbar2 < 3.54",
4149
c36295487082 core: introduce Pydantic based models in `libervia.backend.models.core`
Goffi <goffi@goffi.org>
parents: 4143
diff changeset
42 "pydantic ~= 2.4",
4081
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
43 "pygments < 3",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
44 "pygobject < 3.40.1",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
45 "pyopenssl >= 23.2.0",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
46 "python-dateutil >= 2.8.1, < 3",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
47 # 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
48 # the close future
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
49 # "python-potr < 1.1",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
50 "pyxdg < 0.30",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
51 "pyyaml < 7.0.0",
4143
849721e1563b cli: `call` command:
Goffi <goffi@goffi.org>
parents: 4137
diff changeset
52 "prompt_toolkit ~= 3.0",
4128
e70eff252048 install: add `rich` dependency
Goffi <goffi@goffi.org>
parents: 4106
diff changeset
53 "rich ~= 13.5",
4081
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
54 "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
55 "setuptools_scm",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
56 "shortuuid ~= 1.0.11",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
57 "sqlalchemy >= 1.4",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
58 "treq < 23.0.0",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
59 "twisted[tls] >= 22.10",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
60 "twomemo >= 1.0.0, < 2",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
61 "txdbus",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
62 "urwid >= 1.2.0, < 3",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
63 "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
64 "wokkel >= 18.0.0, < 19.0.0",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
65 "xmlschema",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
66 ]
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
67 keywords = [
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
68 "XMPP",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
69 "chat",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
70 "instant_messaging",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
71 "blogging",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
72 "photo albums",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
73 "ActivityPub",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
74 "file sharing",
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
75 "events"
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
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
78 [project.optional-dependencies]
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
79 SVG = [
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
80 "CairoSVG",
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
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
83 [project.scripts]
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
84 jp = "libervia.cli.base:LiberviaCli.run"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
85 li = "libervia.cli.base:LiberviaCli.run"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
86 libervia-backend = "libervia.backend.core.launcher:Launcher.run"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
87 libervia-cli = "libervia.cli.base:LiberviaCli.run"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
88 libervia-tui = "libervia.tui.base:LiberviaTUIApp.run"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
89 primitivus = "libervia.tui.base:LiberviaTUIApp.run"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
90 sat = "libervia.backend.core.launcher:Launcher.run"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
91
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
92 [project.urls]
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
93 Homepage = "https://libervia.org"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
94 Documentation = "https://libervia.org/documentation"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
95 Repository = "https://repos.goffi.org/libervia-backend/"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
96 Roadmap = "https://libervia.org/roadmap"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
97
4091
4eb7a5ecbd9d build: explicitely set `packages` so `doc` is not accidentaly included
Goffi <goffi@goffi.org>
parents: 4086
diff changeset
98 [tool.hatch.build.targets.wheel]
4eb7a5ecbd9d build: explicitely set `packages` so `doc` is not accidentaly included
Goffi <goffi@goffi.org>
parents: 4086
diff changeset
99 packages = ["libervia", "twisted"]
4eb7a5ecbd9d build: explicitely set `packages` so `doc` is not accidentaly included
Goffi <goffi@goffi.org>
parents: 4086
diff changeset
100
4081
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
101 [tool.hatch.envs.default]
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
102 # we need system-package for GPG
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
103 system-packages = true
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
104
4082
72e91ea3bc16 build: create a dev env with debugging tools
Goffi <goffi@goffi.org>
parents: 4081
diff changeset
105 [tool.hatch.envs.dev]
72e91ea3bc16 build: create a dev env with debugging tools
Goffi <goffi@goffi.org>
parents: 4081
diff changeset
106 dependencies = [
72e91ea3bc16 build: create a dev env with debugging tools
Goffi <goffi@goffi.org>
parents: 4081
diff changeset
107 "ipdb",
4137
10979b5c305a install: add test dependencies to dev env
Goffi <goffi@goffi.org>
parents: 4128
diff changeset
108 "pudb",
10979b5c305a install: add test dependencies to dev env
Goffi <goffi@goffi.org>
parents: 4128
diff changeset
109 "pytest",
10979b5c305a install: add test dependencies to dev env
Goffi <goffi@goffi.org>
parents: 4128
diff changeset
110 "pytest-twisted",
10979b5c305a install: add test dependencies to dev env
Goffi <goffi@goffi.org>
parents: 4128
diff changeset
111 "aiosmtpd"
4082
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
72e91ea3bc16 build: create a dev env with debugging tools
Goffi <goffi@goffi.org>
parents: 4081
diff changeset
114
4081
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
115 [tool.hatch.version]
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
116 path = "libervia/backend/__init__.py"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
117
4086
479192bc0fa8 build: add missing `.ini` and `.yaml` files in all build, needed for wheel
Goffi <goffi@goffi.org>
parents: 4082
diff changeset
118 [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
119 artifacts = [
479192bc0fa8 build: add missing `.ini` and `.yaml` files in all build, needed for wheel
Goffi <goffi@goffi.org>
parents: 4082
diff changeset
120 "*.ini",
479192bc0fa8 build: add missing `.ini` and `.yaml` files in all build, needed for wheel
Goffi <goffi@goffi.org>
parents: 4082
diff changeset
121 "*.yaml"
479192bc0fa8 build: add missing `.ini` and `.yaml` files in all build, needed for wheel
Goffi <goffi@goffi.org>
parents: 4082
diff changeset
122 ]
479192bc0fa8 build: add missing `.ini` and `.yaml` files in all build, needed for wheel
Goffi <goffi@goffi.org>
parents: 4082
diff changeset
123
4081
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
124 [tool.hatch.build.targets.wheel.shared-data]
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
125 "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
126 CHANGELOG = "share/doc/libervia-backend/CHANGELOG"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
127 COPYING = "share/doc/libervia-backend/COPYING"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
128 INSTALL = "share/doc/libervia-backend/INSTALL"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
129 README = "share/doc/libervia-backend/README"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
130 README4TRANSLATORS = "share/doc/libervia-backend/README4TRANSLATORS"
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
131 "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
132
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
133 [tool.hatch.metadata]
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
134 allow-direct-references = true