Notification time stamped 2022-08-31 23:53:52 UTC
From d732271a5e766cd3914bff7d1702edceaaee92e0 Mon Sep 17 00:00:00 2001 From: Chris Caron lead2gold@gmail.com Date: Nov 26 2019 00:47:49 +0000 Subject: Updated to v0.8.2
Signed-off-by: Chris Caron lead2gold@gmail.com
---
diff --git a/.gitignore b/.gitignore index 95a8fc0..e4f6ead 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /apprise-0.7.9.tar.gz /apprise-0.8.0.tar.gz /apprise-0.8.1.tar.gz +/apprise-0.8.2.tar.gz diff --git a/apprise-rhel7-support.patch b/apprise-rhel7-support.patch index 38d7d60..d26c704 100644 --- a/apprise-rhel7-support.patch +++ b/apprise-rhel7-support.patch @@ -1,7 +1,19 @@ -diff -Naur apprise-0.7.4/test/test_config_http.py apprise-0.7.4-patched/test/test_config_http.py ---- apprise-0.7.4/test/test_config_http.py 2019-03-05 19:39:56.000000000 -0500 -+++ apprise-0.7.4-patched/test/test_config_http.py 2019-03-12 18:58:01.796635838 -0400 -@@ -44,8 +44,6 @@ +diff -Naur apprise-0.8.2/test/test_attach_http.py apprise-0.8.2-patched/test/test_attach_http.py +--- apprise-0.8.2/test/test_attach_http.py 2019-11-17 08:07:36.000000000 -0500 ++++ apprise-0.8.2-patched/test/test_attach_http.py 2019-11-25 19:06:33.350512555 -0500 +@@ -50,8 +50,6 @@ + 0, 'requests.RequestException() not handled'), + requests.HTTPError( + 0, 'requests.HTTPError() not handled'), +- requests.ReadTimeout( +- 0, 'requests.ReadTimeout() not handled'), + requests.TooManyRedirects( + 0, 'requests.TooManyRedirects() not handled'), + +diff -Naur apprise-0.8.2/test/test_config_http.py apprise-0.8.2-patched/test/test_config_http.py +--- apprise-0.8.2/test/test_config_http.py 2019-11-21 17:00:14.000000000 -0500 ++++ apprise-0.8.2-patched/test/test_config_http.py 2019-11-25 19:06:35.454513337 -0500 +@@ -46,8 +46,6 @@ 0, 'requests.RequestException() not handled'), requests.HTTPError( 0, 'requests.HTTPError() not handled'), @@ -10,22 +22,22 @@ diff -Naur apprise-0.7.4/test/test_config_http.py apprise-0.7.4-patched/test/tes requests.TooManyRedirects( 0, 'requests.TooManyRedirects() not handled'), ) -diff -Naur apprise-0.7.4/test/test_glib_plugin.py apprise-0.7.4-patched/test/test_glib_plugin.py ---- apprise-0.7.4/test/test_glib_plugin.py 2019-03-05 19:39:56.000000000 -0500 -+++ apprise-0.7.4-patched/test/test_glib_plugin.py 2019-03-12 18:59:32.764545807 -0400 -@@ -47,7 +47,7 @@ +diff -Naur apprise-0.8.2/test/test_glib_plugin.py apprise-0.8.2-patched/test/test_glib_plugin.py +--- apprise-0.8.2/test/test_glib_plugin.py 2019-10-29 19:55:24.000000000 -0400 ++++ apprise-0.8.2-patched/test/test_glib_plugin.py 2019-11-25 19:05:56.822498971 -0500 +@@ -48,7 +48,7 @@
if 'dbus' not in sys.modules: # Environment doesn't allow for dbus - pytest.skip("Skipping dbus-python based tests", allow_module_level=True) + pytest.skip("Skipping dbus-python based tests")
+ from dbus import DBusException # noqa E402
- @mock.patch('dbus.SessionBus') -diff -Naur apprise-0.7.4/test/test_rest_plugins.py apprise-0.7.4-patched/test/test_rest_plugins.py ---- apprise-0.7.4/test/test_rest_plugins.py 2019-03-10 14:28:40.000000000 -0400 -+++ apprise-0.7.4-patched/test/test_rest_plugins.py 2019-03-12 18:58:08.538542247 -0400 -@@ -51,8 +51,6 @@ +diff -Naur apprise-0.8.2/test/test_rest_plugins.py apprise-0.8.2-patched/test/test_rest_plugins.py +--- apprise-0.8.2/test/test_rest_plugins.py 2019-11-24 13:43:28.000000000 -0500 ++++ apprise-0.8.2-patched/test/test_rest_plugins.py 2019-11-25 19:06:38.337514409 -0500 +@@ -57,8 +57,6 @@ 0, 'requests.RequestException() not handled'), requests.HTTPError( 0, 'requests.HTTPError() not handled'), diff --git a/apprise.1 b/apprise.1 index 969579f..81e71ab 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" "March 2019" "" "" +.TH "APPRISE" "1" "November 2019" "" "" . .SH "NAME" \fBapprise\fR - Push Notifications that work with just about every platform! @@ -41,6 +41,10 @@ Specify the message title. This field is complete optional. Specify one or more configuration locations. . .TP +\fB-a\fR, \fB--attach=\fR\fIATTACH-URL\fR +Specify one or more file attachment locations. +. +.TP \fB-n\fR, \fB--notification-type=\fR\fITYPE\fR Specify the message type (default=info). Possible values are "info", "success", "failure", and "warning". . @@ -53,6 +57,10 @@ Specify the default theme. 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. . .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. +. +.TP \fB-v\fR, \fB--verbose\fR The more of these you specify, the more verbose the output is. . @@ -125,6 +133,20 @@ $ apprise -t 'my title' -b 'my notification body' \e . .IP "" 0 . +.P +Include an attachment: +. +.IP "" 4 +. +.nf + +$ apprise -t 'School Assignment' -b 'See attached' \e + --attach=Documents/FinalReport.docx +. +.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%5C.com/caronc/apprise/issues%5CfR . diff --git a/python-apprise.spec b/python-apprise.spec index a9ab766..9722afa 100644 --- a/python-apprise.spec +++ b/python-apprise.spec @@ -27,18 +27,18 @@ %if 0%{?fedora} || 0%{?rhel} >= 8 # Python v2 Support dropped %global with_python2 0 -%endif # fedora and/or rhel7 +%endif
%if 0%{?_module_build} %bcond_with tests %else # When bootstrapping Python, we cannot test this yet %bcond_without tests -%endif # module_build +%endif
%if 0%{?rhel} && 0%{?rhel} <= 7 %global with_python3 0 -%endif # using rhel7 +%endif
%global pypi_name apprise
@@ -49,13 +49,13 @@ it easy to access:
Boxcar, ClickSend, Discord, E-Mail, Emby, Faast, Flock, Gitter, Gotify, Growl, IFTTT, Join, KODI, Kumulos, Mailgun, MatterMost, Matrix, Microsoft Windows -Notifications, Microsoft Teams, MessageBird, MSG91, Nexmo, Notifico, +Notifications, Microsoft Teams, MessageBird, MSG91, Nexmo, Notica, Notifico, Notify MyAndroid, Prowl, Pushalot, PushBullet, Pushjet, Pushover, Rocket.Chat, -SendGrid, SimplePush, Slack, Super Toasty, Stride, Syslog, Techulus Push, Telegram, -Twilio, Twitter, Twist, XBMC, XMPP, Webex Teams} +SendGrid, SimplePush, Slack, Super Toasty, Stride, Syslog, Techulus Push, +Telegram, Twilio, Twitter, Twist, XBMC, XMPP, Webex Teams}
Name: python-%{pypi_name} -Version: 0.8.1 +Version: 0.8.2 Release: 1%{?dist} Summary: A simple wrapper to many popular notification services used today License: MIT @@ -86,7 +86,7 @@ BuildRequires: python-yaml %else BuildRequires: python2-babel BuildRequires: python2-yaml -%endif # using rhel7 +%endif
Requires: python-requests Requires: python2-requests-oauthlib @@ -96,17 +96,17 @@ Requires: python-markdown Requires: python-yaml %else Requires: python2-yaml -%endif # using rhel7 +%endif
%if %{with tests} BuildRequires: python-mock BuildRequires: python2-pytest-runner BuildRequires: python2-pytest
-%endif # with_tests +%endif
%description -n python2-%{pypi_name} %{common_description} -%endif # with_python2 +%endif
%package -n %{pypi_name} Summary: Apprise CLI Tool @@ -114,12 +114,12 @@ Summary: Apprise CLI Tool %if 0%{?with_python3} Requires: python%{python3_pkgversion}-click >= 5.0 Requires: python%{python3_pkgversion}-%{pypi_name} = %{version}-%{release} -%endif # with_python3 +%endif
%if 0%{?with_python2} Requires: python2-click >= 5.0 Requires: python2-%{pypi_name} = %{version}-%{release} -%endif # with_python2 +%endif
%description -n %{pypi_name} An accompanied CLI tool that can be used as part of Apprise @@ -149,33 +149,33 @@ Requires: python%{python3_pkgversion}-yaml BuildRequires: python%{python3_pkgversion}-mock BuildRequires: python%{python3_pkgversion}-pytest BuildRequires: python%{python3_pkgversion}-pytest-runner -%endif # with_tests +%endif
%description -n python%{python3_pkgversion}-%{pypi_name} %{common_description} -%endif # with_python3 +%endif
%prep %setup -q -n %{pypi_name}-%{version} %if 0%{?rhel} && 0%{?rhel} <= 7 # rhel7 older package work-arounds %patch0 -p1 -%endif # using rhel7 +%endif
%build %if 0%{?with_python2} %py2_build -%endif # with_python2 +%endif %if 0%{?with_python3} %py3_build -%endif # with_python3 +%endif
%install %if 0%{?with_python2} %py2_install -%endif # with_python2 +%endif %if 0%{?with_python3} %py3_install -%endif # with_python3 +%endif
install -p -D -T -m 0644 packaging/man/%{pypi_name}.1 \ %{buildroot}%{_mandir}/man1/%{pypi_name}.1 @@ -184,11 +184,11 @@ install -p -D -T -m 0644 packaging/man/%{pypi_name}.1 \ %check %if 0%{?with_python2} LANG=C.UTF-8 PYTHONPATH=%{buildroot}%{python2_sitelib} py.test -%endif # with_python2 +%endif %if 0%{?with_python3} LANG=C.UTF-8 PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -%endif # with_python3 -%endif # with_tests +%endif +%endif
%if 0%{?with_python2} %files -n python2-%{pypi_name} @@ -197,7 +197,7 @@ LANG=C.UTF-8 PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version %{python2_sitelib}/%{pypi_name} %exclude %{python2_sitelib}/%{pypi_name}/cli.* %{python2_sitelib}/*.egg-info -%endif # with_python2 +%endif
%if 0%{?with_python3} %files -n python%{python3_pkgversion}-%{pypi_name} @@ -206,7 +206,7 @@ LANG=C.UTF-8 PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version %{python3_sitelib}/%{pypi_name} %exclude %{python3_sitelib}/%{pypi_name}/cli.* %{python3_sitelib}/*.egg-info -%endif # with_python3 +%endif
%files -n %{pypi_name} %{_bindir}/%{pypi_name} @@ -214,13 +214,16 @@ LANG=C.UTF-8 PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version
%if 0%{?with_python3} %{python3_sitelib}/%{pypi_name}/cli.* -%endif # with_python3 +%endif
%if 0%{?with_python2} %{python2_sitelib}/%{pypi_name}/cli.* -%endif # with_python2 +%endif
%changelog +* Mon Nov 25 2019 Chris Caron lead2gold@gmail.com - 0.8.2-1 +- Updated to v0.8.2 + * Sun Oct 13 2019 Chris Caron lead2gold@gmail.com - 0.8.1-1 - Updated to v0.8.1
diff --git a/sources b/sources index b1553ab..4912256 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (apprise-0.8.1.tar.gz) = e02b723f9efe944d3bab63cb184423347e1c725c47e6388c59eefbcb3ca224d950ce0228dc2f47bd54335b4f627ee6c8285834371254f2689585aa1f737754f0 +SHA512 (apprise-0.8.2.tar.gz) = 086c8c5a7ddb3e2bbaa3f547371194da84a7ef4efbeae84e5659f410aaf703d9bf7f04060268c09c18d8c0281d8814c19eb91a0fc298634ceaae98e3b83140d1
https://src.fedoraproject.org/rpms/python-apprise/c/d732271a5e766cd3914bff7d...
scm-commits@lists.fedoraproject.org