forked from matrix-org/sygnal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
121 lines (105 loc) · 3.24 KB
/
pyproject.toml
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
[tool.towncrier]
package = "sygnal"
filename = "CHANGELOG.md"
directory = "changelog.d"
issue_format = "[\\#{issue}](https://github.com/matrix-org/sygnal/issues/{issue})"
[[tool.towncrier.type]]
directory = "feature"
name = "Features"
showcontent = true
[[tool.towncrier.type]]
directory = "bugfix"
name = "Bugfixes"
showcontent = true
[[tool.towncrier.type]]
directory = "docker"
name = "Updates to the Docker image"
showcontent = true
[[tool.towncrier.type]]
directory = "doc"
name = "Improved Documentation"
showcontent = true
[[tool.towncrier.type]]
directory = "removal"
name = "Deprecations and Removals"
showcontent = true
[[tool.towncrier.type]]
directory = "misc"
name = "Internal Changes"
showcontent = true
[tool.isort]
line_length = 88
sections = "FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,TESTS,LOCALFOLDER"
default_section = "THIRDPARTY"
known_first_party = "sygnal"
known_tests = "tests"
multi_line_output = 3
include_trailing_comma = true
combine_as_imports = true
[tool.ruff]
line-length = 88
ignore = [
"E501", # https://beta.ruff.rs/docs/rules/line-too-long/. Black enforces this for us.
]
[build-system]
build-backend = "setuptools.build_meta"
# Setuptools 64 adds support for PEP 660, which makes `pip install -e .` work.
requires = ["setuptools>=64", "setuptools_scm[toml]>=6.2"]
[tool.setuptools_scm]
# Note: including this section without any keys still has meaning, see
# https://github.com/pypa/setuptools_scm/blob/51b3566170be25582b5c3216a54b024caf3d431f/README.rst?plain=1#L63-L71
[tool.setuptools.packages.find]
exclude = ["tests", "tests.*"]
[project]
name = "matrix-sygnal"
dynamic = ["version"]
description = "Reference Push Gateway for Matrix Notifications"
readme = {file = "README.md", content-type = "text/markdown"}
requires-python = "~=3.8"
license = {file = "LICENSE"}
authors = [
{name = "Matrix.org Team and contributors", email = "[email protected]"}
]
dependencies = [
"aioapns>=3.0",
"attrs>=19.2.0",
"cryptography>=2.6.1",
"idna>=2.8",
"google-auth[aiohttp]>=2.27.0",
"jaeger-client>=4.0.0",
"matrix-common==1.3.0",
"opentracing>=2.2.0",
"prometheus_client>=0.7.0,<0.8",
"py-vapid>=1.7.0",
"pyOpenSSL>=17.5.0",
"pywebpush>=1.13.0",
"pyyaml>=5.1.1",
"sentry-sdk>=0.10.2",
"service_identity>=18.1.0",
# Upper bound: tests fail on latest Twisted, see https://github.com/matrix-org/sygnal/issues/356
"Twisted>=19.7,<23.10",
"zope.interface>=5.0.0",
]
[project.optional-dependencies]
dev = [
"black==23.9.1",
"coverage~=5.5",
"ruff==0.0.291",
"isort~=5.10",
"mypy==1.5.1",
"mypy-zope==1.0.1",
"towncrier",
"tox",
"google-auth-stubs==0.2.0",
"types-opentracing>=2.4.2",
"types-pyOpenSSL",
"types-PyYAML",
"typing-extensions>=3.7.4",
]
[project.urls]
homepage = "https://github.com/matrix-org/sygnal"
documentation = "https://github.com/matrix-org/sygnal/tree/main/docs"
repository = "https://github.com/matrix-org/sygnal.git"
changelog = "https://github.com/matrix-org/sygnal/blob/main/CHANGELOG.md"
[project.scripts]
sygnal = "sygnal.sygnal:main"