runbot/runbot_merge/models
Xavier Morel 751154514a [FIX] runbot_merge: tarfile deprecation warning
Starting in 3.12 `TarFile.extact(all)` can take a `filter` parameter
which alters the behaviour of the extractor as it relates to the
application of tar metadata. Not passing this parameter is deprecated
unless the also new `TarFile.extraction_filter` attribute is set.

Now there are a few wrinkles here:

1. Both parameter and attributes were added in older patch releases
   e.g. 3.9.17 and 3.10.12 and 3.11.4.
2. The attribute form will *not* resolve string filters, it needs the
   callables.

As such just to be on the safe side of things set the attribute using
a `getattr`, in releases with the feature it will be set to a proper
value (the future default which ignores most or all metadata from the
archive), and in releases without it just sets the attribute to `None`
which should do no harm.
2025-03-14 14:44:58 +01:00
..
backport [FIX] *: double forwardport when adding a PR to an existing batch 2025-02-11 14:27:53 +01:00
crons [IMP] runbot_merge: auto-trigger cron for issue closing 2024-12-16 09:11:19 +01:00
ir_cron [IMP] runbot_merge: add cron trigger button 2025-02-18 11:45:56 +01:00
project_freeze [REM] runbot_merge: freeze wizard auto-refresh 2024-12-02 16:32:53 +01:00
staging_cancel [ADD] runbot_merge: stagings canceling wizard 2022-12-08 10:46:22 +01:00
__init__.py [IMP] runbot_merge: add cron trigger button 2025-02-18 11:45:56 +01:00
batch.py [IMP] *: remove dead imports 2025-02-28 16:12:40 +01:00
commands.py [IMP] *: remove dead imports 2025-02-28 16:12:40 +01:00
events_sources.py [ADD] *: per-repository webhook secret 2024-06-06 11:07:57 +02:00
ir_actions.py [IMP] runbot_merge: add json & requests to server actions context 2023-02-20 10:13:05 +01:00
ir_ui_view.py [IMP] runbot_merge: suppress view validation warning 2024-09-27 12:53:51 +02:00
mail_thread.py [MERGE] bot from 16.0 to 17.0 2024-08-12 13:13:03 +02:00
patcher.py [FIX] runbot_merge: tarfile deprecation warning 2025-03-14 14:44:58 +01:00
project.py [FIX] project creation: handling of mergebot info 2024-12-02 16:32:53 +01:00
pull_requests.py [IMP] *: add closed PR to the branch deleter 2025-03-11 15:28:28 +01:00
res_partner.py [IMP] *: remove dead imports 2025-02-28 16:12:40 +01:00
stagings_create.py [IMP] *: avoid updating (all) branches in cases where that's unnecessary 2025-03-07 09:15:48 +01:00
utils.py [IMP] *: remove dead imports 2025-02-28 16:12:40 +01:00