Andrew Senetar
24079e245c
Update tox.ini, flake8 ignore fewer errors
2 years ago
Andrew Senetar
24b38e4ffe
Update to use pyproject.toml & setup.cfg
2 years ago
Andrew Senetar
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
2 years ago
Andrew Senetar
2b3f9891c2
Temporarily comment out macOS due to failing tests
2 years ago
Andrew Senetar
039f92264b
Dropping python 3.4
2 years ago
Andrew Senetar
c2c47610c8
Fix steps in test
2 years ago
Andrew Senetar
66fc79695e
Attempt to fix issues with matrix and versions
2 years ago
Andrew Senetar
454ebeb072
Remove extra architecture stuff
2 years ago
Andrew Senetar
7ca68e5473
First attempt at github actions setup
2 years ago
Andrew Senetar
484913ba0f
Update version for 1.8.0 release
2 years ago
Andrew Senetar
d249f0106b
Fix #59 , initialize and uninitialize COM for threading
2 years ago
Andrew Senetar
94e1ec007a
Add ability to handle pathlib paths
...
- Handle pathlib paths across all implementations, plat_other already did
- Move preprocessing code to common location
2 years ago
Andrew Senetar
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.
2 years ago
Andrew Senetar
6612545110
Add note about pyobjc to README, add extra option
2 years ago
Andrew Senetar
d52b4f206c
Fix CHANGES.rst issue
2 years ago
Andrew Senetar
33171dde82
Update version for 1.7.1 release
2 years ago
Andrew Senetar
077598d2ce
Merge pull request #57 from BoboTiG/fix-windows-unc-names-legacy
...
Windows legacy: fix handling of UNC names
2 years ago
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'
3 years ago
Andrew Senetar
23ce7b8c16
Bump version
3 years ago
Andrew Senetar
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.
3 years ago
Andrew Senetar
c8bcaea1e8
Update version and changelog for release
3 years ago
Andrew Senetar
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.
3 years ago
Andrew Senetar
10c7693d11
Minor fixes to tests
3 years ago
Andrew Senetar
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.
3 years ago
Andrew Senetar
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
3 years ago
Andrew Senetar
af0c1ba704
More test fixes
...
- Fix travis windows env
- Fix exception type in test_plat_win
- Finish converting tests in test_plat_other, fix exception type
3 years ago
Andrew Senetar
37be84d46e
Update .travis.yml
3 years ago
Andrew Senetar
9f76fbf036
Updates for tests on windows
...
- Other platform tests WIP
- Windows long directory tests WIP
3 years ago
Andrew Senetar
a324923ffa
Add IFileOperationProgressSink
...
- Add sink to allow detection of times when the file would be deleted
- Currently can detect, but not stop operations, more work needed
3 years ago
Andrew Senetar
dbdcce8b04
First batch of updates to unit tests
...
- Remove content from __init__.py
- Change test_script_main to use pytest
- Update test_script_main to run on windows as well as linux
3 years ago
Andrew Senetar
054d56c564
Update Tox and Travis configurations
3 years ago
Andrew Senetar
33ed07811b
Cleanup flake8 issues
3 years ago
Andrew Senetar
5d3835735e
Merge pull request #55 from juliangilbey/fix-win-test
...
Only import Windows-specific modules when on Windows
3 years ago
Julian Gilbey
741c7ad51f
Only import Windows-specific modules when on Windows
3 years ago
Andrew Senetar
2eb3242cd9
Merge pull request #54 from asellappen/master
...
Adding power support for this package to support arch independent
3 years ago
Andrew Senetar
60bcb2c834
Merge pull request #47 from pracedru/master
...
Update plat_other.py
3 years ago
Andrew Senetar
c411f4eae4
Merge branch 'master' into master
3 years ago
Andrew Senetar
f64c69f905
Merge branch 'master' into master
3 years ago
Andrew Senetar
00dfe77e40
Add console_script entry point, close #50
3 years ago
Andrew Senetar
16a7115ff1
Merge pull request #52 from BoboTiG/impr-expand-ci
...
Expand supported Python versions
3 years ago
Andrew Senetar
ec73b44c43
Merge pull request #53 from BoboTiG/fix-resource-warning
...
Fix ResourceWarning: unclosed file in setup.py
3 years ago
Arumugam
f62b4f1ffd
Adding power support for this package to support arch indepentant
3 years ago
Mickaël Schoentgen
38ae2b63d2
Expand supported Python versions
3 years ago
Mickaël Schoentgen
cd8d9fb95e
Fix ResourceWarning: unclosed file in setup.py
...
Also prevent potential identical warning in `plat_other.py`.
3 years ago
Magnus Møller Jørgensen
20bbab0b4c
Update plat_other.py
...
The trash info file needs to exist before the file is moved into the trash folder.
This is to conform to the events based detection of trashed files in gnome and other file managers.
3 years ago
Andrew Senetar
49bc438546
Update files to release a new package
4 years ago
Andrew Senetar
2e9fa38f56
Fix some flake8 errors and cleanup
...
- Fix some flake8 formatting errors
- Auto-format files edited
- Also ignore some flake8 errors when they are intented
- Update .gitignore to ingore local env
4 years ago
Andrew Senetar
1e099724c5
Fix a typo in tox.ini for windows
4 years ago
Andrew Senetar
6ac20bc4f6
Fix new issues with unit tests
...
- Create custom test suite based on platform
- Use the custom suite for all tests
- Update tox.ini to install pywin32
4 years ago
Andrew Senetar
e3d2be3243
Update windows tests to test both versions
...
This fixes #44 by testing the automatic import, the legacy version, and
the modern version directtly.
4 years ago