Skip to content

Commit

Permalink
Emit a DeprecationWarning when downloading the docker client (#577)
Browse files Browse the repository at this point in the history
  • Loading branch information
LewisGaul committed Apr 10, 2024
1 parent a10959c commit 4e0c80c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions python_on_whales/download_binaries.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
__all__ = ("download_docker_cli", "get_docker_binary_path_in_cache")

import platform
import shutil
import tempfile
Expand Down Expand Up @@ -31,6 +33,13 @@ def get_docker_cli_url():


def download_docker_cli():
warnings.warn(
"Downloading the docker client with python-on-whales is being "
"deprecated, and this functionality will be removed in v1.0. "
"See https://github.com/gabrieldemarmiesse/python-on-whales/issues/556 "
"for planned v1.0 changes.",
DeprecationWarning,
)
file_to_download = get_docker_cli_url()

extension = file_to_download.split(".")[-1]
Expand Down

0 comments on commit 4e0c80c

Please sign in to comment.