The dependency on setuptools was removed during a recent refactor, but
afew imports pkg_resources from setuptools, so readd it.
Also add a version test, that executes the cmdline and would've shown
that the CLI fails.
Fixes: #268680
It won't be enough to fix cross in all cases, but it is in at least
one: pywayland. I've only made the change in cases I'm confident it's
correct, as it would be wrong to change this when python.interpreter
is used in wrappers, and possibly when it's used for running tests.
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
MailMover: many fixes
Previously, MailMover didn't properly preserve flags when renaming files, and
moved all mail to `cur`. This was fixed. Also, MailMover gained a test suite.
New filters: PropagateTags[ByRegex]InThreadFilter
These filters allow propagating tags set to a message to the whole thread.
New command line argument: --notmuch-args= in move mode
In move mode, afew calls `notmuch new` after moving mails around. This
prevents `afew -m` from being used in a pre-new hook in `notmuch`.
Now it's possible to specify notmuch args, so something like `afew -m
--notmuch-args=--no-hooks` can live happily in a pre-new hook.
Python 3.4 and 3.5 support dropped
afew stopped supporting the older python versions 3.4 and 3.5, and removed
some more Python 2 compatibility code. (`from __future__ import …`, utf-8
headers, relative imports, …)
it's an application, not a python module
Also, remove name attribute.
Build with python 3 by default.
afew: make setuptools_scm a buildInput
afew: don't set SETUPTOOLS_SCM_PRETEND_VERSION anymore
we fetch from pypi, with version info properly set, so this shouldn't be
an issue.
afew: set license
afew: add notmuch binary to PATH
it seems afew calls "notmuch new" in MailMover.py
afew: don't set LD_LIBRARY_PATH
the library is already hardcoded pythonPackages.notmuch's globals.py