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

Remove Python 2 support from some third-party distributions #7466

Merged
merged 4 commits into from
Mar 9, 2022

Conversation

srittau
Copy link
Collaborator

@srittau srittau commented Mar 9, 2022

  • Remove all Python 2 only third-party distributions.
  • Remove Python 2 support from six as the Python 2 stubs diverged from
    the Python 3 stubs.
  • Recursively remove Python 2 support from all distributions that depend
    on the distributions above.

Affects:

  • boto
  • cryptography
  • enum34 (removed)
  • ipaddress (removed)
  • paramiko
  • pysftp
  • pyvmomi
  • six

Part of #7367

* Remove all Python 2 only third-party distributions.
* Remove Python 2 support from six as the Python 2 stubs diverged from
  the Python 3 stubs.
* Recursively remove Python 2 support from all distributions that depend
  on the distributions above.

Affects:

* boto
* cryptography
* enum34 (removed)
* ipaddress (removed)
* paramiko
* pysftp
* pyvmomi
* six

Part of python#7367
f"as all classes implicitly inherit from `object` in Python 3"
)
# Temporarily disable this check for two ex-Python 2 stubs.
if "paramiko" not in str(path) and "cryptography" not in str(path):
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'll send a separate PR once this is merged to fix those problems and re-enable this check.

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
@Akuli
Copy link
Collaborator

Akuli commented Mar 9, 2022

These stubs are now Python 3 only, and can potentially be cleaned up:

  • boto
  • cryptography
  • paramiko
  • pysftp
  • pyvmomi
  • six

@Akuli Akuli merged commit c3907ab into python:master Mar 9, 2022
@srittau srittau deleted the rm-py2-support branch March 9, 2022 18:21
@srittau
Copy link
Collaborator Author

srittau commented Mar 9, 2022

six already had separate Python 3 stubs, so I think it's already more or less clean.

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.

None yet

3 participants