Skip to content

Commit

Permalink
Fix deprecated.constant usage in conda_interface
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Bargull <[email protected]>
  • Loading branch information
mbargull committed Jan 26, 2024
1 parent ce836aa commit 155c156
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions conda_build/conda_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,15 @@
_toposort,
add_parser_channels,
add_parser_prefix,
display_actions,
download,
execute_actions,
execute_plan,
get_index,
handle_proxy_407,
hashsum_file,
human_bytes,
input,
install_actions,
lchmod,
linked,
linked_data,
md5_file,
memoized,
normalized_version,
package_cache,
prefix_placeholder,
rm_rf,
spec_from_line,
Expand All @@ -74,8 +66,16 @@
walk_prefix,
win_path_to_unix,
)
from conda.exports import display_actions as _display_actions
from conda.exports import execute_actions as _execute_actions
from conda.exports import execute_plan as _execute_plan
from conda.exports import get_index as _get_index
from conda.exports import install_actions as _install_actions
from conda.exports import linked as _linked
from conda.exports import linked_data as _linked_data
from conda.exports import package_cache as _package_cache
from conda.models.channel import get_conda_build_local_url # noqa: F401
from conda.models.dist import Dist
from conda.models.dist import Dist as _Dist
from conda.models.records import PackageRecord, PrefixRecord

from .deprecations import deprecated
Expand All @@ -87,14 +87,15 @@
PackageRecord,
addendum="Use `conda.models.records.PackageRecord` instead.",
)
deprecated.constant("24.1.0", "24.3.0", "Dist", Dist)
deprecated.constant("24.1.0", "24.3.0", "display_actions", display_actions)
deprecated.constant("24.1.0", "24.3.0", "execute_actions", execute_actions)
deprecated.constant("24.1.0", "24.3.0", "execute_plan", execute_plan)
deprecated.constant("24.1.0", "24.3.0", "get_index", get_index)
deprecated.constant("24.1.0", "24.3.0", "install_actions", install_actions)
deprecated.constant("24.1.0", "24.3.0", "linked", linked)
deprecated.constant("24.1.0", "24.3.0", "linked_data", linked_data)
deprecated.constant("24.1.0", "24.3.0", "Dist", _Dist)
deprecated.constant("24.1.0", "24.3.0", "display_actions", _display_actions)
deprecated.constant("24.1.0", "24.3.0", "execute_actions", _execute_actions)
deprecated.constant("24.1.0", "24.3.0", "execute_plan", _execute_plan)
deprecated.constant("24.1.0", "24.3.0", "get_index", _get_index)
deprecated.constant("24.1.0", "24.3.0", "install_actions", _install_actions)
deprecated.constant("24.1.0", "24.3.0", "linked", _linked)
deprecated.constant("24.1.0", "24.3.0", "linked_data", _linked_data)
deprecated.constant("24.1.0", "24.3.0", "package_cache", _package_cache)

# TODO: Go to references of all properties below and import them from `context` instead
binstar_upload = context.binstar_upload
Expand Down

0 comments on commit 155c156

Please sign in to comment.