mirror of
https://github.com/arsenetar/send2trash.git
synced 2024-12-21 10:59:03 +00:00
Add note about pyobjc to README, add extra option
This commit is contained in:
parent
d52b4f206c
commit
6612545110
10
README.rst
10
README.rst
@ -3,11 +3,11 @@ Send2Trash -- Send files to trash on all platforms
|
||||
==================================================
|
||||
|
||||
Send2Trash is a small package that sends files to the Trash (or Recycle Bin) *natively* and on
|
||||
*all platforms*. On OS X, it uses native ``FSMoveObjectToTrashSync`` Cocoa calls. On Windows, it
|
||||
uses native ``IFileOperation`` call if on Vista or newer and pywin32 is installed or falls back
|
||||
to ``SHFileOperation`` calls. On other platforms, if `PyGObject`_ and `GIO`_ are available, it
|
||||
will use this. Otherwise, it will fallback to its own implementation of the `trash specifications
|
||||
from freedesktop.org`_.
|
||||
*all platforms*. On OS X, it uses native ``FSMoveObjectToTrashSync`` Cocoa calls or can use pyobjc
|
||||
with NSFileManager. On Windows, it uses native ``IFileOperation`` call if on Vista or newer and
|
||||
pywin32 is installed or falls back to ``SHFileOperation`` calls. On other platforms, if `PyGObject`_
|
||||
and `GIO`_ are available, it will use this. Otherwise, it will fallback to its own implementation of
|
||||
the `trash specifications from freedesktop.org`_.
|
||||
|
||||
``ctypes`` is used to access native libraries, so no compilation is necessary.
|
||||
|
||||
|
2
setup.py
2
setup.py
@ -35,7 +35,7 @@ setup(
|
||||
description="Send file to trash natively under Mac OS X, Windows and Linux.",
|
||||
long_description=LONG_DESCRIPTION,
|
||||
classifiers=CLASSIFIERS,
|
||||
extras_require={"win32": ["pywin32"]},
|
||||
extras_require={"win32": ["pywin32"], "objc": ["pyobjc-framework-Cocoa"]},
|
||||
project_urls={"Bug Reports": "https://github.com/arsenetar/send2trash/issues"},
|
||||
entry_points={"console_scripts": ["send2trash=send2trash.__main__:main"]},
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user