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 for Python 3.12/3.13 #239

Open
Fares-Abubaker opened this issue Jan 26, 2025 · 1 comment
Open

Support for Python 3.12/3.13 #239

Fares-Abubaker opened this issue Jan 26, 2025 · 1 comment

Comments

@Fares-Abubaker
Copy link

Does the latest version of the package officially support Python 3.12/3.13?

@Fares-Abubaker
Copy link
Author

i tried to run the unit tests of the package on Python 3.12 and I got this error:

❯ pytest pusher_tests                                                                                                                          ─╯
============================================================== test session starts ===============================================================
platform darwin -- Python 3.12.8, pytest-8.3.4, pluggy-1.5.0
rootdir: /Users/faresabubaker/Documents/packages/pusher-http-python
collected 65 items / 2 errors                                                                                                                    

===================================================================== ERRORS =====================================================================
___________________________________________ ERROR collecting pusher_tests/aio/aiohttp_adapter_test.py ____________________________________________
ImportError while importing test module '/Users/faresabubaker/Documents/packages/pusher-http-python/pusher_tests/aio/aiohttp_adapter_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../.pyenv/versions/3.12.8/lib/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
pusher_tests/aio/aiohttp_adapter_test.py:3: in <module>
    import pusher
E   ModuleNotFoundError: No module named 'pusher'
_____________________________________________ ERROR collecting pusher_tests/test_aiohttp_adapter.py ______________________________________________
pusher_tests/test_aiohttp_adapter.py:4: in <module>
    from .aio.aiohttp_adapter_test import *
<frozen importlib._bootstrap>:1360: in _find_and_load
    ???
<frozen importlib._bootstrap>:1331: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:935: in _load_unlocked
    ???
venv/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:184: in exec_module
    exec(co, module.__dict__)
pusher_tests/aio/aiohttp_adapter_test.py:4: in <module>
    import pusher.aiohttp
pusher/aiohttp.py:15: in <module>
    class AsyncIOBackend:
pusher/aiohttp.py:24: in AsyncIOBackend
    @asyncio.coroutine
E   AttributeError: module 'asyncio' has no attribute 'coroutine'. Did you mean: 'coroutines'?
================================================================ warnings summary ================================================================
venv/lib/python3.12/site-packages/certifi/core.py:36
  /Users/faresabubaker/Documents/packages/pusher-http-python/venv/lib/python3.12/site-packages/certifi/core.py:36: DeprecationWarning: path is deprecated. Use files() instead. Refer to https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy for migration advice.
    _CACERT_CTX = get_path("certifi", "cacert.pem")

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
============================================================ short test summary info =============================================================
ERROR pusher_tests/aio/aiohttp_adapter_test.py
ERROR pusher_tests/test_aiohttp_adapter.py - AttributeError: module 'asyncio' has no attribute 'coroutine'. Did you mean: 'coroutines'?
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
========================================================== 1 warning, 2 errors in 2.59s ==========================================================

I used the latest versions of these packages:
yarl, aiohttp, frozenlist, multidict

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant