From 12c7689a74f3faa126ebf4c14369a5c173661bd4 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Mon, 24 Jun 2019 00:23:19 +0300 Subject: [PATCH] dvc: update paramiko requirements Fixes #2155 No longer need to explicitly ignore paramiko warnings. Big thanks to @cowlinator for the heads-up! Signed-off-by: Ruslan Kuprieiev --- dvc/__init__.py | 15 --------------- setup.py | 2 +- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/dvc/__init__.py b/dvc/__init__.py index 2a60bc900..0e5788d7f 100644 --- a/dvc/__init__.py +++ b/dvc/__init__.py @@ -19,18 +19,3 @@ dvc.logger.setup() # we can simply ignore them so that they don't show up when you are using dvc. warnings.filterwarnings("ignore", message="numpy.dtype size changed") warnings.filterwarnings("ignore", message="numpy.ufunc size changed") - -# Ignore paramiko's warning: https://github.com/paramiko/paramiko/issues/1386. -# This only affects paramiko 2.4.2 and should be fixed in the next version. -# Cryptography developers decided that it is a brilliant idea not to inherit -# from DeprecationWarning [1] because it is invisible by default, and decided -# to spam everyone instead. So it is their fault and not paramiko's. -# -# [1] https://github.com/pyca/cryptography/blob/2.6.1/src/cryptography/ -# utils.py#L14 -try: - from cryptography.utils import CryptographyDeprecationWarning - - warnings.simplefilter("ignore", CryptographyDeprecationWarning) -except ImportError: - pass diff --git a/setup.py b/setup.py index 3d2d7a54c..7450e9423 100644 --- a/setup.py +++ b/setup.py @@ -71,7 +71,7 @@ gs = ["google-cloud-storage==1.13.0"] s3 = ["boto3==1.9.115"] azure = ["azure-storage-blob==2.0.1"] oss = ["oss2==2.6.1"] -ssh = ["paramiko>=2.4.1"] +ssh = ["paramiko>=2.5.0"] all_remotes = gs + s3 + azure + ssh + oss # Extra dependecies to run tests