From 51c0428aa2b200b4133c04a69a788d776e2261c8 Mon Sep 17 00:00:00 2001 From: Marcel Bargull Date: Sat, 16 Mar 2024 17:46:56 +0100 Subject: [PATCH] Stop using conda_build.conda_interface conda_build.conda_interface is being deprecated. conda_build.conda_interface.get_index (which is conda.exports.get_index) is using the conda.models.Dist -> conda.models.records.PackageRecord mapping. Dist class is legacy code that's being phased out, so avoid it. refs: - https://github.com/conda/conda-build/pull/5152 - https://github.com/conda/conda-build/pull/5222 Signed-off-by: Marcel Bargull --- conda_forge_webservices/update_me.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/conda_forge_webservices/update_me.py b/conda_forge_webservices/update_me.py index ffa6b3315..cab84e1bd 100644 --- a/conda_forge_webservices/update_me.py +++ b/conda_forge_webservices/update_me.py @@ -40,8 +40,10 @@ def main(): """ # keep these imports here to protect the webservice from memory errors # due to conda - from conda_build.conda_interface import ( - VersionOrder, MatchSpec, get_index, Resolve) + from conda.core.index import get_index + from conda.models.match_spec import MatchSpec + from conda.models.version import VersionOrder + from conda.resolve import Resolve r = requests.get( "https://conda-forge.herokuapp.com/conda-webservice-update/versions")