deps: add send2trash

Deletes are about to become recoverable, and send2trash is what every desktop
already understands: the freedesktop trash specification on Linux (its own
implementation unless PyGObject/GIO is there), the Finder trash on macOS and the
Recycle Bin on Windows. It is pure Python over ctypes — no compilation, no
runtime dependencies — so it can sit on the default install instead of behind an
extra.

A required dependency rather than an optional one on purpose: a missing extra
would silently turn "recoverable" into "gone", and a safety net that disappears
without a word is worse than no safety net.
This commit is contained in:
2026-10-21 20:15:41 +08:00
parent f3bd511251
commit 290f3daf60
2 changed files with 14 additions and 2 deletions
+2 -1
View File
@@ -16,7 +16,8 @@ dependencies = [
"click>=8.4.2",
"awaitlet>=0.0.1",
"pywinpty>=2.0.0; sys_platform == \"win32\"",
"rich>=13"
"rich>=13",
"send2trash>=2.1.0"
]
requires-python = ">=3.14,<4"
readme = "README.md"