diff --git a/bioconda_utils/bioconda_utils-requirements.txt b/bioconda_utils/bioconda_utils-requirements.txt index 2b8dcbf655..97c55ba97c 100644 --- a/bioconda_utils/bioconda_utils-requirements.txt +++ b/bioconda_utils/bioconda_utils-requirements.txt @@ -11,6 +11,7 @@ conda=24.3.* conda-libmamba-solver=24.1.* conda-build=24.3.* conda-index=0.4.* +conda-package-streaming=0.9.* mamba=1.5.* boa=0.17.* diff --git a/bioconda_utils/pkg_test.py b/bioconda_utils/pkg_test.py index 950cede3b6..4db38acef9 100644 --- a/bioconda_utils/pkg_test.py +++ b/bioconda_utils/pkg_test.py @@ -14,6 +14,7 @@ from conda_build.metadata import MetaData from conda_index.index import update_index +from conda_package_streaming.package_streaming import stream_conda_info logger = logging.getLogger(__name__) @@ -23,8 +24,9 @@ def get_tests(path): "Extract tests from a built package" tmp = tempfile.mkdtemp() - t = tarfile.open(path) - t.extractall(tmp) + for tar, member in stream_conda_info(path): + if member.name.startswith("info/recipe/"): + tar.extract(member, tmp) input_dir = os.path.join(tmp, 'info', 'recipe') tests = [