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

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

Closed
wants to merge 4 commits into 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 commented Aug 11, 2021

Ping @srittau?

@srittau
Copy link
Collaborator

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.

@JelleZijlstra JelleZijlstra added the status: deferred Issue or PR deferred until some precondition is fixed label Sep 19, 2021
@AlexWaygood AlexWaygood changed the title Change dependencies on types-cryptography, allow using upstream type hints paramiko: Change dependencies on types-cryptography, allow using upstream type hints May 7, 2022
@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@AlexWaygood
Copy link
Member

Fixed in #9459. Thanks @intgr, and sorry that this took so long!

@intgr
Copy link
Contributor Author

intgr commented Jan 11, 2023

Thanks! Better late than never 😆

@intgr intgr deleted the dont-require-types-cryptography branch October 1, 2023 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: deferred Issue or PR deferred until some precondition is fixed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants