-
Notifications
You must be signed in to change notification settings - Fork 71
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 py2 #248
Merged
Merged
Remove py2 #248
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The type bytes is available on all supported Pythons. On Python 2.7, it is an alias for str, same as six.binary_type. Likewise, io.BytesIO is available on all supported Pythons. It is always a stream implementation using an in-memory bytes buffer. Byte literals and Unicode literals are available on all supported Pythons. Makes the code more forward compatible with Python 3.
jamielennox
force-pushed
the
remove-py2
branch
2 times, most recently
from
January 21, 2024 15:42
83e1d30
to
76c2570
Compare
This was referenced Jan 21, 2024
Closed
jamielennox
force-pushed
the
remove-py2
branch
4 times, most recently
from
January 22, 2024 15:00
ecb646c
to
8932d9a
Compare
Github has dropped support for python2. Remove it from the unittesting and tox configuration.
Farewell, it's been a good run. Realistically this should have been removed years ago, but it's causing pain now. Remove six which handles the majority of the compatibility.
We shouldn't need this any more as we can rely on python3
This minimum version is somewhat arbitrary, however inline with the python3 changes there's no reason to keep compatibility with these old versions. I'm not sure why, but 2.20 has some issues with old python versions. This seems like a decent minimum.
This was a really old hack around forks in urllib3 in early versions of requests 2. With newer requests we don't need this any more.
Bundle all the python2 changes into a single release note.
Seems like something is wrong with python 3.12 and older versions of urllib.
jamielennox
force-pushed
the
remove-py2
branch
from
January 22, 2024 15:16
8932d9a
to
247f7eb
Compare
renovate bot
referenced
this pull request
in allenporter/pyrainbird
Mar 28, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [requests-mock](https://requests-mock.readthedocs.io/) ([source](https://github.com/jamielennox/requests-mock)) | `==1.11.0` -> `==1.12.0` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/requests-mock/1.12.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/requests-mock/1.12.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/requests-mock/1.11.0/1.12.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/requests-mock/1.11.0/1.12.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>jamielennox/requests-mock (requests-mock)</summary> ### [`v1.12.0`](https://github.com/jamielennox/requests-mock/releases/tag/1.12.0) [Compare Source](https://github.com/jamielennox/requests-mock/compare/1.11.0...1.12.0) #### What's Changed - Update copyright year by [@​KrishanBhasin](https://github.com/KrishanBhasin) in [https://github.com/jamielennox/requests-mock/pull/239](https://github.com/jamielennox/requests-mock/pull/239) - Remove py2 by [@​jamielennox](https://github.com/jamielennox) in [https://github.com/jamielennox/requests-mock/pull/248](https://github.com/jamielennox/requests-mock/pull/248) - Allow `raw` parameter to accept callable like body elements by [@​jamielennox](https://github.com/jamielennox) in [https://github.com/jamielennox/requests-mock/pull/249](https://github.com/jamielennox/requests-mock/pull/249) - Improve type definition of `Mocker.__call__` by [@​Viicos](https://github.com/Viicos) in [https://github.com/jamielennox/requests-mock/pull/244](https://github.com/jamielennox/requests-mock/pull/244) - Drop PBR Support by [@​jamielennox](https://github.com/jamielennox) in [https://github.com/jamielennox/requests-mock/pull/250](https://github.com/jamielennox/requests-mock/pull/250) - fix(mocker.pyi): fix Mocker class type hints by [@​pavellos21](https://github.com/pavellos21) in [https://github.com/jamielennox/requests-mock/pull/251](https://github.com/jamielennox/requests-mock/pull/251) - Remove unused `six` dependency by [@​Viicos](https://github.com/Viicos) in [https://github.com/jamielennox/requests-mock/pull/252](https://github.com/jamielennox/requests-mock/pull/252) #### New Contributors - [@​KrishanBhasin](https://github.com/KrishanBhasin) made their first contribution in [https://github.com/jamielennox/requests-mock/pull/239](https://github.com/jamielennox/requests-mock/pull/239) - [@​Viicos](https://github.com/Viicos) made their first contribution in [https://github.com/jamielennox/requests-mock/pull/244](https://github.com/jamielennox/requests-mock/pull/244) - [@​pavellos21](https://github.com/pavellos21) made their first contribution in [https://github.com/jamielennox/requests-mock/pull/251](https://github.com/jamielennox/requests-mock/pull/251) **Full Changelog**: jamielennox/requests-mock@1.11.0...1.12.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/allenporter/pyrainbird). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjkuMiIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Finally get rid of python2. Take the opportunity to do some cleanup on old compatibility things that are no longer necessary.