Skip to content

Anyio seems to still be a concrete dependency but is not in core requirements #44

@ascopes

Description

@ascopes

Hello, thanks for the awesome fork!

Just come across an issue that appears to be related to the anyio migration.

I can see that as part of pyproject.toml, there is no hard dependency on anyio here anymore:

dependencies = [
"colorama; platform_system == 'Windows'",
]

Unfortunately, it seems we are still importing this:

from inspect import iscoroutine
import anyio
from ._compat import isatty

As a result, I can see the following issues during import:

Traceback (most recent call last):
  File "/home/me/.pyenv/versions/3.12.11/lib/python3.12/site-packages/myapp/cli/mycommand.py", line 6, in <module>
    import asyncclick
  File "/home/me/.pyenv/versions/3.12.11/lib/python3.12/site-packages/asyncclick/__init__.py", line 10, in <module>
    from .core import Argument as Argument
  File "/home/me/.pyenv/versions/3.12.11/lib/python3.12/site-packages/asyncclick/core.py", line 39, in <module>
    from .termui import confirm
  File "/home/me/.pyenv/versions/3.12.11/lib/python3.12/site-packages/asyncclick/termui.py", line 13, in <module>
    import anyio
ModuleNotFoundError: No module named 'anyio'

Environment:

  • Python version: 3.12.11
  • AsyncClick version: asyncclick-8.3.0.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions