Skip to content

Commit

Permalink
Update news
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodegard committed Apr 15, 2024
1 parent 5af65f2 commit ea171c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions conda_build/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1408,7 +1408,7 @@ def get_installed_packages(path):
return installed


@deprecated("24.5", "24.7", addendum="Use `frozendict` instead.")
@deprecated("24.5", "24.7", addendum="Use `frozendict.deepfreeze` instead.")
def _convert_lists_to_sets(_dict):
for k, v in _dict.items():
if hasattr(v, "keys"):
Expand All @@ -1421,7 +1421,7 @@ def _convert_lists_to_sets(_dict):
return _dict


@deprecated("24.5", "24.7", addendum="Use `frozendict` instead.")
@deprecated("24.5", "24.7", addendum="Use `frozendict.deepfreeze` instead.")
class HashableDict(dict):
"""use hashable frozen dictionaries for resources and resource types so that they can be in sets"""

Expand All @@ -1433,7 +1433,7 @@ def __hash__(self):
return hash(json.dumps(self, sort_keys=True))


@deprecated("24.5", "24.7", addendum="Use `frozendict` instead.")
@deprecated("24.5", "24.7", addendum="Use `frozendict.deepfreeze` instead.")
def represent_hashabledict(dumper, data):
value = []

Expand Down
6 changes: 3 additions & 3 deletions news/5284-deprecate-HashableDict
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

### Deprecations

* Deprecate `conda_build.utils.HashableDict`. Use `frozendict` instead. (#5284)
* Deprecate `conda_build.utils._convert_lists_to_sets`. Use `frozendict` instead. (#5284)
* Deprecate `conda_build.utils.represent_hashabledict`. Use `frozendict` instead. (#5284)
* Deprecate `conda_build.utils.HashableDict`. Use `frozendict.deepfreeze` instead. (#5284)
* Deprecate `conda_build.utils._convert_lists_to_sets`. Use `frozendict.deepfreeze` instead. (#5284)
* Deprecate `conda_build.utils.represent_hashabledict`. Use `frozendict.deepfreeze` instead. (#5284)

### Docs

Expand Down

0 comments on commit ea171c0

Please sign in to comment.