From 23ae93fbf8435e2d7c4d1ae01a86ca2584e982aa Mon Sep 17 00:00:00 2001 From: Daniel Holth Date: Mon, 15 Jul 2024 11:03:00 -0400 Subject: [PATCH] Skip compressed repodata for internal index (#5231) --- conda_build/index.py | 2 ++ news/5205-repodata-json-only | 20 ++++++++++++++++++++ pyproject.toml | 2 +- recipe/meta.yaml | 2 +- tests/requirements.txt | 2 +- 5 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 news/5205-repodata-json-only diff --git a/conda_build/index.py b/conda_build/index.py index fc72a3fd0d..bcb9c6a9d0 100644 --- a/conda_build/index.py +++ b/conda_build/index.py @@ -176,4 +176,6 @@ def _delegated_update_index( warn=warn, current_index_versions=current_index_versions, debug=debug, + write_bz2=False, + write_zst=False, ) diff --git a/news/5205-repodata-json-only b/news/5205-repodata-json-only new file mode 100644 index 0000000000..222b9c9060 --- /dev/null +++ b/news/5205-repodata-json-only @@ -0,0 +1,20 @@ +### Enhancements + +* Skip generating `repodata.json.bz2` for local index; generate `repodata.json` + only; require `conda-package-handling >=2.2.0` matching conda. (#5205) + +### Bug fixes + +* + +### Deprecations + +* + +### Docs + +* + +### Other + +* diff --git a/pyproject.toml b/pyproject.toml index 2726b59495..12fe4731f6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,7 +27,7 @@ dependencies = [ "chardet", "conda >=23.7.0", "conda-index >=0.4.0", - "conda-package-handling >=1.3", + "conda-package-handling >=2.2.0", "filelock", "frozendict >=2.4.2", "jinja2", diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 33f8fe9125..b96d96a96e 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -32,7 +32,7 @@ requirements: - chardet - conda >=23.7.0 - conda-index >=0.4.0 - - conda-package-handling >=1.3 + - conda-package-handling >=2.2.0 - filelock - frozendict >=2.4.2 - jinja2 diff --git a/tests/requirements.txt b/tests/requirements.txt index acb3317206..d6e46d9cea 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -3,7 +3,7 @@ chardet conda >=23.7.0 conda-index >=0.4.0 conda-libmamba-solver # ensure we use libmamba -conda-package-handling >=1.3 +conda-package-handling >=2.2.0 filelock frozendict >=2.4.2 jinja2