Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change dependencies on types-cryptography, allow using upstream type hints #5847

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

@intgr
Copy link
Contributor

@intgr intgr commented Aug 5, 2021

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 #5618. 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 #5618 and #5768, I have replaced it with a dependency on types-paramiko -> cryptography and types-pyOpenSSL -> cryptography.

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`.
@intgr intgr changed the title Remove dependencies on types-cryptography, allow using upstream type hints Change dependencies on types-cryptography, allow using upstream type hints Aug 5, 2021
@intgr
Copy link
Contributor Author

@intgr intgr commented Aug 11, 2021

Ping @srittau?

Loading

@srittau
Copy link
Collaborator

@srittau srittau commented Aug 11, 2021

This needs a bit more infrastructure work in typeshed. Currently, our tests don't install the dependencies from METADATA.toml, meaning that the tests could fail due to changes in cryptography. I will try to work on this soon.

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants