|
34 | 34 |
|
35 | 35 | from . import environ, exceptions, source, utils |
36 | 36 | from .config import CondaPkgFormat |
37 | | -from .deprecations import deprecated |
38 | 37 | from .exceptions import CondaBuildUserError, DependencyNeedsBuildingError |
39 | 38 | from .index import get_build_index |
40 | 39 | from .metadata import MetaData, MetaDataTuple, combine_top_level_metadata_with_output |
@@ -1152,27 +1151,6 @@ def render_metadata_tuples( |
1152 | 1151 | ] |
1153 | 1152 |
|
1154 | 1153 |
|
1155 | | -# Next bit of stuff is to support YAML output in the order we expect. |
1156 | | -# http://stackoverflow.com/a/17310199/1170370 |
1157 | | -@deprecated("25.5", "25.7") |
1158 | | -class _MetaYaml(dict): |
1159 | | - fields = FIELDS |
1160 | | - |
1161 | | - def to_omap(self): |
1162 | | - return [(field, self[field]) for field in _MetaYaml.fields if field in self] |
1163 | | - |
1164 | | - |
1165 | | -@deprecated("25.5", "25.7") |
1166 | | -def _represent_omap(dumper, data): |
1167 | | - return dumper.represent_mapping("tag:yaml.org,2002:map", data.to_omap()) |
1168 | | - |
1169 | | - |
1170 | | -@deprecated("25.5", "25.7") |
1171 | | -def _unicode_representer(dumper, uni): |
1172 | | - node = yaml.ScalarNode(tag="tag:yaml.org,2002:str", value=uni) |
1173 | | - return node |
1174 | | - |
1175 | | - |
1176 | 1154 | class CustomDumper(yaml.Dumper): |
1177 | 1155 | def increase_indent(self, flow: bool = False, indentless: bool = False) -> None: |
1178 | 1156 | """Control indentation. |
@@ -1226,15 +1204,6 @@ def ignore_aliases(self, data: Any) -> bool: |
1226 | 1204 | return True |
1227 | 1205 |
|
1228 | 1206 |
|
1229 | | -deprecated.constant( |
1230 | | - "25.5", |
1231 | | - "25.7", |
1232 | | - "_IndentDumper", |
1233 | | - CustomDumper, |
1234 | | - addendum="Use `conda_build.render.CustomDumper` instead.", |
1235 | | -) |
1236 | | - |
1237 | | - |
1238 | 1207 | def output_yaml( |
1239 | 1208 | metadata: MetaData, |
1240 | 1209 | filename: str | os.PathLike | Path | None = None, |
|
0 commit comments