if a port needs 2.x then set MODPY_VERSION=${MODPY_DEFAULT_VERSION_2}.
This commit doesn't change any versions currently used; it may be that
some ports have MODPY_DEFAULT_VERSION_2 but don't require it, those
should be cleaned up in the course of updating ports where possible.
Python module ports providing py3-* packages should still use
FLAVOR=python3 so that we don't have a mixture of dependencies some
using ${MODPY_FLAVOR} and others not.
upgrade notes:
- if you have an old .urlwatch/lib/hooks.py you will need to either
update or remove it (new-style configurations with filters in urls.yaml
don't generally use this file, but you may have an old one lying around)
- simple filter definitions like this:
+----
| kind: url
| url: http://example.org/foo
| filter: html2text
+----
are deprecated and should be converted to this style to avoid urlwatch
whining about them::
+----
| kind: url
| url: http://example.org/foo
| filter:
| - html2text
+----
This is a major update for urlwatch which is now a python3 program.
Consider looking at the README.md at https://github.com/thp/urlwatch
if you are migrating from version 1.
Noteable changes:
- the urls file is now in PyYaml format and will be auto-convertert
- watching ftp:// URLs needs a workaround like:
kind: shell
command: curl ftp://url/path/
- custom hooks are different and need rewriting
Feedback from and OK sthen@ aja@
This script is intended to help you watch URLs and get notified (via
email or in your terminal) of any changes. The change notification will
include the URL that has changed and a unified diff of what has changed.
The script supports the use of a filtering hook function to strip
trivially-varying elements of a webpage.