From c91f2559dac8db586d99abb64bfbf1ba1ae2b5b9 Mon Sep 17 00:00:00 2001 From: gunSlaveUnit Date: Sat, 27 Dec 2025 15:23:33 +0300 Subject: [PATCH 1/2] 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. --- README.rst | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 0b9acd2..7f4b042 100644 --- a/README.rst +++ b/README.rst @@ -30,9 +30,23 @@ To install with pywin32 or pyobjc required specify the extra `nativeLib`: python -m pip install -U send2trash[nativeLib] -or you can download the source from http://github.com/arsenetar/send2trash and install it with:: +or download the source from https://github.com/arsenetar/send2trash and install it with: - >>> python setup.py install + >>> python -m pip install -e . + +On systems where Python enforces PEP 668 (e.g., recent Linux distributions), +installing packages into the system Python may be restricted. +Use a virtual environment: + + >>> python -m venv .venv + + GNU/Linux / macOS: + + >>> source .venv/bin/activate + + Windows: + + >>> .venv\Scripts\activate Usage ----- From fa9fee0442631d4789d756538cd560b8ea4e70c0 Mon Sep 17 00:00:00 2001 From: gunSlaveUnit Date: Sat, 27 Dec 2025 15:39:46 +0300 Subject: [PATCH 2/2] Remove '>>>' from shell commands. --- README.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index 7f4b042..e329ed7 100644 --- a/README.rst +++ b/README.rst @@ -32,21 +32,21 @@ To install with pywin32 or pyobjc required specify the extra `nativeLib`: or download the source from https://github.com/arsenetar/send2trash and install it with: - >>> python -m pip install -e . + python -m pip install -e . On systems where Python enforces PEP 668 (e.g., recent Linux distributions), installing packages into the system Python may be restricted. Use a virtual environment: - >>> python -m venv .venv + python -m venv .venv GNU/Linux / macOS: - >>> source .venv/bin/activate + source .venv/bin/activate Windows: - >>> .venv\Scripts\activate + .venv\Scripts\activate Usage -----