bindings: python: specify a tar extract filter
authorVincent Fazio <vfazio@xes-inc.com>
Thu, 7 Nov 2024 20:50:01 +0000 (14:50 -0600)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 12 Nov 2024 12:44:05 +0000 (13:44 +0100)
commitb66ebbbcf96f104b5d1d8f66c272f737cd8eed90
treeb168ac1a9281b4811ec1b240fd1d31125b3257a2
parentcff761343afdd8f40c5550c92a11cfe57aa3219e
bindings: python: specify a tar extract filter

Starting in Python 3.12, extracting files from tarballs without a filter
specified generates a DeprecationWarning [0].

For Python >= 3.12, specify the `fully_trusted_filter` filter which
replicates the behavior from previous versions.

This filter also makes sense as we should be able to trust the tarball
the maintainers generate after the hash has been verified.

[0]: https://docs.python.org/3/library/tarfile.html#tarfile-extraction-filter

Signed-off-by: Vincent Fazio <vfazio@xes-inc.com>
Link: https://lore.kernel.org/r/20241107205001.574426-1-vfazio@xes-inc.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
bindings/python/setup.py