1
0
mirror of https://github.com/arsenetar/send2trash.git synced 2026-01-22 14:41:40 +00:00
Commit Graph

195 Commits

Author SHA1 Message Date
32d3391b1a ci: Add ability to use trusted-publishing for PyPI
- Add Publish workflow to run on release tags to upload package to PyPI
- Add Build of packages to end of Default CI/CD workflow when on master
  branch.
2026-01-14 07:08:02 +00:00
2109d6e518 doc: Update changelog for 2.1.0 2.1.0 2026-01-14 06:15:16 +00:00
Andrey Efremov
0b6b2fe5b0 Replace elif with else (#104) 2026-01-01 00:55:45 -06:00
9615b7e4f8 build: Move to pyproject.toml over setup.cfg
Convert to the more modern and preferred pyproject.toml configuration
for the project.

- Add the majority of the configuration to pyproject.toml.
- Remove setup.cfg as it is no longer needed.
- Update tox.ini to remove a lingering testenv for Python 2.7 which is
  no longer used.

NOTE: Manifest.in is left as the files it includes are outside of the
package directories.
2026-01-01 02:07:30 +00:00
34c0ddaa88 Merge pull request #106 from mgorny/sdist-conftest
Add `conftest.py` to source distribution
2025-12-31 19:06:04 -06:00
8cc111a446 ci: Update default workflow triggers 2026-01-01 01:01:42 +00:00
Michał Górny
f8a40143f6 Add conftest.py to source distribution
Fixes #105

Signed-off-by: Michał Górny <mgorny@gentoo.org>
2025-12-31 08:22:59 +01:00
5c4e6a81cd Merge pull request #103 from arsenetar/as/ci-lang-updates
feat: CI, Lanugage, lint, and misc cleanups
2.0.0
2025-12-30 22:06:40 -06:00
4e8d6c7e11 chore: Set version 2025-12-31 04:01:56 +00:00
2d07f76209 doc: Update CHANGES.rst for 2.0.0 2025-12-31 03:33:22 +00:00
a6539d146b fix: Update gio implementation to use GLib.Error instead of deprecated GObject.GError 2025-12-31 03:32:50 +00:00
2b20d606e2 doc: Update README to reflect python version support 2025-12-31 03:01:13 +00:00
06a9d37805 chore: More pylint cleanups, and python2 removals 2025-12-31 02:57:06 +00:00
8d96aa29df tests: Cleanup some pylint errors and share common fixture
- Cleanup some of the pylint erros in the tests
- Reorganize some of the tests functions and fixtures
- Move the one common fixture to conftest.py for sharing
2025-12-31 02:30:38 +00:00
0a4473d954 ci: Test python 3.9 on macOS instead of 3.8 as min version
PyObjC needs at least 3.9 now.
2025-12-31 01:34:12 +00:00
b23cba1ae2 chore: Fix lint error in test_plat_other.py 2025-12-31 01:32:01 +00:00
9465587899 chore: Update CI workflow versions add python 3.14
- Add Python 3.14
- Update GitHub Actions to latest versions
- Enable macOS in CI
2025-12-31 01:29:34 +00:00
b00bf8f8e0 Merge pull request #102 from gunSlaveUnit/fix/102-install-source-via-pip 2025-12-30 18:38:27 -06:00
gunSlaveUnit
fa9fee0442 Remove '>>>' from shell commands. 2025-12-27 15:39:46 +03:00
gunSlaveUnit
c91f2559da Fix source installation instructions.
- Replace outdated 'python setup.py install' with 'python -m pip install -e .'.
- Add virtual environment instructions for PEP 668 compatibility.
- Update the GitHub URL to HTTPS.
2025-12-27 15:23:33 +03:00
3f6c5b3088 Merge pull request #100 from denini08/mac-fix 2025-10-23 20:17:16 -05:00
denini08
1781b16fa8 test: Update trash topdir test for cross-platform compatibility 2025-09-24 15:26:49 -03:00
9a2c5bc690 chore: Update project configuration and ci for python version changes
- Drop support for Python 2
- Drop support for Python 3.7, 3.8 is new minimum
- Update tox to include newer python version and drop old ones
- Update GitHub action for python version changes, use standard python
  setup action
- Update GitHub action to use pinned action versions
- Update version to 2.0.0-dev
2025-08-06 05:27:33 +00:00
65bda6c7ca feat: Drop support for Python 2 and remove compatibility code
This removes support for Python 2, and drops most of the compatibility
code that was used to support both Python 2 and Python 3.
2025-08-06 05:27:32 +00:00
91d0698967 Merge pull request #91 from arsenetar/as/misc-fixes
chore: Upgrade version to 1.8.3, bump CI
1.8.3
2024-04-06 18:53:45 -05:00
5c47eb063c fix(ci): Use alternative setup-python to allow 2.7
The setup python action has removed 2.7, we want to keep it for the
moment.  Using an alternative action that supports 2.7.
2024-04-06 16:51:34 -07:00
c7a23884a9 chore: Upgrade version to 1.8.3, bump CI
- Upgrade version to 1.8.3, add changelog entry
- Fix minor flake8 error that can be ignored
- Update CI workflow to use newer actions and python versions
2024-04-06 16:36:23 -07:00
78fa300cac Merge pull request #90 from yogeshiitm/master
Fix bug when source and destination directories are on different file systems
2024-03-28 01:17:37 -05:00
Yogesh Agarwala
baeb9e59f9 Fix bug in send2trash: Use os.fsdecode() in shutil.move()
`shutil.move()` function expects string paths, not byte paths. This bug is leading to failure when src and dst are on on the different file system.
2024-03-23 05:37:21 +05:30
0a48c26f68 Merge pull request #88 from PalmtopTiger/iterable-types
Support for any iterable type as input data
2024-02-19 09:08:53 -06:00
Andrey Efremov
ed039dc892 Support for any iterable type as input data 2024-01-11 14:25:22 +07:00
e59ddcae98 Merge pull request #79 from mgorny/wheel
Remove redundant wheel dep from pyproject.toml
2023-05-03 02:41:22 -05:00
Michał Górny
19cf5d941a Remove redundant wheel dep from pyproject.toml
Remove the redundant `wheel` dependency, as it is added by the backend
automatically.  Listing it explicitly in the documentation was
a historical mistake and has been fixed since, see:
f7d30a9529
2023-04-27 18:12:32 +02:00
0244f53e2e fix(build): Fix syntax in setup.cfg, add python 3.11 1.8.2 2023-04-27 00:28:59 -05:00
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