From 882d849c2acd94b25054b046b5db79be0efd304a Mon Sep 17 00:00:00 2001 From: Marti Raudsepp Date: Thu, 5 Aug 2021 16:19:25 +0300 Subject: [PATCH] Change dependencies on types-cryptography, upstream includes type hints Since version 3.4, the cryptography library itself ships with type hints: https://cryptography.io/en/latest/changelog/#v3-4 This is the first step for removing types-cryptography. Currently, if I use `types-paramiko` and `cryptography`, it forces me to use `types-cryptography` as well. It should be up to the end-user to decide if they want upstream hints or from typeshed. As discussed in the removal issue, I have added a dependency on `types-paramiko` -> `cryptography` and `types-pyOpenSSL` -> `cryptography`. --- stubs/paramiko/METADATA.toml | 2 +- stubs/pyOpenSSL/METADATA.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stubs/paramiko/METADATA.toml b/stubs/paramiko/METADATA.toml index a96fdbca67ee..86258e02954f 100644 --- a/stubs/paramiko/METADATA.toml +++ b/stubs/paramiko/METADATA.toml @@ -1,3 +1,3 @@ version = "0.1" python2 = true -requires = ["types-cryptography"] +requires = ["cryptography"] diff --git a/stubs/pyOpenSSL/METADATA.toml b/stubs/pyOpenSSL/METADATA.toml index 098d93d36d4a..c9fb61f401cb 100644 --- a/stubs/pyOpenSSL/METADATA.toml +++ b/stubs/pyOpenSSL/METADATA.toml @@ -1,3 +1,3 @@ version = "20.0" python2 = true -requires = ["types-cryptography"] +requires = ["cryptography"]