conda / conda-package-streaming

An efficient library to read from new and old format .conda and .tar.bz2 conda packages.
https://conda.github.io/conda-package-streaming/
Other
10 stars 9 forks source link

`tarfile` filters `DeprecationWarning` #87

Open jaimergp opened 2 months ago

jaimergp commented 2 months ago

Checklist

What happened?

conda-build's CI is plagued with warnings like this:

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.

conda-package-streaming should start adding the filter option explicitly for Python 3.12+.

Conda Info

N/A

Conda Config

N/A

Conda list

N/A

Additional Context

See https://github.com/conda/conda-build/pull/5281

dholth commented 1 month ago

IIUC we are doing this weird thing instead of filter. Besides having two implementations this should be a helpful change.

dholth commented 1 month ago

It looks like we could use the most restrictive data_filter