Notification time stamped 2022-08-31 23:53:53 UTC
From 9ddf2102270698203dbb88a79bba60177efb4ceb Mon Sep 17 00:00:00 2001
From: Chris Caron <lead2gold(a)gmail.com>
Date: Feb 23 2021 21:44:17 +0000
Subject: Updated to v0.9.1
-* Wed Jan 27 2021 Fedora Release Engineering <releng(a)fedoraproject.org> 0.9.0-3
-Rebuilt for
https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Chris Caron <lead2gold(a)gmail.com>
---
diff --git a/.gitignore b/.gitignore
index 5217d62..2a59800 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,3 +15,4 @@
/apprise-0.8.8.tar.gz
/apprise-0.8.9.tar.gz
/apprise-0.9.0.tar.gz
+/apprise-0.9.1.tar.gz
diff --git a/apprise-9.0-unittest-fix.patch b/apprise-9.0-unittest-fix.patch
deleted file mode 100644
index 90278e4..0000000
--- a/apprise-9.0-unittest-fix.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-diff -Naur apprise-0.9.0/test/test_cli.py apprise-0.9.0.patched/test/test_cli.py
---- apprise-0.9.0/test/test_cli.py 2020-12-30 16:35:45.000000000 -0500
-+++ apprise-0.9.0.patched/test/test_cli.py 2021-01-14 17:47:35.360484719 -0500
-@@ -437,7 +437,7 @@
- result = runner.invoke(cli.main, [
- '-b', 'test environment',
- ])
-- assert result.exit_code == 3
-+ assert result.exit_code == 1
-
- with environ(APPRISE_URLS="bad://localhost"):
- result = runner.invoke(cli.main, [
-@@ -477,7 +477,7 @@
- result = runner.invoke(cli.main, [
- '-b', 'my message',
- ])
-- assert result.exit_code == 3
-+ assert result.exit_code == 1
-
- with environ(APPRISE_CONFIG="garbage/file/path.yaml"):
- # We will fail to send the notification as the path
diff --git a/apprise.1 b/apprise.1
index 81e71ab..64f3225 100644
--- a/apprise.1
+++ b/apprise.1
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\"
http://github.com/rtomayko/ronn/tree/0.7.3
.
-.TH "APPRISE" "1" "November 2019" ""
""
+.TH "APPRISE" "1" "February 2021" "ff"
""
.
.SH "NAME"
\fBapprise\fR \- Push Notifications that work with just about every platform!
@@ -28,52 +28,76 @@ Supports the handling of images (to the notification services that
will accept t
.SH "OPTIONS"
The Apprise options are as follows:
.
-.TP
-\fB\-b\fR, \fB\-\-body=\fR\fITEXT\fR
-Specify the message body\. If no body is specified then content is read from
\fIstdin\fR\.
+.P
+\fB\-b\fR, \fB\-\-body=\fR\fITEXT\fR: Specify the message body\. If no body is specified
then content is read from \fIstdin\fR\.
+.
+.P
+\fB\-t\fR, \fB\-\-title=\fR\fITEXT\fR: Specify the message title\. This field is complete
optional\.
+.
+.P
+\fB\-c\fR, \fB\-\-config=\fR\fICONFIG\-URL\fR: Specify one or more configuration
locations\.
+.
+.P
+\fB\-a\fR, \fB\-\-attach=\fR\fIATTACH\-URL\fR: Specify one or more file attachment
locations\.
+.
+.P
+\fB\-n\fR, \fB\-\-notification\-type=\fR\fITYPE\fR: Specify the message type
(default=info)\. Possible values are "info", "success",
"failure", and "warning"\.
+.
+.P
+\fB\-i\fR, \fB\-\-input\-format=\fR\fIFORMAT\fR: Specify the input message format
(default=text)\. Possible values are "text", "html", and
"markdown"\.
+.
+.P
+\fB\-T\fR, \fB\-\-theme=\fRTHEME: Specify the default theme\.
+.
+.P
+\fB\-g\fR, \fB\-\-tag=\fRTAG: Specify one or more tags to filter which services to
notify\. Use multiple \fB\-\-tag\fR (\fB\-g\fR) entries to \fBOR\fR the tags together and
comma separated to \fBAND\fR them\. If no tags are specified then all services are
notified\.
+.
+.P
+\fB\-Da\fR, \fB\-\-disable\-async\fR: Send notifications synchronously (one after the
other) instead of all at once\.
.
-.TP
-\fB\-t\fR, \fB\-\-title=\fR\fITEXT\fR
-Specify the message title\. This field is complete optional\.
+.P
+\fB\-R\fR, \fB\-\-recursion\-depth\fR: he number of recursive import entries that can be
loaded from within Apprise configuration\. By default this is set to 1\. If this is set to
zero, then import statements found in any configuration is ignored\.
.
-.TP
-\fB\-c\fR, \fB\-\-config=\fR\fICONFIG\-URL\fR
-Specify one or more configuration locations\.
+.P
+\fB\-e\fR, \fB\-\-interpret\-escapes\fR Enable interpretation of backslash escapes\. For
example, this would convert sequences such as \en and \er to their respected ascii
new\-line and carriage
.
-.TP
-\fB\-a\fR, \fB\-\-attach=\fR\fIATTACH\-URL\fR
-Specify one or more file attachment locations\.
+.P
+\fB\-d\fR, \fB\-\-dry\-run\fR: Perform a trial run but only prints the notification
services to\-be triggered to \fBstdout\fR\. Notifications are never sent using this
mode\.
.
-.TP
-\fB\-n\fR, \fB\-\-notification\-type=\fR\fITYPE\fR
-Specify the message type (default=info)\. Possible values are "info",
"success", "failure", and "warning"\.
+.P
+return characters prior to the delivery of the notification\.
.
-.TP
-\fB\-T\fR, \fB\-\-theme=\fRTHEME
-Specify the default theme\.
+.P
+\fB\-v\fR, \fB\-\-verbose\fR: The more of these you specify, the more verbose the output
is\. e\.g: \-vvvv
.
-.TP
-\fB\-g\fR, \fB\-\-tag=\fRTAG
-Specify one or more tags to filter which services to notify\. Use multiple \fB\-\-tag\fR
(\fB\-g\fR) entries to \fBOR\fR the tags together and comma separated to \fBAND\fR them\.
If no tags are specified then all services are notified\.
+.P
+\fB\-D\fR, \fB\-\-debug\fR: A debug mode; useful for troubleshooting\.
.
-.TP
-\fB\-d\fR, \fB\-\-dry\-run\fR
-Perform a trial run but only prints the notification services to\-be triggered to
\fBstdout\fR\. Notifications are never sent using this mode\.
+.P
+\fB\-V\fR, \fB\-\-version\fR: Display the apprise version and exit\.
.
-.TP
-\fB\-v\fR, \fB\-\-verbose\fR
-The more of these you specify, the more verbose the output is\.
+.P
+\fB\-h\fR, \fB\-\-help\fR: Show this message and exit\.
.
-.TP
-\fB\-V\fR, \fB\-\-version\fR
-Display the apprise version and exit\.
+.SH "EXIT STATUS"
+\fBapprise\fR exits with a status of:
.
-.TP
-\fB\-\-help\fR
-Show this message and exit\.
+.IP "\(bu" 4
+\fB0\fR if all of the notifications were sent successfully\.
+.
+.IP "\(bu" 4
+\fB1\fR if one or more notifications could not be sent\.
+.
+.IP "\(bu" 4
+\fB2\fR if there was an error specified on the command line such as not providing an
valid argument\.
+.
+.IP "\(bu" 4
+\fB3\fR if there was one or more Apprise Service URLs successfully loaded but none could
be notified due to user filtering (via tags)\.
+.
+.IP "" 0
.
.SH "SERVICE URLS"
-There are to many service URL and combinations to list here\. It\'s best to visit the
Apprise GitHub page \fIhttps://github\.com/caronc/apprise\fR and see what\'s
available\.
+There are to many service URL and combinations to list here\. It\'s best to visit the
Apprise GitHub page \fIhttps://github\.com/caronc/apprise/wiki#notification\-services\fR
and see what\'s available\.
.
.SH "EXAMPLES"
Send a notification to as many servers as you want to specify as you can easily chain
them together:
@@ -82,9 +106,9 @@ Send a notification to as many servers as you want to specify as you
can easily
.
.nf
-$ apprise \-t \'my title\' \-b \'my notification body\' \e
- \'mailto://myemail:mypass@gmail\.com\' \e
- \'pbul://o\.gn5kj6nfhv736I7jC3cj3QLRiyhgl98b\'
+$ apprise \-vv \-t "my title" \-b "my notification body" \e
+ "mailto://myemail:mypass@gmail\.com" \e
+ "pbul://o\.gn5kj6nfhv736I7jC3cj3QLRiyhgl98b"
.
.fi
.
@@ -97,8 +121,8 @@ If you don\'t specify a \fB\-\-body\fR (\fB\-b\fR) then stdin is
used allowing y
.
.nf
-$ cat /proc/cpuinfo | apprise \-t \'cpu info\' \e
- \'mailto://myemail:mypass@gmail\.com\'
+$ cat /proc/cpuinfo | apprise \-vv \-t "cpu info" \e
+ "mailto://myemail:mypass@gmail\.com"
.
.fi
.
@@ -111,7 +135,7 @@ Load in a configuration file which identifies all of your notification
service U
.
.nf
-$ apprise \-t \'my title\' \-b \'my notification body\' \e
+$ apprise \-vv \-t "my title" \-b "my notification body" \e
\-\-config=~/apprise\.yml
.
.fi
@@ -125,7 +149,7 @@ Load in a configuration file from a remote server that identifies all
of your no
.
.nf
-$ apprise \-t \'my title\' \-b \'my notification body\' \e
+$ apprise \-vv \-t "my title" \-b "my notification body" \e
\-\-config=https://localhost/my/apprise/config \e
\-t devops
.
@@ -140,15 +164,61 @@ Include an attachment:
.
.nf
-$ apprise \-t \'School Assignment\' \-b \'See attached\' \e
+$ apprise \-vv \-t "School Assignment" \-b "See attached" \e
\-\-attach=Documents/FinalReport\.docx
.
.fi
.
.IP "" 0
.
+.SH "CONFIGURATION"
+A configuration file can be in the format of either \fBTEXT\fR or \fBYAML\fR where
[TEXT][textconfig] is the easiest and most ideal solution for most users\. However YAML
\fIhttps://github\.com/caronc/apprise/wiki/config_yaml\fR configuration files grants the
user a bit more leverage and access to some of the internal features of Apprise\.
Reguardless of which format you choose, both provide the users the ability to leverage
\fBtagging\fR which adds a more rich and powerful notification environment\.
+.
+.P
+Configuration files can be directly referenced via \fBapprise\fR when referencing the
\fB\-\-config=\fR (\fB\-c\fR) CLI directive\. You can identify as many as you like on the
command line and all of them will be loaded\. You can also point your configuration to a
cloud location (by referencing \fBhttp://\fR or \fBhttps://\fR\. By default \fBapprise\fR
looks in the following local locations for configuration files and loads them:
+.
+.IP "" 4
+.
+.nf
+
+$ ~/\.apprise
+$ ~/\.apprise\.yml
+$ ~/\.config/apprise
+$ ~/\.config/apprise\.yml
+.
+.fi
+.
+.IP "" 0
+.
+.P
+If a default configuration file is referenced in any way by the \fBapprise\fR tool, you
no longer need to provide it a Service URL\. Usage of the \fBapprise\fR tool simplifies
to:
+.
+.IP "" 4
+.
+.nf
+
+$ apprise \-vv \-t "my title" \-b "my notification body"
+.
+.fi
+.
+.IP "" 0
+.
+.P
+If you leveraged tagging
\fIhttps://github\.com/caronc/apprise/wiki/CLI_Usage#label\-leverage\-tagging\fR, you can
define all of Apprise Service URLs in your configuration that you want and only
specifically notify a subset of them:
+.
+.IP "" 4
+.
+.nf
+
+$ apprise \-vv \-t "Will Be Late" \-b "Go ahead and make dinner without
me" \e
+ \-\-tag=family
+.
+.fi
+.
+.IP "" 0
+.
.SH "BUGS"
-\fBApprise\fR is written in Python with 100% test coverage; but it still makes it far
from perfect since the notification services it talks to change all the time\. If you find
any bugs, please make them known at: \fIhttps://github\.com/caronc/apprise/issues\fR
+If you find any bugs, please make them known at:
\fIhttps://github\.com/caronc/apprise/issues\fR
.
.SH "COPYRIGHT"
-Apprise is Copyright (C) 2019 Chris Caron \fIlead2gold(a)gmail\.com\fR
+Apprise is Copyright (C) 2021 Chris Caron \fIlead2gold(a)gmail\.com\fR
diff --git a/python-apprise.spec b/python-apprise.spec
index 47acd16..8fefa10 100644
--- a/python-apprise.spec
+++ b/python-apprise.spec
@@ -1,4 +1,4 @@
-# Copyright (C) 2020 Chris Caron <lead2gold(a)gmail.com>
+# Copyright (C) 2021 Chris Caron <lead2gold(a)gmail.com>
# All rights reserved.
#
# This code is licensed under the MIT License.
@@ -47,18 +47,18 @@ Apprise is a Python package for simplifying access to all of the
different
notification services that are out there. Apprise opens the door and makes
it easy to access:
-Boxcar, ClickSend, Discord, E-Mail, Emby, Faast, FCM, Flock, Gitter, Gotify,
-Growl, IFTTT, Join, Kavenegar, KODI, Kumulos, LaMetric, MacOSX, Mailgun,
-MatterMost, Matrix, Microsoft Windows, Microsoft Teams, MessageBird, MSG91,
-MyAndroid, Nexmo, Nextcloud, Notica, Notifico, Office365, OneSignal, Opsgenie,
-ParsePlatform, PopcornNotify, Prowl, Pushalot, PushBullet, Pushjet, Pushover,
-PushSafer, Rocket.Chat, SendGrid, SimplePush, Sinch, Slack, Spontit,
-SparkPost, Super Toasty, Stride, Syslog, Techulus Push, Telegram, Twilio,
-Twitter, Twist, XBMC, XMPP, Webex Teams}
+Boxcar, ClickSend, Discord, E-Mail, Emby, Faast, FCM, Flock, Gitter, Google
+Chat, Gotify, Growl, Home Assistant, IFTTT, Join, Kavenegar, KODI, Kumulos,
+LaMetric, MacOSX, Mailgun, Mattermost, Matrix, Microsoft Windows, Microsoft
+Teams, MessageBird, MSG91, MyAndroid, Nexmo, Nextcloud, Notica, Notifico,
+Office365, OneSignal, Opsgenie, ParsePlatform, PopcornNotify, Prowl, Pushalot,
+PushBullet, Pushjet, Pushover, PushSafer, Rocket.Chat, SendGrid, SimplePush,
+Sinch, Slack, Spontit, SparkPost, Super Toasty, Stride, Syslog, Techulus Push,
+Telegram, Twilio, Twitter, Twist, XBMC, XMPP, Webex Teams}
Name: python-%{pypi_name}
-Version: 0.9.0
-Release: 3%{?dist}
+Version: 0.9.1
+Release: 1%{?dist}
Summary: A simple wrapper to many popular notification services used today
License: MIT
URL:
https://github.com/caronc/%{pypi_name}
@@ -67,8 +67,6 @@ Source0:
%{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
# correctly handle test coverage. It also removes reference to a
# extra check not supported in py.test in EPEL7 builds
Patch0: %{pypi_name}-rhel7-support.patch
-# A Temporary patch just created so Apprise v9.0 unit tests pass
-Patch1: %{pypi_name}-9.0-unittest-fix.patch
BuildArch: noarch
%description %{common_description}
@@ -180,9 +178,10 @@ BuildRequires: python%{python3_pkgversion}-pytest-runner
%patch0 -p1
# rhel7 doesn't like the new asyncio syntax
rm -f apprise/py3compat/asyncio.py
+# rhel7 doesn't support slixmpp and formatting in place
+# within the dev-requirements.txt file to reference it
+sed -i -e '/^slixmpp.*/d' dev-requirements.txt
%endif
-# Apply Unit Test Patch (for Apprise v0.9.0)
-%patch1 -p1
%build
%if 0%{?with_python2}
@@ -244,8 +243,11 @@ LANG=C.UTF-8 PYTHONPATH=%{buildroot}%{python3_sitelib}
py.test-%{python3_version
%endif
%changelog
-* Wed Jan 27 2021 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.9.0-3
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
+* Tue Feb 23 2021 Chris Caron <lead2gold(a)gmail.com> - 0.9.1-1
+- Updated to v0.9.1
+
+-* Wed Jan 27 2021 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.9.0-3
+-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Thu Jan 14 2021 Chris Caron <lead2gold(a)gmail.com> - 0.9.0-2
- Fixed unit tests
diff --git a/sources b/sources
index a6fdee0..e625001 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apprise-0.9.0.tar.gz) =
285be194f68e2fdea95a354257acd918017e0e53c3303568731ec45d62ed7a74f31eff22306e00eacceee98e1a05b50611623a82894eca0562e54086e793c23c
+SHA512 (apprise-0.9.1.tar.gz) =
0495218d01151e6f39bb3666ad738391e40c0c946f1a4b31ca8e123e6024d74e266f8f4ee5251e7065dc49a21dbe1b5b2da42de5c91ca1c1968726aa0d263a54
https://src.fedoraproject.org/rpms/python-apprise/c/9ddf2102270698203dbb8...