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

Add compatibility for Python 3.13 #473

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Commits on Sep 6, 2024

  1. Fix tox for Python >= 3.12

    Fix import error:
    ```
    py312-cov: commands[2]> pytest --cov --cov-report=xml --cov-report=html --cov-report=term --tb=short
    ImportError while loading conftest '/home/rominf/dev/aiosmtpd/aiosmtpd/tests/conftest.py'.
    aiosmtpd/tests/conftest.py:15: in <module>
        from pkg_resources import resource_filename
    E   ModuleNotFoundError: No module named 'pkg_resources'
    ```
    by migrating to `importlib.resources`:
    https://importlib-resources.readthedocs.io/en/latest/migration.html#pkg-resources-resource-filename
    rominf committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    aa8706e View commit details
    Browse the repository at this point in the history
  2. Remove pytest-profiling

    Remove [pytest-profiling](https://pypi.org/project/pytest-profiling/),
    as it does not support latest Python versions, was not updated for 5
    years, and according to the comment in `aiosmtpd/docs/testing.rst` was
    not very useful anyway.
    rominf committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    e4e3235 View commit details
    Browse the repository at this point in the history
  3. Remove pytest-asyncio traces

    `pytest-asyncio` is unnecessary, it was missing in `tox.ini`, and tests
    pass.
    rominf committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    31c81a2 View commit details
    Browse the repository at this point in the history
  4. Add compatibility for Python 3.13

    Closes aio-libs#403.
    rominf committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    83e2701 View commit details
    Browse the repository at this point in the history