From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CDC9C138335 for ; Sun, 14 Apr 2019 13:25:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id ADC92E089D; Sun, 14 Apr 2019 13:25:41 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6F66AE089D for ; Sun, 14 Apr 2019 13:25:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 78AFC3410CC for ; Sun, 14 Apr 2019 13:25:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 54BDA567 for ; Sun, 14 Apr 2019 13:25:37 +0000 (UTC) From: "Louis Sautier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Louis Sautier" Message-ID: <1555248189.88135a353597de9aa041b5e85107f821adab133a.sbraz@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-misc/urlwatch/files/, www-misc/urlwatch/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-misc/urlwatch/Manifest www-misc/urlwatch/files/urlwatch-2.17-fix-yaml.load.patch www-misc/urlwatch/urlwatch-2.17.ebuild X-VCS-Directories: www-misc/urlwatch/files/ www-misc/urlwatch/ X-VCS-Committer: sbraz X-VCS-Committer-Name: Louis Sautier X-VCS-Revision: 88135a353597de9aa041b5e85107f821adab133a X-VCS-Branch: master Date: Sun, 14 Apr 2019 13:25:37 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4ce437eb-2f36-4d7a-bf6a-2d2e2271d85b X-Archives-Hash: 4599d03855f85e0590f69cd5e27da502 commit: 88135a353597de9aa041b5e85107f821adab133a Author: Louis Sautier gentoo org> AuthorDate: Sun Apr 14 12:35:18 2019 +0000 Commit: Louis Sautier gentoo org> CommitDate: Sun Apr 14 13:23:09 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88135a35 www-misc/urlwatch: bump to 2.17 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Louis Sautier gentoo.org> www-misc/urlwatch/Manifest | 1 + .../files/urlwatch-2.17-fix-yaml.load.patch | 18 +++++++ www-misc/urlwatch/urlwatch-2.17.ebuild | 62 ++++++++++++++++++++++ 3 files changed, 81 insertions(+) diff --git a/www-misc/urlwatch/Manifest b/www-misc/urlwatch/Manifest index 4dce477bcd7..c28fb92900d 100644 --- a/www-misc/urlwatch/Manifest +++ b/www-misc/urlwatch/Manifest @@ -1,3 +1,4 @@ DIST urlwatch-2.13.tar.gz 34312 BLAKE2B 6ac618d4f1f78b0a3f6d17dd2283704e8d1fc7173ce6d79fcf0f9177f48463a610a4c20d8483a4a9c22e56eca67730ef25982981f310ca8e9927e48e298a1b1d SHA512 5ca6ad3de54c2e1d63cb545ae0d213a4483ef175dad947be00994bc990d047c7aec1f3b0a8b23290672db940001a9cc31c919aa7d9c280ab4792299e2dba684c DIST urlwatch-2.15.tar.gz 36839 BLAKE2B a474d93adb4ef95ad5c44b7cee4a077dd744caf09c84ec64b2e9f04635505a8ffd422f4ba56cb2069571b5b4b1e1f7df4b7412a716b5738388a0c55ea831e050 SHA512 3390a693656a89e75836f713249261650c03e1dc1d1819d82872d35eead7f29844502073d8674e92e97a32e44180347928e5dfada814798984d11e1ff4f0ac40 DIST urlwatch-2.16.tar.gz 42713 BLAKE2B bee95c808b8705135112646ed7bf42c6606d716f447394e69fbc3355d38597e44b3e94ac91c6c2304fadcc5eb7d35349e6d54601721319c39268583fa8c7c042 SHA512 ffa9245bc4b8631e3105b1afd4ed3c3f5585bc30cd56c7531f9c2d0e4d61e36b56db3a69d62f851bed5fba9c9c332034b1757d70b32f4a4b0607ae59ed6cf887 +DIST urlwatch-2.17.tar.gz 44178 BLAKE2B 46163b3305a50c3b5165da8f794c252aeb0a3581f16ba04cc1f0d920066accd02f7eba47718012e2ac0071f6bfa31019777a28840179a28a7fe365ae2e8f1d2c SHA512 635bca7e55641dd73447f5ec9ad429539decfaa8a1c19ab073c3bd46acfc518fa6012d855e0c37dd78654da28acf1446f580def611bcb85ae94fe13f567e3613 diff --git a/www-misc/urlwatch/files/urlwatch-2.17-fix-yaml.load.patch b/www-misc/urlwatch/files/urlwatch-2.17-fix-yaml.load.patch new file mode 100644 index 00000000000..c8bd04ae932 --- /dev/null +++ b/www-misc/urlwatch/files/urlwatch-2.17-fix-yaml.load.patch @@ -0,0 +1,18 @@ +commit d00041bacd6343cadf29c3d0a98817a7b9fda2a1 +Author: Louis Sautier +Date: Sun Apr 14 14:49:24 2019 +0200 + + Fix YAMLLoadWarning in tests + +diff --git a/test/test_filters.py b/test/test_filters.py +index 3402616..da2393b 100644 +--- a/test/test_filters.py ++++ b/test/test_filters.py +@@ -33,6 +33,6 @@ def test_filters(): + eq_(result, expected_result) + + with open(os.path.join(os.path.dirname(__file__), 'data/filter_tests.yaml'), 'r', encoding='utf8') as fp: +- filter_tests = yaml.load(fp) ++ filter_tests = yaml.load(fp, Loader=yaml.SafeLoader) + for test_name in filter_tests: + yield check_filter, test_name diff --git a/www-misc/urlwatch/urlwatch-2.17.ebuild b/www-misc/urlwatch/urlwatch-2.17.ebuild new file mode 100644 index 00000000000..240d4e646a3 --- /dev/null +++ b/www-misc/urlwatch/urlwatch-2.17.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{5,6,7} ) + +inherit distutils-r1 + +DESCRIPTION="A tool for monitoring webpages for updates" +HOMEPAGE="https://thp.io/2008/urlwatch/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND=" + dev-python/appdirs[${PYTHON_USEDEP}] + dev-python/cssselect[${PYTHON_USEDEP}] + dev-python/keyring[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/minidb[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + dev-python/nose[${PYTHON_USEDEP}] + dev-python/pycodestyle[${PYTHON_USEDEP}] + ) +" + +DOCS=( CHANGELOG.md README.md ) + +# https://github.com/thp/urlwatch/pull/382 +PATCHES=( "${FILESDIR}/${P}-fix-yaml.load.patch" ) + +python_test() { + nosetests -v test || die "tests failed with ${EPYTHON}" +} + +pkg_postinst() { + if [[ -z "${REPLACING_VERSIONS}" ]]; then + if ! has_version dev-python/chump; then + elog "Install 'dev-python/chump' to enable Pushover" \ + "notifications support" + fi + if ! has_version dev-python/pushbullet-py; then + elog "Install 'dev-python/pushbullet-py' to enable" \ + "Pushbullet notifications support" + fi + elog "HTML parsing can be improved by installing one of the following packages" + elog "and changing the html2text subfilter parameter:" + elog "dev-python/beautifulsoup:4" + elog "app-text/html2text" + elog "dev-python/html2text" + elog "www-client/lynx" + fi +}