mirror of https://github.com/caronc/apprise
bumped version to v0.8.8
parent
f7cbbcf310
commit
8cf638ca9b
|
@ -24,7 +24,7 @@
|
||||||
# THE SOFTWARE.
|
# THE SOFTWARE.
|
||||||
|
|
||||||
__title__ = 'apprise'
|
__title__ = 'apprise'
|
||||||
__version__ = '0.8.7'
|
__version__ = '0.8.8'
|
||||||
__author__ = 'Chris Caron'
|
__author__ = 'Chris Caron'
|
||||||
__license__ = 'MIT'
|
__license__ = 'MIT'
|
||||||
__copywrite__ = 'Copyright (C) 2020 Chris Caron <lead2gold@gmail.com>'
|
__copywrite__ = 'Copyright (C) 2020 Chris Caron <lead2gold@gmail.com>'
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: apprise 0.8.7\n"
|
"Project-Id-Version: apprise 0.8.8\n"
|
||||||
"Report-Msgid-Bugs-To: lead2gold@gmail.com\n"
|
"Report-Msgid-Bugs-To: lead2gold@gmail.com\n"
|
||||||
"POT-Creation-Date: 2020-08-13 17:07-0400\n"
|
"POT-Creation-Date: 2020-09-02 07:46-0400\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
@ -104,6 +104,9 @@ msgstr ""
|
||||||
msgid "Country"
|
msgid "Country"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Custom Icon"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "Cycles"
|
msgid "Cycles"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,7 @@ Sinch, Slack, Spontit, Super Toasty, Stride, Syslog, Techulus Push, Telegram,
|
||||||
Twilio, Twitter, Twist, XBMC, XMPP, Webex Teams}
|
Twilio, Twitter, Twist, XBMC, XMPP, Webex Teams}
|
||||||
|
|
||||||
Name: python-%{pypi_name}
|
Name: python-%{pypi_name}
|
||||||
Version: 0.8.7
|
Version: 0.8.8
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: A simple wrapper to many popular notification services used today
|
Summary: A simple wrapper to many popular notification services used today
|
||||||
License: MIT
|
License: MIT
|
||||||
|
@ -175,6 +175,8 @@ BuildRequires: python%{python3_pkgversion}-pytest-runner
|
||||||
%if 0%{?rhel} && 0%{?rhel} <= 7
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
||||||
# rhel7 older package work-arounds
|
# rhel7 older package work-arounds
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
# rhel7 doesn't like the new asyncio syntax
|
||||||
|
rm -f apprise/py3compat/asyncio.py
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
@ -237,6 +239,9 @@ LANG=C.UTF-8 PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Sep 2 2020 Chris Caron <lead2gold@gmail.com> - 0.8.8-1
|
||||||
|
- Updated to v0.8.8
|
||||||
|
|
||||||
* Thu Aug 13 2020 Chris Caron <lead2gold@gmail.com> - 0.8.7-1
|
* Thu Aug 13 2020 Chris Caron <lead2gold@gmail.com> - 0.8.7-1
|
||||||
- Updated to v0.8.7
|
- Updated to v0.8.7
|
||||||
|
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -62,7 +62,7 @@ else:
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='apprise',
|
name='apprise',
|
||||||
version='0.8.7',
|
version='0.8.8',
|
||||||
description='Push Notifications that work with just about every platform!',
|
description='Push Notifications that work with just about every platform!',
|
||||||
license='MIT',
|
license='MIT',
|
||||||
long_description=open('README.md').read(),
|
long_description=open('README.md').read(),
|
||||||
|
|
|
@ -28,6 +28,7 @@ import pytest
|
||||||
from apprise.AppriseAsset import AppriseAsset
|
from apprise.AppriseAsset import AppriseAsset
|
||||||
from apprise.config.ConfigBase import ConfigBase
|
from apprise.config.ConfigBase import ConfigBase
|
||||||
from apprise import ConfigFormat
|
from apprise import ConfigFormat
|
||||||
|
import yaml
|
||||||
|
|
||||||
# Disable logging for a cleaner testing output
|
# Disable logging for a cleaner testing output
|
||||||
import logging
|
import logging
|
||||||
|
@ -490,26 +491,6 @@ urls:
|
||||||
# There were no include entries defined
|
# There were no include entries defined
|
||||||
assert len(config) == 0
|
assert len(config) == 0
|
||||||
|
|
||||||
# Invalid url/schema
|
|
||||||
result, config = ConfigBase.config_parse_yaml("""
|
|
||||||
# no lists... just no
|
|
||||||
urls: [milk, pumpkin pie, eggs, juice]
|
|
||||||
|
|
||||||
# Including by list is okay
|
|
||||||
include: [file:///absolute/path/, relative/path, http://test.com]
|
|
||||||
|
|
||||||
""", asset=asset)
|
|
||||||
|
|
||||||
# Invalid data gets us an empty result set
|
|
||||||
assert isinstance(result, list)
|
|
||||||
assert len(result) == 0
|
|
||||||
|
|
||||||
# There were 3 include entries
|
|
||||||
assert len(config) == 3
|
|
||||||
assert 'file:///absolute/path/' in config
|
|
||||||
assert 'relative/path' in config
|
|
||||||
assert 'http://test.com' in config
|
|
||||||
|
|
||||||
# Invalid url/schema
|
# Invalid url/schema
|
||||||
result, config = ConfigBase.config_parse_yaml("""
|
result, config = ConfigBase.config_parse_yaml("""
|
||||||
urls:
|
urls:
|
||||||
|
@ -906,3 +887,39 @@ include:
|
||||||
assert 'http://localhost/apprise/cfg01' in config
|
assert 'http://localhost/apprise/cfg01' in config
|
||||||
assert 'http://localhost/apprise/cfg02' in config
|
assert 'http://localhost/apprise/cfg02' in config
|
||||||
assert 'http://localhost/apprise/cfg03' in config
|
assert 'http://localhost/apprise/cfg03' in config
|
||||||
|
|
||||||
|
|
||||||
|
# This test fails on CentOS 8.x so it was moved into it's own function
|
||||||
|
# so it could be bypassed. The ability to use lists in YAML files didn't
|
||||||
|
# appear to happen until later on; it's certainly not available in v3.12
|
||||||
|
# which was what shipped with CentOS v8 at the time.
|
||||||
|
@pytest.mark.skipif(int(yaml.__version__.split('.')[0]) <= 3,
|
||||||
|
reason="requires pyaml v4.x or higher.")
|
||||||
|
def test_config_base_config_parse_yaml_list():
|
||||||
|
"""
|
||||||
|
API: ConfigBase.config_parse_yaml list parsing
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
|
# general reference used below
|
||||||
|
asset = AppriseAsset()
|
||||||
|
|
||||||
|
# Invalid url/schema
|
||||||
|
result, config = ConfigBase.config_parse_yaml("""
|
||||||
|
# no lists... just no
|
||||||
|
urls: [milk, pumpkin pie, eggs, juice]
|
||||||
|
|
||||||
|
# Including by list is okay
|
||||||
|
include: [file:///absolute/path/, relative/path, http://test.com]
|
||||||
|
|
||||||
|
""", asset=asset)
|
||||||
|
|
||||||
|
# Invalid data gets us an empty result set
|
||||||
|
assert isinstance(result, list)
|
||||||
|
assert len(result) == 0
|
||||||
|
|
||||||
|
# There were 3 include entries
|
||||||
|
assert len(config) == 3
|
||||||
|
assert 'file:///absolute/path/' in config
|
||||||
|
assert 'relative/path' in config
|
||||||
|
assert 'http://test.com' in config
|
||||||
|
|
Loading…
Reference in New Issue