delayed-rm 3.0.2__tar.gz → 3.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: delayed_rm
3
- Version: 3.0.2
3
+ Version: 3.1.0
4
4
  Summary: Ever wish you had a few minutes to undo an rm? Now you do!
5
5
  License: GPLv3
6
6
  Project-URL: Homepage, https://github.com/zwimer/delayed_rm
@@ -13,7 +13,7 @@ import time
13
13
  import sys
14
14
 
15
15
  # Constants
16
- __version__ = "3.0.2"
16
+ __version__ = "3.1.0"
17
17
  _UNSAFE_FLAG = "unsafe-rmtree"
18
18
  log_f: Path = Path.home().resolve() / ".delayed_rm.log"
19
19
  tmp_d: Path = Path(gettempdir()).resolve() / ".delayed_rm"
@@ -149,7 +149,7 @@ def delayed_rm(paths: list[Path], delay: int, rf: bool, unsafe: bool = False) ->
149
149
  raise RuntimeError("Log file enclosing directory does not exist")
150
150
  # Prep
151
151
  paths = _prep(paths, rf)
152
- base = Path(tempfile.mkdtemp(dir=tmp_d))
152
+ base = Path(tempfile.mkdtemp(dir=tmp_d)).absolute()
153
153
  base.chmod(0o700)
154
154
  # Init data structures
155
155
  success: list[Path] = []
@@ -236,6 +236,7 @@ def delayed_rm(paths: list[Path], delay: int, rf: bool, unsafe: bool = False) ->
236
236
  env={_Secret.key: _Secret.value},
237
237
  stdout=subprocess.DEVNULL,
238
238
  stderr=subprocess.DEVNULL,
239
+ cwd=Path.cwd().root,
239
240
  )
240
241
  return not failed and not ctrlc
241
242
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: delayed_rm
3
- Version: 3.0.2
3
+ Version: 3.1.0
4
4
  Summary: Ever wish you had a few minutes to undo an rm? Now you do!
5
5
  License: GPLv3
6
6
  Project-URL: Homepage, https://github.com/zwimer/delayed_rm
@@ -41,7 +41,7 @@ version = {attr = "delayed_rm.__version__"}
41
41
 
42
42
  [tool.black]
43
43
  line-length = 120
44
- target-version = ["py312", "py313"]
44
+ target-version = ["py312", "py313", "py314"]
45
45
 
46
46
  [tool.ruff]
47
47
  ignore=["E731","E741"]
File without changes
File without changes
File without changes