dwipe 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.
Files changed (55) hide show
  1. {dwipe-3.0.2 → dwipe-3.1.0}/PKG-INFO +2 -2
  2. {dwipe-3.0.2 → dwipe-3.1.0}/pyproject.toml +2 -2
  3. {dwipe-3.0.2 → dwipe-3.1.0}/tests/test_exception_observability.py +4 -1
  4. {dwipe-3.0.2 → dwipe-3.1.0}/.github/workflows/tests.yml +0 -0
  5. {dwipe-3.0.2 → dwipe-3.1.0}/.gitignore +0 -0
  6. {dwipe-3.0.2 → dwipe-3.1.0}/LICENSE +0 -0
  7. {dwipe-3.0.2 → dwipe-3.1.0}/README.md +0 -0
  8. {dwipe-3.0.2 → dwipe-3.1.0}/dwipe/DeviceChangeMonitor.py +0 -0
  9. {dwipe-3.0.2 → dwipe-3.1.0}/dwipe/DeviceInfo.py +0 -0
  10. {dwipe-3.0.2 → dwipe-3.1.0}/dwipe/DeviceWorker.py +0 -0
  11. {dwipe-3.0.2 → dwipe-3.1.0}/dwipe/DiskWipe.py +0 -0
  12. {dwipe-3.0.2 → dwipe-3.1.0}/dwipe/DrivePreChecker.py +0 -0
  13. {dwipe-3.0.2 → dwipe-3.1.0}/dwipe/FirmwareWipeTask.py +0 -0
  14. {dwipe-3.0.2 → dwipe-3.1.0}/dwipe/NvmeTool.py +0 -0
  15. {dwipe-3.0.2 → dwipe-3.1.0}/dwipe/PersistentState.py +0 -0
  16. {dwipe-3.0.2 → dwipe-3.1.0}/dwipe/Prereqs.py +0 -0
  17. {dwipe-3.0.2 → dwipe-3.1.0}/dwipe/SataTool.py +0 -0
  18. {dwipe-3.0.2 → dwipe-3.1.0}/dwipe/StructuredLogger.py +0 -0
  19. {dwipe-3.0.2 → dwipe-3.1.0}/dwipe/Tunables.py +0 -0
  20. {dwipe-3.0.2 → dwipe-3.1.0}/dwipe/Utils.py +0 -0
  21. {dwipe-3.0.2 → dwipe-3.1.0}/dwipe/VerifyTask.py +0 -0
  22. {dwipe-3.0.2 → dwipe-3.1.0}/dwipe/WipeJob.py +0 -0
  23. {dwipe-3.0.2 → dwipe-3.1.0}/dwipe/WipeTask.py +0 -0
  24. {dwipe-3.0.2 → dwipe-3.1.0}/dwipe/WriteTask.py +0 -0
  25. {dwipe-3.0.2 → dwipe-3.1.0}/dwipe/__init__.py +0 -0
  26. {dwipe-3.0.2 → dwipe-3.1.0}/dwipe/device_io.py +0 -0
  27. {dwipe-3.0.2 → dwipe-3.1.0}/dwipe/main.py +0 -0
  28. {dwipe-3.0.2 → dwipe-3.1.0}/dwipe/markers.py +0 -0
  29. {dwipe-3.0.2 → dwipe-3.1.0}/dwipe/verification.py +0 -0
  30. {dwipe-3.0.2 → dwipe-3.1.0}/images/dwipe-2025-12-31-09-37.gif +0 -0
  31. {dwipe-3.0.2 → dwipe-3.1.0}/images/dwipe-2026-02-05.07-58.gif +0 -0
  32. {dwipe-3.0.2 → dwipe-3.1.0}/linter +0 -0
  33. {dwipe-3.0.2 → dwipe-3.1.0}/resources/dwipe-help-screen.png +0 -0
  34. {dwipe-3.0.2 → dwipe-3.1.0}/resources/dwipe-main-screen.png +0 -0
  35. {dwipe-3.0.2 → dwipe-3.1.0}/runner +0 -0
  36. {dwipe-3.0.2 → dwipe-3.1.0}/tests/conftest.py +0 -0
  37. {dwipe-3.0.2 → dwipe-3.1.0}/tests/device_double.py +0 -0
  38. {dwipe-3.0.2 → dwipe-3.1.0}/tests/test_cli_options.py +0 -0
  39. {dwipe-3.0.2 → dwipe-3.1.0}/tests/test_device_change_monitor.py +0 -0
  40. {dwipe-3.0.2 → dwipe-3.1.0}/tests/test_device_io.py +0 -0
  41. {dwipe-3.0.2 → dwipe-3.1.0}/tests/test_device_worker.py +0 -0
  42. {dwipe-3.0.2 → dwipe-3.1.0}/tests/test_deviceinfo_logic.py +0 -0
  43. {dwipe-3.0.2 → dwipe-3.1.0}/tests/test_diskwipe_terminal.py +0 -0
  44. {dwipe-3.0.2 → dwipe-3.1.0}/tests/test_drive_prechecker.py +0 -0
  45. {dwipe-3.0.2 → dwipe-3.1.0}/tests/test_firmware_wipe_task.py +0 -0
  46. {dwipe-3.0.2 → dwipe-3.1.0}/tests/test_nvme_tool.py +0 -0
  47. {dwipe-3.0.2 → dwipe-3.1.0}/tests/test_persistent_state.py +0 -0
  48. {dwipe-3.0.2 → dwipe-3.1.0}/tests/test_safe_write.py +0 -0
  49. {dwipe-3.0.2 → dwipe-3.1.0}/tests/test_satatool_parse.py +0 -0
  50. {dwipe-3.0.2 → dwipe-3.1.0}/tests/test_structured_logger.py +0 -0
  51. {dwipe-3.0.2 → dwipe-3.1.0}/tests/test_utils.py +0 -0
  52. {dwipe-3.0.2 → dwipe-3.1.0}/tests/test_verification.py +0 -0
  53. {dwipe-3.0.2 → dwipe-3.1.0}/tests/test_verify_analysis.py +0 -0
  54. {dwipe-3.0.2 → dwipe-3.1.0}/tests/test_wipejob_logic.py +0 -0
  55. {dwipe-3.0.2 → dwipe-3.1.0}/tests/test_wipejob_resume.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dwipe
3
- Version: 3.0.2
3
+ Version: 3.1.0
4
4
  Summary: A tool to wipe disks and partitions for Linux
5
5
  Keywords: disk,partition,wipe,clean,scrub
6
6
  Author-email: Joe Defen <joedef@google.com>
@@ -10,7 +10,7 @@ Classifier: Programming Language :: Python :: 3
10
10
  Classifier: License :: OSI Approved :: MIT License
11
11
  Classifier: Operating System :: POSIX :: Linux
12
12
  License-File: LICENSE
13
- Requires-Dist: console-window == 1.4.2
13
+ Requires-Dist: console-window == 2.1.3
14
14
  Requires-Dist: pytest >= 7.0 ; extra == "test"
15
15
  Requires-Dist: pytest-cov >= 4.0 ; extra == "test"
16
16
  Project-URL: Bug Tracker, https://github.com/joedefen/dwipe/issues
@@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"
4
4
 
5
5
  [project]
6
6
  name = "dwipe"
7
- version = "3.0.2"
7
+ version = "3.1.0"
8
8
  description = "A tool to wipe disks and partitions for Linux"
9
9
  authors = [
10
10
  { name = "Joe Defen", email = "joedef@google.com" }
@@ -19,7 +19,7 @@ classifiers = [
19
19
  "Operating System :: POSIX :: Linux"
20
20
  ]
21
21
  dependencies = [
22
- 'console-window == 1.4.2',
22
+ 'console-window == 2.1.3',
23
23
  ]
24
24
 
25
25
  [project.optional-dependencies]
@@ -6,6 +6,7 @@ flow or return values.
6
6
  """
7
7
  import os
8
8
  import sys
9
+ import time
9
10
  from types import SimpleNamespace
10
11
 
11
12
  sys.path.insert(0, os.path.dirname(__file__))
@@ -62,7 +63,9 @@ def test_write_task_marker_failure_is_logged(monkeypatch):
62
63
  rec = _use_recorder(monkeypatch)
63
64
  task = WriteZeroTask("/dev/loop0", 4096,
64
65
  SimpleNamespace(slowdown_stop=0, stall_timeout=0))
65
- task.last_marker_update_mono = 0 # force the update to be due
66
+ # Force the update to be due without assuming system uptime exceeds the
67
+ # interval (time.monotonic() is small on freshly-booted CI runners).
68
+ task.last_marker_update_mono = time.monotonic() - task.marker_update_interval - 1
66
69
 
67
70
  def boom(path, mode="rb"):
68
71
  raise OSError("marker write failed")
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes