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 support for Python 2 #474

Merged
merged 1 commit into from
Jun 22, 2022

Conversation

JohnVillalovos
Copy link
Contributor

@JohnVillalovos JohnVillalovos commented Jun 17, 2022

Python 2.7 (the last Python 2 release) was End-Of-Life on 1-Jan-2020.

Add requirement to setup.py for Python 3.4 or greater

  • Remove all usage of the six library
  • Remove declared support for Python 2
  • Update tox.ini to remove py27 environment
  • Update Github workflows to no longer test against Python 2.7
  • Remove from __future__ import print_function
  • Remove from __future__ unicode_literals
  • Update tests to import unittest and unittest.mock directly

Closes: #401

@JohnVillalovos JohnVillalovos force-pushed the jlvillal/remove_old_python branch 2 times, most recently from 85a7631 to 60a2463 Compare June 17, 2022 06:04
setup.py Show resolved Hide resolved
@NicolasLM
Copy link
Collaborator

I guess future imports should also be removed like from __future__ import unicode_literals.

@JohnVillalovos
Copy link
Contributor Author

I guess future imports should also be removed like from __future__ import unicode_literals.

Will do. Thanks. Should push an update soon.

@JohnVillalovos JohnVillalovos force-pushed the jlvillal/remove_old_python branch 4 times, most recently from 59d635e to 9c50200 Compare June 18, 2022 02:40
@mjs mjs mentioned this pull request Jun 20, 2022
5 tasks
Copy link
Owner

@mjs mjs left a comment

Choose a reason for hiding this comment

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

Amazing work. Thank you so much.

.github/workflows/main.yml Show resolved Hide resolved
README.rst Show resolved Hide resolved
@@ -102,13 +102,6 @@ When constructing a custom context it is usually best to start with
the default context, created by the ``ssl`` module, and modify it to
suit your needs.

.. warning::
Copy link
Owner

Choose a reason for hiding this comment

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

hooray!

doc/src/index.rst Show resolved Hide resolved
setup.py Show resolved Hide resolved
tox.ini Show resolved Hide resolved
Python 2.7 (the last Python 2 release) was End-Of-Life on 1-Jan-2020.

  * Add requirement to `setup.py` for python_requires=">=3.4.0"
  * Remove all usage of the `six` library
  * Remove declared support for Python 2
  * Update tox.ini to remove `py27` environment
  * Update Github workflows to no longer test against Python 2.7
  * Remove `from __future__ import print_function`
  * Remove `from __future__ unicode_literals`
  * Update tests to import `unittest` and `unittest.mock` directly

Closes: mjs#401
@JohnVillalovos
Copy link
Contributor Author

Amazing work. Thank you so much.

Thanks!

@NicolasLM
Copy link
Collaborator

All good, merged. Thanks!

@NicolasLM NicolasLM merged commit 8892ff1 into mjs:master Jun 22, 2022
@JohnVillalovos JohnVillalovos deleted the jlvillal/remove_old_python branch June 22, 2022 15:27
@mjs mjs added semver-major breaking Breaking change the requires a major version bump labels Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Breaking change the requires a major version bump
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Drop support for Python 2
3 participants