-
Notifications
You must be signed in to change notification settings - Fork 53
[Feature] Support Android as a posix platform #131
Copy link
Copy link
Closed
Description
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 yetAdding android to the check here was enough to fix it for me:
python-readchar/readchar/__init__.py
Line 14 in 753cb42
| if platform.startswith(("linux", "darwin", "freebsd", "openbsd")): |
Everything is working as expected AFAIK. I will try to run the test suite and report back
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels