Debian Codegraph @

pyproject.toml

raw symbols SCIP
1 [build-system]
2 requires = [
3 "setuptools>=69",
4 "wheel",
5 "babel",
6 ]
7 build-backend = "setuptools.build_meta"
8
9 [project]
10 name = "apprise"
11 description = "Push Notifications that work with just about every platform!"
12 readme = "README.md"
13 authors = [
14 { name = "Chris Caron", email = "[email protected]" },
15 ]
16 dynamic = ["version"]
17
18 # Not supported yet for all Distributions
19 license = { text = "BSD-2-Clause" }
20
21 requires-python = ">=3.9"
22 classifiers = [
23 "Development Status :: 5 - Production/Stable",
24 "Intended Audience :: Developers",
25 "Intended Audience :: System Administrators",
26 "Operating System :: OS Independent",
27 "Natural Language :: English",
28 "Programming Language :: Python",
29 "Programming Language :: Python :: 3.9",
30 "Programming Language :: Python :: 3.10",
31 "Programming Language :: Python :: 3.11",
32 "Programming Language :: Python :: 3.12",
33 "Programming Language :: Python :: Implementation :: CPython",
34 "Programming Language :: Python :: Implementation :: PyPy",
35 "Topic :: Software Development :: Libraries :: Python Modules",
36 "Topic :: Software Development :: Libraries :: Application Frameworks",
37 ]
38
39 dependencies = [
40 # Application dependencies
41 "requests",
42 "requests-oauthlib",
43 "click>=5.0",
44 "markdown",
45 "PyYAML",
46 # Root certificate authority bundle
47 "certifi",
48 # Always ship IANA tzdb on Windows so ZoneInfo works
49 "tzdata; platform_system == 'Windows'",
50 ]
51
52 # Identifies all of the supported plugins
53 keywords = [
54 "46elks",
55 "800.com",
56 "Africas Talking",
57 "Alerts",
58 "Apprise API",
59 "Automated Packet Reporting System",
60 "Amazon Chime",
61 "AWS",
62 "Bark",
63 "Blink(1)",
64 "BlueSky",
65 "Brevo",
66 "BulkSMS",
67 "BulkVS",
68 "Burst SMS",
69 "Chanify",
70 "Chat",
71 "CLI",
72 "Clickatell",
73 "ClickSend",
74 "D7Networks",
75 "Dapnet",
76 "DBus",
77 "DingTalk",
78 "Discord",
79 "Dot",
80 "Email",
81 "Emby",
82 "Enigma2",
83 "Evolution API",
84 "Exotel",
85 "FCM",
86 "Feishu",
87 "Flock",
88 "Flowtriq",
89 "Fluxer",
90 "Form",
91 "Free Mobile",
92 "Gnome",
93 "Google Chat",
94 "Gotify",
95 "GroupMe",
96 "Growl",
97 "Guilded",
98 "Home Assistant",
99 "httpSMS",
100 "HumHub",
101 "IFTTT",
102 "IRC",
103 "Jellyfin",
104 "Jira",
105 "Join",
106 "JSON",
107 "Kavenegar",
108 "KODI",
109 "Kook",
110 "Kumulos",
111 "LaMetric",
112 "Lark",
113 "Line",
114 "MacOSX",
115 "Mailgun",
116 "MailerSend",
117 "Mastodon",
118 "Matrix",
119 "Mattermost",
120 "MessageBird",
121 "Microsoft",
122 "Misskey",
123 "MQTT",
124 "MSG91",
125 "MSTeams",
126 "Nextcloud",
127 "NextcloudTalk",
128 "Notica",
129 "Notifiarr",
130 "Notifico",
131 "Notifyre",
132 "Ntfy",
133 "Office365",
134 "OneSignal",
135 "Opsgenie",
136 "PagerDuty",
137 "PagerTree",
138 "ParsePlatform",
139 "Pinglet",
140 "Pingram",
141 "Plivo",
142 "Postmark",
143 "Power Automate",
144 "Prowl",
145 "Push Notifications",
146 "PushBullet",
147 "PushDeer",
148 "Pushed",
149 "Pushjet",
150 "PushMe",
151 "Pushover",
152 "Pushplus",
153 "PushSafer",
154 "PushWard",
155 "Pushy",
156 "QQ Push",
157 "Quote/0",
158 "Reddit",
159 "Resend",
160 "Revolt",
161 "RingCentral",
162 "Rocket.Chat",
163 "RSyslog",
164 "Ryver",
165 "SendGrid",
166 "SendPulse",
167 "ServerChan",
168 "SerwerSMS",
169 "Session Open Group Server",
170 "SES",
171 "Seven",
172 "SFR",
173 "Signal",
174 "SIGNL4",
175 "SimplePush",
176 "Sinch",
177 "Slack",
178 "SMPP",
179 "SMS Manager",
180 "SMSC",
181 "SMSEagle",
182 "SMTP2Go",
183 "SNS",
184 "SparkPost",
185 "Spike",
186 "Splunk",
187 "SpugPush",
188 "Stackfield",
189 "Streamlabs",
190 "Stride",
191 "Synology Chat",
192 "Syslog",
193 "Techulus",
194 "Telegram",
195 "Threema Gateway",
196 "Trigv",
197 "Twilio",
198 "Twist",
199 "Twitter",
200 "Vapid",
201 "Viber",
202 "VictorOps",
203 "Voipms",
204 "Vonage",
205 "Webex",
206 "Webpush",
207 "WeChat (WeCom)",
208 "WeCom Bot",
209 "WhatsApp",
210 "Windows",
211 "Workflows",
212 "WxPusher",
213 "XBMC",
214 "XML",
215 "XMPP",
216 "Zoom",
217 "Zulip",
218 ]
219
220 [project.optional-dependencies]
221
222 # All packages required to test/build against
223 dev = [
224 "coverage",
225 "mock",
226 "tox",
227 "pytest",
228 "pytest-cov",
229 "pytest-mock",
230 "ruff==0.15.8",
231 "babel",
232 "validate-pyproject",
233 ]
234
235 # Defines all Python libraries for Apprise to work with
236 # all plugins
237 all-plugins = [
238 # Used in many applications requiring cryptography
239 # such as fcm://, splush:// and much more
240 "cryptography",
241
242 # provides growl:// support
243 "gntp",
244 # Provides mqtt:// support
245 "paho-mqtt >= 2.1.0",
246
247 # Pretty Good Privacy (PGP) Provides mailto:// and deltachat:// support
248 "PGPy",
249
250 # Provides blink1:// support
251 "hidapi",
252
253 # Provides smpp:// support
254 "smpplib",
255
256 # For xmpp:// support
257 "slixmpp >= 1.16.0",
258 ]
259 windows = [
260 "pywin32",
261 "tzdata",
262 ]
263
264 [project.urls]
265 Homepage = "https://appriseit.com"
266 Source = "https://github.com/caronc/apprise"
267 Tracker = "https://github.com/caronc/apprise/issues"
268 Documentation = "https://appriseit.com"
269
270 [project.scripts]
271 apprise = "apprise.cli:main"
272
273 [tool.setuptools]
274 include-package-data = true
275
276 [tool.setuptools.package-data]
277 apprise = [
278 "assets/NotifyXML-*.xsd",
279 "assets/themes/default/*.png",
280 "assets/themes/default/*.ico",
281 "i18n/*.py",
282 "i18n/*/LC_MESSAGES/*.mo",
283 "py.typed",
284 "*.pyi",
285 "*/*.pyi",
286 ]
287
288 [tool.setuptools.packages.find]
289 where = [
290 ".",
291 ]
292 exclude = [
293 "tests*",
294 "tools*",
295 ]
296 include = ["apprise*"]
297
298 [tool.setuptools.dynamic]
299 version = {attr = "apprise.__version__"}
300
301 [tool.ruff]
302 line-length = 79 # Respecting BSD-style 79-char limit
303 target-version = "py39"
304 exclude = [
305 "tests/data",
306 "bin",
307 "build",
308 "dist",
309 ".eggs",
310 ".tox",
311 ".local",
312 ".venv",
313 "venv",
314 ]
315
316
317 [tool.ruff.lint]
318 select = [
319 "E", # pycodestyle errors
320 "F", # pyflakes
321 "W", # pycodestyle warnings
322 "Q", # Quote handling ' -> "
323 "I", # isort
324 "UP", # pyupgrade
325 "B", # flake8-bugbear
326 "C4", # flake8-comprehensions
327 "SIM", # flake8-simplify
328 "T20", # flake8-print (catches stray `print`)
329 "RUF", # Ruff-native rules
330 ]
331
332 ignore = [
333 "D100", # missing docstring in public module
334 "D104", # missing docstring in public package
335 "B008", # do not call `dict()` with keyword args
336 "E722", # bare except (Apprise uses it reasonably)
337 "E741", # Ambiguous variable name (e.g., l, O, I)
338 "W605", # Invalid escape sequence
339 "B026", # Star-arg play a big part of Apprise; must be accepted for now
340
341 # The following needs to be supported at some point and is of great value
342 "RUF012", # typing.ClassVar implimentation
343 "RUF029", # Use of async without await or async subcalls
344 "UP032", # This is a massive undertaking and requires a massive rewrite
345 # of test cases; this will take a while to fix, so turning off
346 # for now
347 ]
348
349 [tool.ruff.lint.pyupgrade]
350 keep-runtime-typing = true
351
352 [tool.ruff.lint.flake8-quotes]
353 inline-quotes = "double"
354
355 [tool.ruff.lint.isort]
356 known-first-party = ["apprise"]
357 force-sort-within-sections = true
358 combine-as-imports = true
359 order-by-type = true
360 section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
361
362 [tool.ruff.lint.flake8-builtins]
363 builtins-ignorelist = ["_"]
364
365 [tool.pytest.ini_options]
366 # Keep pytest-cov minimal, let Coverage.py control formatting.
367 addopts = "-ra"
368 testpaths = ["tests"]
369 python_files = ["test_*.py", "tests/test_*.py"]
370 filterwarnings = [
371 "once::Warning",
372 # Ignore warnings from PGPy's dependencies and unfinished checks, which
373 # Apprise cannot resolve.
374 "ignore::Warning:pgpy(\\.|$)",
375 # PGPy reports this internal encryption warning from Apprise's call site.
376 "ignore:^Selected compression algorithm not in key preferences$:UserWarning",
377 ]
378
379 [tool.coverage.run]
380 branch = true
381 parallel = false
382 data_file = ".coverage"
383 source = ["apprise"]
384 relative_files = true
385
386 [tool.coverage.paths]
387 # Normalise .tox and site-packages layouts back to 'apprise'
388 source = [
389 "apprise",
390 "/apprise/apprise",
391 ".tox/*/lib/python*/site-packages/apprise",
392 ".tox/pypy/site-packages/apprise"
393 ]
394
395 [tool.coverage.report]
396 # Controls terminal and XML content when Coverage.py renders reports
397 show_missing = true
398 skip_covered = true
399 skip_empty = true
400 precision = 1
401 exclude_lines = [
402 "pragma: no cover",
403 "if TYPE_CHECKING:",
404 "if __name__ == .__main__.:",
405 "raise NotImplementedError",
406 "pass$",
407 ]
408
409 [tool.coverage.xml]
410 # Ensure GitHub Action can find a predictable file
411 output = "coverage.xml"