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

Support python 3.11 and aiohttp 3.8 #224

Commits on Oct 19, 2022

  1. Remove remnants of aiohttp 2.x and Python 3.5 support

    Commit adfb650 removed support for aiohttp 2.x and Python
    3.5 but there are still some remnants of these left. We get rid of them.
    This also removes one `mypy` warning:
    
    > compat.py:31: error: All conditional function variants must have identical signatures [misc]
    marcinsulikowski committed Oct 19, 2022
    Configuration menu
    Copy the full SHA
    28159c7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cb2cd8f View commit details
    Browse the repository at this point in the history
  3. Remove aiohttp 2.x from tox.ini

    We no longer run tests against aiohttp 2.x so we don't need it in
    `tox.ini`.
    marcinsulikowski committed Oct 19, 2022
    Configuration menu
    Copy the full SHA
    f3b31b5 View commit details
    Browse the repository at this point in the history
  4. Add Python 3.10 support

    aioresponses works with Python 3.10 with no issues so we update the
    package metadata to say that, and we update the list of test
    environments to include Python 3.10.
    marcinsulikowski committed Oct 19, 2022
    Configuration menu
    Copy the full SHA
    ac868fb View commit details
    Browse the repository at this point in the history
  5. Add tests against aiohttp 3.8

    aioresponses works with aiohttp 3.8 so we extend the list of test
    environments to include this version.
    marcinsulikowski committed Oct 19, 2022
    Configuration menu
    Copy the full SHA
    5c326c1 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4d0eeb0 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f2277bd View commit details
    Browse the repository at this point in the history
  8. Drop Python 3.6 support

    We cannot run tests with Python 3.10 using Pytest 6.x due to [1]. This
    is fixed in Pytest 7.x but Pytest 7.x no longer supports Python 3.6
    which aioresponses tries to support. However because Python 3.6 is
    already past the EOL date, the simplest solution is to no longer test
    with Python 3.6 and to stop declaring support for that version.
    
    [1] pytest-dev/pytest#8546
    marcinsulikowski committed Oct 19, 2022
    Configuration menu
    Copy the full SHA
    38c8e1e View commit details
    Browse the repository at this point in the history
  9. Update Pytest to the latest version to fix tests on Python 3.10

    Our tests are filing on Python 3.10 due to [1] so we update Pytest in
    `requirements-dev.txt` to the latest version.
    
    [1] pytest-dev/pytest#8546
    marcinsulikowski committed Oct 19, 2022
    Configuration menu
    Copy the full SHA
    79efa91 View commit details
    Browse the repository at this point in the history
  10. Don't test with aiohttp 3.6 and older on Python 3.10

    aiohttp 3.6 and older use Python features which were removed in Python
    3.10:
    
                    assert port is not None
        >           hosts = await asyncio.shield(self._resolve_host(
                        host,
                        port,
                        traces=traces), loop=self._loop)
        E               TypeError: shield() got an unexpected keyword argument 'loop'
    
        .tox/py3.10-aiohttp35/lib/python3.10/site-packages/aiohttp/connector.py:952: TypeError
    
    To avoid test failures, we remove unsupported combinations from GitHub
    workflows.
    marcinsulikowski committed Oct 19, 2022
    Configuration menu
    Copy the full SHA
    e25db35 View commit details
    Browse the repository at this point in the history
  11. Drop support for aiohttp 3.2.x and older

    aiohttp 3.2.x and older don't work on Python 3.7 and because we now
    require Python 3.7+, we can drop support for aiohttp 3.0, 3.1, and 3.2.
    marcinsulikowski committed Oct 19, 2022
    Configuration menu
    Copy the full SHA
    d946dcb View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2023

  1. Merge remote-tracking branch 'pnuckowski/aioresponses/master' into su…

    …pport-python-3.10-and-aiohttp-3.8
    marcinsulikowski committed Feb 18, 2023
    Configuration menu
    Copy the full SHA
    b401e6c View commit details
    Browse the repository at this point in the history
  2. Add Python 3.11 support

    aioresponses works with Python 3.11 with no issues so we update the
    package metadata to say that, and we update the list of test
    environments to include Python 3.11. Python 3.11 is supported by aiohttp
    starting from its v3.8 ([1]), and we also need newer `yarl` ([2]).
    
    [1] aio-libs/aiohttp#6600
    [2] aio-libs/yarl#706
    marcinsulikowski committed Feb 18, 2023
    Configuration menu
    Copy the full SHA
    0f723fe View commit details
    Browse the repository at this point in the history