urlwatch: update to urlwatch-2.22

Changelog:

== [2.22] -- 2020-12-19

=== Added

- Added 'wait_until' option to browser jobs to configure how long
  the headless browser will wait for pages to load.
- Jobs now have an optional `treat_new_as_changed` (default `false`)
  key that can be set, and will treat newly-found pages as changed,
  and display a diff from the empty string (useful for `diff_tool`
  or `diff_filter` with side effects)
- New reporters: `discord`, `mattermost`
- New key `user_visible_url` for URL jobs that can be used to show
  a different URL in reports (useful if the watched URL is a REST API
  endpoint, but the report should link to the corresponding web page)
- The Markdown reporter now supports limiting the report length via the
  `max_length` parameter of the `submit` method. The length limiting logic is
  smart in the sense that it will try trimming the details first, followed by
  omitting them completely, followed by omitting the summary. If a part of the
  report is omitted, a note about this is added to the report. (PR#572, by
  Denis Kasak)

=== Changed

- Diff output is now generated more uniformly, independent of whether
  the input data has a trailing newline or not; if this behavior is not
  intended, use an external `diff_tool` (PR#550, by Adam Goldsmith)
- The `--test-diff-filter` output now properly reports timestamps from
  the history entry instead of the current date and time (Fixes #573)
- Unique GUIDs for jobs are now enforced at load time, append "#1",
  "#2", ... to the URLs to make them unique if you have multiple
  different jobs that share the same request URL (Fixes #586)
- When a config, urls file or hooks file does not exist and should be
  edited or inited, its parent folders will be created (previously
  only the urlwatch configuration folder was created; Fixes #594)
- Auto-matched filters now always get `None` supplied as subfilter;
  any custom filters must accept a `subfilter` parameter after the
  existing `data` parameter
- Drop support for Python 3.5

== Fixed

- Make imports thread-safe: This might increase startup times a bit,
  as dependencies are imported on bootup instead of when first used.
  Importing in Python is not (yet) thread-safe, so we cannot import
  new modules from the worker threads reliably (Fixes #559, #601)

- The Matrix reporter was improved in several ways (PR#572, by Denis Kasak):

  - The maximum length of the report was increase from 4096 to 16384.
  - The report length limiting is now implemented via the new length limiting
    functionality of the Markdown reporter. Previously, the report was simply
    trimmed at the end which could break the diff blocks and make them render
    incorrectly.
  - The diff code blocks are now tagged as diffs which will allow the diffs to
    be syntax highlighted as such. This doesn't yet work in Element, pending on
    the resolution of trentm/python-markdown2#370.
This commit is contained in:
Yorick Hardy 2020-12-23 16:39:07 +02:00
parent d21cf81d10
commit baba5385e5
3 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.1 2015/08/18 18:36:32 yhardy Exp $
DISTNAME= urlwatch-2.21
DISTNAME= urlwatch-2.22
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_GITHUB:=thp/}

View File

@ -1,7 +1,7 @@
$NetBSD: distinfo,v 1.1 2015/08/18 18:36:32 yhardy Exp $
SHA1 (urlwatch-2.21.tar.gz) = c2ea498217258b565d20e5f307978a773b054c9b
RMD160 (urlwatch-2.21.tar.gz) = 790db24ac22fa8e89f91781c381a8b5e9111c2ee
SHA512 (urlwatch-2.21.tar.gz) = e832ae0ed836739b85c9e71e0028fc475dcd2944af78c61391d7b3f155b1f22f52e5913b1dd4207f79c210383e6f187650a7e2ef109a59827881d825bfaee7c1
Size (urlwatch-2.21.tar.gz) = 126464 bytes
SHA1 (patch-setup.py) = c255541a0eefc16250d4505e3dd0047f2c79d269
SHA1 (urlwatch-2.22.tar.gz) = 835f75d3fa385100bf93439beca9e16904ce2f9f
RMD160 (urlwatch-2.22.tar.gz) = 4c697c29839120ecd3f4f6103f70df5335824e27
SHA512 (urlwatch-2.22.tar.gz) = eb30d44875cd6a0b7c7ef665ca3fb369d1759ca4d762c2dfd7eefdf4f904c697f27d7a9db9ac54b4996957f8b9363f5e9ad0e236a28e84c8356143d00d216e02
Size (urlwatch-2.22.tar.gz) = 132740 bytes
SHA1 (patch-setup.py) = 86f1f7194d8c484ca90f21f48944b00088aa8b33

View File

@ -2,11 +2,11 @@ $NetBSD$
Use the pkgsrc directory structure.
--- setup.py.orig 2020-07-31 05:37:07.000000000 +0000
--- setup.py.orig 2020-12-19 11:27:43.000000000 +0000
+++ setup.py
@@ -24,8 +24,8 @@ m['package_dir'] = {'': 'lib'}
m['packages'] = ['urlwatch']
m['python_requires'] = '>=3.5'
m['python_requires'] = '>=3.6'
m['data_files'] = [
- ('share/man/man1', ['share/man/man1/urlwatch.1']),
- ('share/urlwatch/examples', [