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

crypto: delete stubs #4606

Merged
merged 1 commit into from
Oct 4, 2020
Merged

crypto: delete stubs #4606

merged 1 commit into from
Oct 4, 2020

Conversation

hauntsaninja
Copy link
Collaborator

@hauntsaninja hauntsaninja commented Oct 4, 2020

Crypto is a package that comes from pycrypto, which was last updated in
2013. It proudly supports Python 2.1 through 3.3.
There's a near drop-in replacement from pycryptodome, which seems well
maintained. pycryptodome has provided stubs for the last two years.

I propose we get rid of the whole thing. pycrypto seems about as dead as
software can get. These stubs have received two fixes since 2016.

I've opened this PR for concreteness, but I anticipate that there might
be more discussion to be had :-)

Pros:

  • 55 fewer files in typeshed
  • Potentially less user confusion, if they don't realise pycryptodome
    provides stubs. Typeshed has even received a bug report from
    someone who couldn't install pycrypto: add PyCrypto for python 3.6 #1683
  • Come federated typeshed, it's probably good if pycryptodome users
    don't install whatever stubs we package
  • To the extent that it gets people to use a maintained cryptography
    library, probably a good thing

Cons:

  • Removing would hurt current pycrypto users (who are actively
    developing their well typed codebases utilising modern
    cryptography libraries)
  • Keeping this around doesn't really hurt anyone

#2952
https://pycryptodome.readthedocs.io/en/latest/src/vs_pycrypto.html
https://github.com/Legrandin/pycryptodome/blob/master/Changelog.rst#371-25-november-2018

Crypto is a package that comes from pycrypto, which was last updated in
2013. It proudly supports Python 2.1 through 3.3.
There's a near drop-in replacement from pycryptodome, which seems well
maintained. pycryptodome has provided stubs for the last two years.

I propose we get rid of the whole thing. pycrypto seems about as dead as
software can get. These stubs have received two fixes since 2016.

python#2952
https://pycryptodome.readthedocs.io/en/latest/src/vs_pycrypto.html
https://github.com/Legrandin/pycryptodome/blob/master/Changelog.rst#371-25-november-2018
Copy link
Collaborator

@srittau srittau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to keep it around. Obsolete libraries like this are still a maintenance burden for us.

@srittau srittau mentioned this pull request Oct 4, 2020
@hauntsaninja hauntsaninja merged commit cca6e53 into python:master Oct 4, 2020
@hauntsaninja hauntsaninja deleted the crypt branch October 4, 2020 20:05
JelleZijlstra added a commit to python/mypy that referenced this pull request Jun 8, 2021
It doesn't exist, since it was removed from typeshed in October (python/typeshed#4606). Similarly, pynamodb was removed in January.

I haven't tracked down what happened to pyre-extensions in typeshed, but https://pypi.org/project/types-pyre-extensions/ doesn't exist and in any case mypy users presumably don't need it.
JukkaL pushed a commit to python/mypy that referenced this pull request Jun 9, 2021
It doesn't exist, since it was removed from typeshed in October (python/typeshed#4606). Similarly, pynamodb was removed in January.

I haven't tracked down what happened to pyre-extensions in typeshed, but https://pypi.org/project/types-pyre-extensions/ doesn't exist and in any case mypy users presumably don't need it.
JukkaL pushed a commit to python/mypy that referenced this pull request Jun 10, 2021
It doesn't exist, since it was removed from typeshed in October (python/typeshed#4606). Similarly, pynamodb was removed in January.

I haven't tracked down what happened to pyre-extensions in typeshed, but https://pypi.org/project/types-pyre-extensions/ doesn't exist and in any case mypy users presumably don't need it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants