Debian Codegraph @

pyproject.toml

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