Skip to content

[Feature] Support Android as a posix platform #131

Description

@NTFSvolume

On Python 3.13+, sys.platform reports android as a valid platform instead of just linux

Installing a package on Termux that uses readchar throws the following exception on startup:

File "/data/data/com.termux/files/home/.local/share/uv/tools/cyberdrop-dl-patched/lib/python3.13/site-packages/inquirer/events.py", line 1, in <module>
    import readchar
  File "/data/data/com.termux/files/home/.local/share/uv/tools/cyberdrop-dl-patched/lib/python3.13/site-packages/readchar/__init__.py", line 21, in <module>
    raise NotImplementedError(f"The platform {platform} is not supported yet")
NotImplementedError: The platform android is not supported yet

Adding android to the check here was enough to fix it for me:

if platform.startswith(("linux", "darwin", "freebsd", "openbsd")):

Everything is working as expected AFAIK. I will try to run the test suite and report back

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions