From 34ab134cc4138f4a8ef1df625b611d7212a932ad Mon Sep 17 00:00:00 2001 From: Ken Odegard Date: Wed, 11 Oct 2023 12:54:12 -0400 Subject: [PATCH] Deprecate `conda.models.dist.IndexRecord` (#5032) --- conda_build/conda_interface.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/conda_build/conda_interface.py b/conda_build/conda_interface.py index 25ecc9cef9..dba4e4b1a7 100644 --- a/conda_build/conda_interface.py +++ b/conda_build/conda_interface.py @@ -74,10 +74,19 @@ win_path_to_unix, ) from conda.models.channel import get_conda_build_local_url # noqa: F401 -from conda.models.dist import Dist, IndexRecord # noqa: F401 +from conda.models.dist import Dist # noqa: F401 +from conda.models.records import PackageRecord from .deprecations import deprecated +deprecated.constant( + "3.28.0", + "4.0.0", + "IndexRecord", + PackageRecord, + addendum="Use `conda.models.records.PackageRecord` instead.", +) + # TODO: Go to references of all properties below and import them from `context` instead binstar_upload = context.binstar_upload default_python = context.default_python