Skip to content

DeprecationWarning on Python>=3.12 for tar.extract method #21

@danielhollas

Description

@danielhollas

From aiida-core test suite:

tests/tools/archive/test_utils.py::test_copy_tar_to_zip
/home/runner/work/aiida-core/aiida-core/.venv/lib/python3.13/site-packages/archive_path/tar_path.py:448: DeprecationWarning: Python 3.14 will, by default, filter extracted tar archives and reject files or modify their metadata. Use the filter argument to control this behavior.
self._tarfile.extract(path=outpath, member=info)

See aiidateam/aiida-core#6770 and the linked PR for how we solved this in aiida-core.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions