1
0
mirror of https://github.com/arsenetar/send2trash.git synced 2024-11-15 03:59:02 +00:00
Commit Graph

161 Commits

Author SHA1 Message Date
1625d56345
Update version & changelog for 1.8.2 2023-04-27 00:22:55 -05:00
63e770d29e
Merge pull request #78 from arsenetar/as/fix-ci
fix(ci): Update to latest actions, fix python versions
2023-04-27 00:03:55 -05:00
bfd3e08661
fix(ci): Update to latest actions, fix python versions
- Update to latest actions
- Change OS for older python 3.6, 3.5 to run
2023-04-26 23:54:52 -05:00
490fe02245
Merge pull request #73 from sobolevn/patch-1
TravisCI is not used anymore
2023-04-26 23:54:24 -05:00
d6d904c774
Merge pull request #77 from BoboTiG/patch-1
win/legacy: tiny logic simplification
2023-04-26 23:36:39 -05:00
Mickaël Schoentgen
0a36688a4b
win/legacy: tiny logic simplification 2023-04-02 17:08:25 +02:00
Nikita Sobolev
955f8091da
TravisCI is not used anymore 2022-10-11 23:57:46 +03:00
0ef9b3294a
fix(tests): Correct windows tests to run on python <3.6 2022-07-26 22:51:16 -05:00
4b9bc4bc31
fix(win): Prevent exception on empty list
Add check for when an empty list remains after preprocessing and do
not continue for both legacy and modern windows implementations.

Fix #71
2022-07-26 22:42:30 -05:00
be402728fb
Update setup.cfg for changes in d37197c, fix #68. 2022-06-01 02:06:14 -05:00
448224954b
Replace relative imports with absolute 2022-06-01 00:22:46 -05:00
d37197c4f7
Move mac/win to subpackages & fix #64
- Move macOS and Windows implementations to sub packagese to improve organization
- Fix #64 in legacy windows implementation by mapping results to standard error codes
2022-04-30 19:52:09 -05:00
2a88b82104
Fix test_plat_other from previous change 2021-08-24 01:21:12 -05:00
18e51c0b5a
Minor cleanup in plat_other
- Add OSError code values
- Use INFO_SUFFIX constant in tests
- Remove old PathLike conversions
2021-08-24 01:00:02 -05:00
7686647389
Fix flake8 error 2021-08-21 16:04:05 -05:00
696aed558b
Change method for test symlink path generation 2021-08-21 16:00:50 -05:00
007d84361a
Fix items missed in test_plat_other in last commit 2021-08-21 15:22:59 -05:00
78a536abba
Minor code quality updates 2021-08-21 15:19:32 -05:00
2aa834be94
Update version & changelog for 1.8.1b0 2021-08-20 22:42:04 -05:00
5e4517aa53
Add fallback to HOMETRASH on plat_other
In the case where os.path.ismount() does not detect a mount and os.rename errors
fallback to HOMETRASH.  This covers several situations where continuing with
the identified trash location is incorrect due to complex mounts.

Close #26, #41, #63.
2021-08-20 22:30:51 -05:00
62849fba0b
Remove Python 3.4 2021-08-19 21:01:55 -05:00
74f2dff57b
Add exception handling to file cleanup
- Surpress errors caused by long file cleanup in older python environments
2021-08-19 20:46:02 -05:00
922fc0342a
Update tox config 2021-08-19 20:46:02 -05:00
1d1b8755a9
Create codeql-analysis.yml
Test out codeql
2021-08-18 02:26:10 -05:00
d0e4890a4d
Black format updates with correct line length 2021-08-17 18:58:11 -05:00
24079e245c
Update tox.ini, flake8 ignore fewer errors 2021-08-17 18:54:52 -05:00
24b38e4ffe
Update to use pyproject.toml & setup.cfg 2021-08-17 18:53:56 -05:00
69a82a5162
Dropping duplicate runs from travis CI
- Drop the duplicate runs from travis that github actions now cover.
- Add additional ppc64le entries for 3.7, 3.8, 3.9
2021-08-17 01:51:43 -05:00
2b3f9891c2
Temporarily comment out macOS due to failing tests 2021-08-17 01:40:06 -05:00
039f92264b
Dropping python 3.4 2021-08-17 01:37:18 -05:00
c2c47610c8
Fix steps in test 2021-08-17 01:32:40 -05:00
66fc79695e
Attempt to fix issues with matrix and versions 2021-08-17 01:29:37 -05:00
454ebeb072
Remove extra architecture stuff 2021-08-17 01:21:12 -05:00
7ca68e5473
First attempt at github actions setup 2021-08-17 01:18:26 -05:00
484913ba0f
Update version for 1.8.0 release 2021-08-08 21:51:06 -05:00
d249f0106b
Fix #59, initialize and uninitialize COM for threading 2021-08-07 22:16:33 -05:00
94e1ec007a
Add ability to handle pathlib paths
- Handle pathlib paths across all implementations, plat_other already did
- Move preprocessing code to common location
2021-08-07 21:48:10 -05:00
84c220cbd9
Change extra requires to filter on platform
Also created one extra `nativeLib` to replace the orignal two.  Will remove
the others after a couple releases.
2021-08-07 21:04:40 -05:00
6612545110
Add note about pyobjc to README, add extra option 2021-06-22 21:36:14 -05:00
d52b4f206c
Fix CHANGES.rst issue 2021-06-21 22:22:48 -05:00
33171dde82
Update version for 1.7.1 release 2021-06-21 22:13:46 -05:00
077598d2ce
Merge pull request #57 from BoboTiG/fix-windows-unc-names-legacy
Windows legacy: fix handling of UNC names
2021-06-21 22:06:06 -05:00
Mickaël Schoentgen
436686bf0f Windows legacy: fix handling of UNC names
The legacy implementation was not handling UNC names properly:

  Traceback (most recent call last):
    File "check.py", line 6, in <module>
      send2trash(str(file))
    File "\...\plat_win_legacy.py", line 79, in send2trash
      paths = [get_short_path_name(path) for path in paths]
    File "\...\plat_win_legacy.py", line 79, in <listcomp>
      paths = [get_short_path_name(path) for path in paths]
    File "\...\plat_win_legacy.py", line 62, in get_short_path_name
      raise WindowsError(err_no, FormatError(err_no), long_name[4:])
  OSError: [Errno 123] La syntaxe du nom de fichier, de répertoire ou de volume est incorrecte.: '\\\\SERVER\\folder\\file.txt'
2021-05-26 17:22:26 +02:00
23ce7b8c16
Bump version 2021-05-14 21:44:21 -05:00
9b0d5796c1
Change conditional for macos pyobjc usage
macOS 11.x will occasionally identify as 10.16, since there was no real
reason to prevent on all supported platforms allow.
2021-05-14 21:40:16 -05:00
c8bcaea1e8
Update version and changelog for release 2021-04-20 17:35:59 -05:00
530e9b4bc6
Add initial pyobjc version for macOS
This is to help with issue #51.  Will not help in the case of python 2 or
older python 3 version < 3.6.
2021-04-13 22:36:10 -05:00
10c7693d11
Minor fixes to tests 2021-03-17 21:51:51 -05:00
356509120b
Add some checks to catch test failure
Really just checking that the setup is able to create test files so it
is known they were there then removed.
Windows tests really need verification of
recycle, which is not present.
2021-03-17 20:52:16 -05:00
f9fcdb8d8c
Fix legacy windows platform for multibyte unicode
- Add handling to create correctly sized buffer even with multibyte
characters as len() in python does not line up with what
create_unicode_buffer() needs for length.
- Add test for single and multiple files
2021-03-10 21:41:30 -06:00