arsenetar / send2trash

Python library to natively send files to Trash (or Recycle bin) on all platforms.
BSD 3-Clause "New" or "Revised" License
280 stars 44 forks source link

Debian 12 get error: WARNING: Error parsing dependencies of send2trash #92

Open JohnVillalovos opened 2 months ago

JohnVillalovos commented 2 months ago
$ pip install ANY_PACKAGE
<snip>
WARNING: Error parsing dependencies of send2trash: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
    sys-platform (=="darwin") ; extra == 'objc'
                 ~^
$ cat /usr/lib/python3/dist-packages/Send2Trash-1.8.1b0.dist-info/METADATA | grep Requires
Requires-Python: !=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7
Requires-Dist: pyobjc-framework-Cocoa ; (sys_platform == "darwin") and extra == 'nativelib'
Requires-Dist: pywin32 ; (sys_platform == "win32") and extra == 'nativelib'
Requires-Dist: pyobjc-framework-Cocoa ; extra == 'objc'
Requires-Dist: sys-platform (=="darwin") ; extra == 'objc'
Requires-Dist: pywin32 ; extra == 'win32'
Requires-Dist: sys-platform (=="win32") ; extra == 'win32'

Unsure if this is problem caused by Debian packaging or an issue for this repository.

mjroth commented 1 week ago

I believe this is due to recent pip versions (>= 24.1?) which seems to have prohibited legacy version specifiers.

Discussion: https://github.com/pypa/pip/issues/12063.