From bf55f7b419cce88de0b71af1af97f1a8476f1e0a Mon Sep 17 00:00:00 2001 From: RunningDroid Date: Tue, 11 Apr 2023 17:09:02 -0400 Subject: [PATCH] urlwatch: update to 2.26 --- srcpkgs/urlwatch/patches/test_handler.patch | 14 -------------- srcpkgs/urlwatch/template | 18 ++++++++---------- 2 files changed, 8 insertions(+), 24 deletions(-) delete mode 100644 srcpkgs/urlwatch/patches/test_handler.patch diff --git a/srcpkgs/urlwatch/patches/test_handler.patch b/srcpkgs/urlwatch/patches/test_handler.patch deleted file mode 100644 index 73f301e49f9f..000000000000 --- a/srcpkgs/urlwatch/patches/test_handler.patch +++ /dev/null @@ -1,14 +0,0 @@ -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) - diff --git a/srcpkgs/urlwatch/template b/srcpkgs/urlwatch/template index bdc8421176c2..88441dcd1674 100644 --- a/srcpkgs/urlwatch/template +++ b/srcpkgs/urlwatch/template @@ -1,7 +1,7 @@ # Template file for 'urlwatch' pkgname=urlwatch -version=2.25 -revision=2 +version=2.26 +revision=1 build_style=python3-module hostmakedepends="python3-setuptools" depends="python3-appdirs python3-keyring python3-minidb python3-requests @@ -9,19 +9,17 @@ 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 python3-jq ${depends}" + python3-jq ${depends}" short_desc="Tool for monitoring webpages for updates" maintainer="RunningDroid " license="BSD-3-Clause" homepage="https://thp.io/2008/urlwatch/" +changelog="https://raw.githubusercontent.com/thp/urlwatch/master/CHANGELOG.md" distfiles="${PYPI_SITE}/u/urlwatch/urlwatch-${version}.tar.gz" -checksum=6802297d3318286e7f3d36b9a4567a2fb09b0ae779d4b76811dd29a7281c1f8a - -do_check() { - # skip the tests that require python modules that aren't packaged - # (pdftotext & pytesseract) - pytest -k 'not (pdf or ocr)' -v -} +checksum=b14bbe23d87b7d4ac8b4e71a51fd2066908a947ccf7b557c3e4f87b09f455e8f +# skip the tests that require python modules that aren't packaged +# (pdftotext & pytesseract) +make_check_args="-k not((pdf)or(ocr))" post_install() { vlicense COPYING