From 6d4054e80cb8e4aed8fcf344aebb04a396944668eb33cad1b66b515d8113f434 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 30 Oct 2024 19:52:49 +0000 Subject: [PATCH] - update to 1.8.3: * Add support for any iterable type as input * fix: Use os.fsdecode() for arguments to shutil.move() - created package using py2pack OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Send2Trash?expand=0&rev=14 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + Send2Trash-1.8.2-gh.tar.gz | 3 ++ Send2Trash-1.8.3-gh.tar.gz | 3 ++ python-Send2Trash.changes | 92 ++++++++++++++++++++++++++++++++++++++ python-Send2Trash.spec | 80 +++++++++++++++++++++++++++++++++ 6 files changed, 202 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Send2Trash-1.8.2-gh.tar.gz create mode 100644 Send2Trash-1.8.3-gh.tar.gz create mode 100644 python-Send2Trash.changes create mode 100644 python-Send2Trash.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Send2Trash-1.8.2-gh.tar.gz b/Send2Trash-1.8.2-gh.tar.gz new file mode 100644 index 0000000..bc720fb --- /dev/null +++ b/Send2Trash-1.8.2-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0fc5e578a8f5c34455dd76e26909e73ea61250d796d23e36804999d4318cd5c2 +size 17074 diff --git a/Send2Trash-1.8.3-gh.tar.gz b/Send2Trash-1.8.3-gh.tar.gz new file mode 100644 index 0000000..83ac6fb --- /dev/null +++ b/Send2Trash-1.8.3-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:90bcdf2ed2a18b687040c0f58bfccd6ad2e1b7ec495a9903119dc3c47c615052 +size 17288 diff --git a/python-Send2Trash.changes b/python-Send2Trash.changes new file mode 100644 index 0000000..7b1b3e6 --- /dev/null +++ b/python-Send2Trash.changes @@ -0,0 +1,92 @@ +------------------------------------------------------------------- +Wed Oct 30 19:52:27 UTC 2024 - Dirk Müller + +- update to 1.8.3: + * Add support for any iterable type as input + * fix: Use os.fsdecode() for arguments to shutil.move() + +------------------------------------------------------------------- +Sat Aug 26 13:11:25 UTC 2023 - Ben Greiner + +- Update to 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 +- PEP517 +- Drop Python2 code + +------------------------------------------------------------------- +Thu Aug 3 17:41:08 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Tue Jan 4 13:28:21 UTC 2022 - Ben Greiner + +- Update to 1.8.0 + * Add compatibility with pathlib paths (#49) + * Fix thread compatibility of modern windows implementation (#59) + * Fix handling of UNC names in legacy windows implementation + (#57) +- Release Version 1.7.1 + * Fix handling of UNC names (#57) + * Changed conditional for when to try to use pyobjc version (#51) + * Add console_script entry point (#50) + * Increased python CI versions (#52, #54) + * Fix minor issue in setup.py (#53) + * Fix issue with windows tests importing modules on non-windows + (#55) + * 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 (#51) + * 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 (#42) + * Windows: Fix issue with SHFileOperation failing silently when + path is not found (#33) +- Drop python2.patch + +------------------------------------------------------------------- +Wed Mar 6 10:34:17 UTC 2019 - Tomáš Chvátal + +- Update to 1.5.0: + * More specific error when failing to create XDG fallback trash directory (#20) + * Windows: Workaround for long paths (#23) +- Add patch to test properly under python2: + * python2.patch + +------------------------------------------------------------------- +Wed Dec 19 00:27:32 UTC 2018 - Jan Engelhardt + +- Use noun phrase in summary. Wrap description at 70 cols. + +------------------------------------------------------------------- +Tue Dec 4 12:54:08 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Fri Oct 20 16:18:31 UTC 2017 - toddrme2178@gmail.com + +- Renamed to python-Send2Trash to follow openSUSE python package + naming guidelines +- Implement single-spec version +- Update to Version 1.4.1 + * Fix crash on Windows introduced in v1.4.0. Oops… (#14) +- Update to Version Version 1.4.0 + * Use bytes instead of str for internal path handling in plat_other. (#13) +- Update to Version Version 1.3.1 + * Throw WindowsError instead of OSError in plat_win. (#7) + * Fix TypeError on python 2 in plat_other. (#12) + +------------------------------------------------------------------- +Fri Sep 27 13:48:57 UTC 2013 - barendartchuk@suse.com + +- created package using py2pack + + diff --git a/python-Send2Trash.spec b/python-Send2Trash.spec new file mode 100644 index 0000000..cd88c0a --- /dev/null +++ b/python-Send2Trash.spec @@ -0,0 +1,80 @@ +# +# spec file for package python-Send2Trash +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-Send2Trash +Version: 1.8.3 +Release: 0 +Summary: Python library to send files to the Trash location +License: BSD-3-Clause +Group: Development/Languages/Python +URL: https://github.com/arsenetar/send2trash +Source: https://github.com/arsenetar/send2trash/archive/refs/tags/%{version}.tar.gz#/Send2Trash-%{version}-gh.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: typelib(GObject) +Requires: typelib(Gio) +Requires(post): update-alternatives +Requires(postun): update-alternatives +Provides: python-send2trash = %{version}-%{release} +BuildArch: noarch + +%python_subpackages + +%description +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 (and +ugly) SHFileOperation win32 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. + +%prep +%setup -q -n send2trash-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/send2trash +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +export LANG=en_US.UTF8 +%pytest + +%post +%python_install_alternative send2trash + +%postun +%python_uninstall_alternative send2trash + +%files %{python_files} +%license LICENSE +%doc CHANGES.rst README.rst +%python_alternative %{_bindir}/send2trash +%{python_sitelib}/send2trash +%{python_sitelib}/Send2Trash-%{version}.dist-info + +%changelog