-
Notifications
You must be signed in to change notification settings - Fork 85
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
Support python 3.11 and aiohttp 3.8 #224
Merged
pnuckowski
merged 13 commits into
pnuckowski:master
from
marcinsulikowski:support-python-3.10-and-aiohttp-3.8
Jun 19, 2023
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
28159c7
Remove remnants of aiohttp 2.x and Python 3.5 support
marcinsulikowski cb2cd8f
Add type annotation for stream_reader_factory
marcinsulikowski f3b31b5
Remove aiohttp 2.x from tox.ini
marcinsulikowski ac868fb
Add Python 3.10 support
marcinsulikowski 5c326c1
Add tests against aiohttp 3.8
marcinsulikowski 4d0eeb0
Add Python 3.10 tests to GitHub workflows
marcinsulikowski f2277bd
Add tests against aiohttp 3.8 to GitHub workflows
marcinsulikowski 38c8e1e
Drop Python 3.6 support
marcinsulikowski 79efa91
Update Pytest to the latest version to fix tests on Python 3.10
marcinsulikowski e25db35
Don't test with aiohttp 3.6 and older on Python 3.10
marcinsulikowski d946dcb
Drop support for aiohttp 3.2.x and older
marcinsulikowski b401e6c
Merge remote-tracking branch 'pnuckowski/aioresponses/master' into su…
marcinsulikowski 0f723fe
Add Python 3.11 support
marcinsulikowski File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
aiohttp>=2.0.0,<4.0.0 | ||
aiohttp>=3.3.0,<4.0.0 |
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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The package throws the following warning when running locally
The official documentation suggests the use of importlib.resources, importlib.metadata as a replacement. More info here: https://setuptools.pypa.io/en/stable/pkg_resources.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All that's being used here is
parse_version
with literal version strings. I'd suggestpackaging.version.parse
instead of anything fromimportlib
.@pnuckowski Is anything else blocking this from being merged and released? I got bit by this today and the PR has been sitting for a long time now.
Failing that, does anyone know of a fork that includes Python 3.11 support?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@brettdh I'm wondering the same thing :-S
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can confirm that all unit tests pass in Python 3.11.4 after changing this line (and one other like it, in
tests/test_aioresponses.py
) to this:Using a private fork for now, but hoping that can get fixed, merged, and released soon.