mirror of
https://github.com/arsenetar/send2trash.git
synced 2024-12-21 10:59:03 +00:00
v1.3.0
This commit is contained in:
parent
baf125ff61
commit
a568370c6a
@ -1,6 +1,12 @@
|
|||||||
Changes
|
Changes
|
||||||
=======
|
=======
|
||||||
|
|
||||||
|
Version 1.3.0 -- 2013/07/19
|
||||||
|
---------------------------
|
||||||
|
|
||||||
|
* Added support for Gnome's GIO.
|
||||||
|
* Merged Python 3 and Python 2 vesion in a single codebase.
|
||||||
|
|
||||||
Version 1.2.0 -- 2011/03/16
|
Version 1.2.0 -- 2011/03/16
|
||||||
---------------------------
|
---------------------------
|
||||||
|
|
||||||
|
@ -4,8 +4,9 @@ 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
|
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
|
*all platforms*. On OS X, it uses native ``FSMoveObjectToTrashSync`` Cocoa calls, on Windows, it
|
||||||
uses native (and ugly) ``SHFileOperation`` win32 calls. On other platforms, it follows the trash
|
uses native (and ugly) ``SHFileOperation`` win32 calls. On other platforms, if `PyGObject`_ and
|
||||||
specifications from freedesktop.org.
|
`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.
|
``ctypes`` is used to access native libraries, so no compilation is necessary.
|
||||||
|
|
||||||
@ -29,3 +30,7 @@ Usage
|
|||||||
>>> send2trash('some_file')
|
>>> send2trash('some_file')
|
||||||
|
|
||||||
When there's a problem ``OSError`` is raised.
|
When there's a problem ``OSError`` is raised.
|
||||||
|
|
||||||
|
.. _PyGObject: https://wiki.gnome.org/PyGObject
|
||||||
|
.. _GIO: https://developer.gnome.org/gio/
|
||||||
|
.. _trash specifications from freedesktop.org: http://freedesktop.org/wiki/Specifications/trash-spec/
|
||||||
|
3
setup.py
3
setup.py
@ -19,7 +19,7 @@ LONG_DESCRIPTION = open('README.rst', 'rt').read() + '\n\n' + open('CHANGES.rst'
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='Send2Trash',
|
name='Send2Trash',
|
||||||
version='1.2.0',
|
version='1.3.0',
|
||||||
author='Hardcoded Software',
|
author='Hardcoded Software',
|
||||||
author_email='hsoft@hardcoded.net',
|
author_email='hsoft@hardcoded.net',
|
||||||
packages=['send2trash'],
|
packages=['send2trash'],
|
||||||
@ -29,5 +29,4 @@ setup(
|
|||||||
description='Send file to trash natively under Mac OS X, Windows and Linux.',
|
description='Send file to trash natively under Mac OS X, Windows and Linux.',
|
||||||
long_description=LONG_DESCRIPTION,
|
long_description=LONG_DESCRIPTION,
|
||||||
classifiers=CLASSIFIERS,
|
classifiers=CLASSIFIERS,
|
||||||
zip_safe=False,
|
|
||||||
)
|
)
|
Loading…
Reference in New Issue
Block a user