11 Commits

Author SHA1 Message Date
Liu Yiding
8e94c3a2a8
python3-send2trash: upgrade 2.0.0 -> 2.1.0
1.Changelog
  https://github.com/arsenetar/send2trash/releases/tag/2.1.0

2.Remove 0001-add-missing-conftest.py.patch as it was merged upstream.

Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2026-03-02 19:26:00 -08:00
Gyorgy Sarvari
9291faa919
python3-send2trash: add ptest support
The tests take less than a second to execute.

The current source distribution is missing a test file,
which I added with a patch. The problem is already solved
by upstream just not tagged yet - the patch can be dropped
with the next update.

Sample output:
root@qemux86-64:~# ptest-runner
START: ptest-runner
2026-01-09T17:11
BEGIN: /usr/lib/python3-send2trash/ptest
SKIP: tests/test_plat_win.py:tests/test_plat_win.py # SKIP Skipping windows-only tests
PASS: tests/test_plat_other.py:test_trash
PASS: tests/test_plat_other.py:test_multitrash
PASS: tests/test_plat_other.py:test_trash_bytes
PASS: tests/test_plat_other.py:test_trash_unicode
PASS: tests/test_plat_other.py:test_trash_topdir
PASS: tests/test_plat_other.py:test_trash_topdir_fallback
PASS: tests/test_plat_other.py:test_trash_topdir_failure
PASS: tests/test_plat_other.py:test_trash_symlink
PASS: tests/test_script_main.py:test_trash
PASS: tests/test_script_main.py:test_no_args
============================================================================
Testsuite summary
DURATION: 1
END: /usr/lib/python3-send2trash/ptest
2026-01-09T17:11
STOP: ptest-runner
TOTAL: 1 FAIL: 0

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2026-01-12 08:53:49 -08:00
Leon Anavi
05103ac2c1
python3-send2trash: Upgrade 1.8.3 -> 2.0.0
Upgrade to release 2.0.0:

- Drop suport for Python 2
- Fix test_trash_topdir failing on macOS
- Update source installation instructions
- Update gio implementation, don't use deprecated GObject.GError

License-Update: The license remains the same

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2026-01-05 18:16:18 -08:00
Derek Straka
c089690f57
python3-*: Update recipes to correctly check the upstream packages
With the upstream check migrated to the simple repo API, a number of the
recipes required updates to:
1. Remove outdated UPSTREAM_CHECK_REGEX checks
2. Add recipe specific UPSTREAM_CHECK_PYPI_PACKAGE definitions for
   packages that use '_', CamelCase, or other deviations from PEP625 in
   the source archive

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-12-19 09:41:21 -08:00
Wang Mingyu
33cd26f803
python3-send2trash: upgrade 1.8.2 -> 1.8.3
Changelog:
==========
-Add support for any iterable type as input
-fix: Use os.fsdecode() for arguments to shutil.move()

License-Update:
 file type of LICENSE changed to ASCII text

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-04-17 23:47:27 -07:00
Trevor Gamblin
2b488648de python3-send2trash: upgrade 1.8.0 -> 1.8.2
- Update build backend since they use a pyproject.toml file now.
- Add python3-io to RDEPENDS so that the module can be imported.

Changelog (https://github.com/arsenetar/send2trash/releases):

1.8.2

- Add fallback to HOMETRASH when cross device errors happen in plat_other (#26, #41, #63)
- win/legacy: tiny logic simplification by @BoboTiG in #77
- TravisCI is not used anymore by @sobolevn in #73
- fix(ci): Update to latest actions, fix python versions by @arsenetar in #78

1.8.1b0

- Add fallback to HOMETRASH when cross device errors happen in plat_other (#26, #41, #63)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-07-25 08:43:53 -07:00
Bartosz Golaszewski
e7430b5874 python3-send2trash: add missing run-time dependencies
Add missing RDEPENDS for this package.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-06-06 23:07:58 -07:00
Armin Kuster
0f65032120 python3-send2trash: set precise BSD license
"BSD" is ambiguous, use the precise licenses BSD-3-Clause

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
2021-09-20 08:43:37 -07:00
Leon Anavi
29221c1274 python3-send2trash: Upgrade 1.7.1 -> 1.8.0
Upgrade to release 1.8.0:

- Add compatibility with pathlib paths
- Fix thread compatibility of modern windows implementation
- Fix handling of UNC names in legacy windows implementation

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
2021-08-16 08:21:14 -07:00
Leon Anavi
226532a55c python3-send2trash: Upgrade 1.5.0 -> 1.7.1
Upgrade to release 1.7.1:

- Changed conditional for when to try to use pyobjc version
- Add console_script entry point
- Increased python CI versions
- Fix minor issue in setup.py
- Fix issue with windows tests importing modules on non-windows
- Unit test cleanups, rewrites, and flake8 cleanups
- Windows: Fix legacy windows platform for multi-byte unicode and
  add tests
- macOS: Add alternative pyobjc version to potentially improve
  compatibility
- Add main method which allows calling via python -m send2trash
  somefile
- Windows: Add support for using IFileOperation when pywin32 is
  present on Vista and newer
- Add support for passing multiple files at once in a list
- Windows: Batch multi-file calls to improve performance
- Windows: Fix issue with SHFileOperation failing silently when
  path is not found

License-Update: License remains BSD-3-Clause License

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
2021-06-24 12:54:18 -07:00
Andreas Müller
b654ca9c93 python3-send2trash_ initial add 1.5.0
Currently it lives in:

* meta-jupyter
* meta-microcontroller

Seems important so add it to meta-python

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Acked-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-01-27 10:21:14 -08:00