urlwatch: update to 2.25.

This commit is contained in:
RunningDroid 2022-02-13 23:09:28 -05:00 committed by Leah Neukirchen
parent 6c9ce16f56
commit 797ada95a5
2 changed files with 19 additions and 5 deletions

View file

@ -0,0 +1,14 @@
Work around https://github.com/thp/urlwatch/issues/677
diff --git a/lib/urlwatch/tests/test_handler.py b/lib/urlwatch/tests/test_handler.py
index 736536a..fac9449 100644
--- a/lib/urlwatch/tests/test_handler.py
+++ b/lib/urlwatch/tests/test_handler.py
@@ -89,6 +89,7 @@ def test_pep8_conformance():
class ConfigForTest(CommandConfig):
def __init__(self, config, urls, cache, hooks, verbose):
+ sys.argv = sys.argv[:1]
(prefix, bindir) = os.path.split(os.path.dirname(os.path.abspath(sys.argv[0])))
super().__init__('urlwatch', os.path.dirname(__file__), bindir, prefix, config, urls, hooks, cache, verbose)

View file

@ -1,7 +1,7 @@
# Template file for 'urlwatch'
pkgname=urlwatch
version=2.23
revision=2
version=2.25
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-appdirs python3-keyring python3-minidb python3-requests
@ -9,18 +9,18 @@ depends="python3-appdirs python3-keyring python3-minidb python3-requests
# Check the Docs for optional packages:
# https://urlwatch.readthedocs.io/en/latest/dependencies.html#optional-packages
checkdepends="python3-pytest python3-pycodestyle python3-docutils
python3-Pygments ${depends}"
python3-Pygments python3-jq ${depends}"
short_desc="Tool for monitoring webpages for updates"
maintainer="RunningDroid <runningdroid@zoho.com>"
license="BSD-3-Clause"
homepage="https://thp.io/2008/urlwatch/"
distfiles="${PYPI_SITE}/u/urlwatch/urlwatch-${version}.tar.gz"
checksum=73a29efbef80c02bc8c285fca427793979c0e4bef40bc084df5de5436378b842
checksum=6802297d3318286e7f3d36b9a4567a2fb09b0ae779d4b76811dd29a7281c1f8a
do_check() {
# skip the tests that require python modules that aren't packaged
# (pdftotext & pytesseract)
pytest -k "not (pdf or ocr or json)" -v
pytest -k 'not (pdf or ocr)' -v
}
post_install() {