1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178
|
[project]
name = "slidge"
description = "XMPP bridging framework"
requires-python = ">= 3.11"
dependencies = [
"aiohttp[speedups]>=3.11.11,<4",
"alembic>=1.14.0,<2",
"configargparse>=1.7,<2",
"defusedxml>=0.7.1",
"pillow>=11.0.0,<12",
"python-magic>=0.4.27,<0.5",
"qrcode>=8.0,<9",
"slixmpp>=1.12.0,<1.13.0",
"sqlalchemy>=2,<3",
"thumbhash>=0.1.2",
]
authors = [
{name = "Nicolas Cedilnik", email = "nicoco@nicoco.fr"},
]
license = { file = "LICENSE" }
classifiers = [
"Topic :: Internet :: XMPP",
"Topic :: Software Development :: Libraries :: Python Modules",
]
keywords = ["xmpp", "gateway", "bridge", "instant messaging"]
dynamic = ["version"]
readme = "README.md"
[build-system]
requires = ["setuptools>=64", "setuptools-scm>=8"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["slidge*"]
[tool.setuptools_scm]
[project.scripts]
slidge = 'slidge.main:main'
[project.urls]
Homepage = "https://codeberg.org/slidge/"
Issues = "https://codeberg.org/slidge/slidge/issues"
Repository = "https://codeberg.org/slidge/slidge/"
"Chat room" = "https://conference.nicoco.fr:5281/muc_log/slidge/"
Documentation = "https://slidge.im/docs/slidge/main"
changelog = "https://codeberg.org/slidge/slidge/releases"
[project.optional-dependencies]
lottie = [
"rlottie-python~=1.3.8",
]
[dependency-groups]
dev = [
"coverage>=7.6.10",
"emoji>=2.14.0",
"furo>=2024.8.6",
"mypy>=1.14.1",
"pre-commit>=4.0.1",
"pygments>=2.18.0",
"pytest>=8.3.4",
"pytest-asyncio>=0.25.0",
"ruff>=0.8.4",
"sphinx>=8.1.3",
"sphinx-argparse>=0.5.2",
"sphinx-autoapi>=3.4.0",
"types-pillow>=10.2.0.20240822",
"utidylib>=0.10",
"xmldiff>=2.7.0",
"slidge-sphinx-extensions>=0.2.1,<0.3",
]
[tool.mypy]
check_untyped_defs = true
files = ["slidge", "superduper"]
exclude = ["tests"]
[[tool.mypy.overrides]]
module = [
"thumbhash",
"configargparse",
"qrcode",
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "slidge.slixfix.*"
ignore_errors = true
[tool.ruff]
line-length = 88
exclude = ["xep_*", "tests"]
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "I"] # default rules + isort
[tool.coverage.run]
source = ["slidge"]
[tool.coverage.report]
exclude_lines = [
"if .*TYPE_CHECKING:",
"raise NotImplementedError"
]
[tool.pytest.ini_options]
asyncio_mode = "strict"
filterwarnings = [
"ignore:The object should be created within an async function:DeprecationWarning:aiohttp",
"ignore:.*pkg_resources.*:DeprecationWarning",
"ignore::UserWarning:slidge",
"ignore:coroutine 'XMLStream._end_stream_wait' was never awaited.*:RuntimeWarning"
]
log_level = "DEBUG"
[[tool.uv.index]]
name = "codeberg"
url = "https://codeberg.org/api/packages/slidge/pypi/simple"
publish-url = "https://codeberg.org/api/packages/slidge/pypi"
[tool.git-cliff.remote.gitea]
owner = "slidge"
repo = "slidge"
[tool.git-cliff.changelog]
header = """
<!-- write something cool about the release here! -->
# Changes
"""
body = """
{% for group, all_commits in commits | group_by(attribute="group") %}
{%- if group == "cfix" %}{% continue %}{%- endif %}
## {{ group | striptags | trim | upper_first }}
{% for commit in all_commits %}
- {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
{% if commit.breaking %}[**breaking**] {% endif %}\
{{ commit.message | split(pat="\n") | first | upper_first | trim }} \
([`{{ commit.id | truncate(length=7, end="") }}`](./commit/{{ commit.id -}})\
{% if commit.remote.username %} by @{{ commit.remote.username }}{%- endif -%}
{%- for cfix_commit in commits | filter(attribute="group", value="cfix") -%}
{%- if cfix_commit.scope and commit.id is starting_with(cfix_commit.scope) -%}
, [`{{ cfix_commit.id | truncate(length=7, end="") }}`](./commit/{{ cfix_commit.id }}){% if cfix_commit.remote.username %} by @{{ cfix_commit.remote.username }}{%- endif -%}
{%- endif -%}
{%- endfor -%})\
{% endfor %}
{% endfor %}\n
"""
footer = """
<!-- generated by git-cliff -->
"""
[tool.git-cliff.git]
conventional_commits = true
filter_unconventional = false
commit_parsers = [
{ message = "^feat", group = "<!-- 0 -->๐ Features" },
{ message = "^imprv", group = "<!-- 01 -->โจ Improvements" },
{ message = "^fix", group = "<!-- 02 -->๐ Bug Fixes" },
{ message = "^compat", group = "<!-- 03 -->๐ Compatibility" },
{ message = "^refactor", group = "<!-- 04 -->๐ Refactor" },
{ message = "^doc", group = "<!-- 05 -->๐ Documentation" },
{ message = "^perf", group = "<!-- 06 -->โก Performance" },
{ message = "^style", group = "<!-- 07 -->๐จ Styling" },
{ message = "^test", group = "<!-- 08 -->๐งช Testing" },
{ message = "^chore\\(release\\): prepare for", skip = true },
{ message = "^chore\\(deps.*\\)", skip = true },
{ message = "^chore\\(pr\\)", skip = true },
{ message = "^chore\\(pull\\)", skip = true },
{ message = "^build\\(lockfile\\)", skip = true },
{ message = "^chore\\(lockfile\\)", skip = true },
{ message = "^chore|^ci", group = "<!-- 09 -->โ๏ธ Miscellaneous Tasks" },
{ body = ".*security", group = "<!-- 10 -->๐ก๏ธ Security" },
{ message = "^revert", group = "<!-- 11 -->โ๏ธ Revert" },
{ message = "^cfix", group = "cfix" },
{ message = ".*", group = "<!-- 13 -->๐ผ Other" },
]
|