Skip to content

Commit

Permalink
Stop using conda_build.conda_interface
Browse files Browse the repository at this point in the history
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:
- conda/conda-build#5152
- conda/conda-build#5222

Signed-off-by: Marcel Bargull <[email protected]>
  • Loading branch information
mbargull committed Mar 16, 2024
1 parent 82f989d commit 51c0428
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions conda_forge_webservices/update_me.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 51c0428

Please sign in to comment.