macpm 3.0.1__tar.gz → 3.0.2__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 (80) hide show
  1. {macpm-3.0.1 → macpm-3.0.2}/CHANGELOG.md +15 -0
  2. {macpm-3.0.1/macpm.egg-info → macpm-3.0.2}/PKG-INFO +4 -4
  3. {macpm-3.0.1 → macpm-3.0.2}/README.md +2 -2
  4. {macpm-3.0.1 → macpm-3.0.2}/RELEASE.md +11 -11
  5. {macpm-3.0.1 → macpm-3.0.2}/docs/linux-port.md +1 -1
  6. {macpm-3.0.1 → macpm-3.0.2}/macpm/__init__.py +1 -1
  7. {macpm-3.0.1 → macpm-3.0.2}/macpm/macpm.py +7 -1
  8. {macpm-3.0.1 → macpm-3.0.2/macpm.egg-info}/PKG-INFO +4 -4
  9. {macpm-3.0.1 → macpm-3.0.2}/macpm.egg-info/requires.txt +1 -1
  10. {macpm-3.0.1 → macpm-3.0.2}/setup.py +2 -2
  11. {macpm-3.0.1 → macpm-3.0.2}/tests/test_cli.py +1 -1
  12. {macpm-3.0.1 → macpm-3.0.2}/tests/test_dashing_compat.py +11 -0
  13. {macpm-3.0.1 → macpm-3.0.2}/LICENSE +0 -0
  14. {macpm-3.0.1 → macpm-3.0.2}/MANIFEST.in +0 -0
  15. {macpm-3.0.1 → macpm-3.0.2}/macpm/__main__.py +0 -0
  16. {macpm-3.0.1 → macpm-3.0.2}/macpm/backend.py +0 -0
  17. {macpm-3.0.1 → macpm-3.0.2}/macpm/capabilities.py +0 -0
  18. {macpm-3.0.1 → macpm-3.0.2}/macpm/dump.py +0 -0
  19. {macpm-3.0.1 → macpm-3.0.2}/macpm/gpuview.py +0 -0
  20. {macpm-3.0.1 → macpm-3.0.2}/macpm/ioreport.py +0 -0
  21. {macpm-3.0.1 → macpm-3.0.2}/macpm/linux_backend/__init__.py +0 -0
  22. {macpm-3.0.1 → macpm-3.0.2}/macpm/linux_backend/cpu.py +0 -0
  23. {macpm-3.0.1 → macpm-3.0.2}/macpm/linux_backend/gpu.py +0 -0
  24. {macpm-3.0.1 → macpm-3.0.2}/macpm/linux_backend/modelname.py +0 -0
  25. {macpm-3.0.1 → macpm-3.0.2}/macpm/linux_backend/net.py +0 -0
  26. {macpm-3.0.1 → macpm-3.0.2}/macpm/linux_backend/power.py +0 -0
  27. {macpm-3.0.1 → macpm-3.0.2}/macpm/linux_backend/proc.py +0 -0
  28. {macpm-3.0.1 → macpm-3.0.2}/macpm/linux_backend/sampler.py +0 -0
  29. {macpm-3.0.1 → macpm-3.0.2}/macpm/linux_backend/soc.py +0 -0
  30. {macpm-3.0.1 → macpm-3.0.2}/macpm/linux_backend/sysfs.py +0 -0
  31. {macpm-3.0.1 → macpm-3.0.2}/macpm/linux_backend/thermal.py +0 -0
  32. {macpm-3.0.1 → macpm-3.0.2}/macpm/macos_gpu.py +0 -0
  33. {macpm-3.0.1 → macpm-3.0.2}/macpm/metrics.py +0 -0
  34. {macpm-3.0.1 → macpm-3.0.2}/macpm/netinfo.py +0 -0
  35. {macpm-3.0.1 → macpm-3.0.2}/macpm/netmodel.py +0 -0
  36. {macpm-3.0.1 → macpm-3.0.2}/macpm/network.py +0 -0
  37. {macpm-3.0.1 → macpm-3.0.2}/macpm/probe.py +0 -0
  38. {macpm-3.0.1 → macpm-3.0.2}/macpm/processes.py +0 -0
  39. {macpm-3.0.1 → macpm-3.0.2}/macpm/sampler.py +0 -0
  40. {macpm-3.0.1 → macpm-3.0.2}/macpm/sensors.py +0 -0
  41. {macpm-3.0.1 → macpm-3.0.2}/macpm/smc.py +0 -0
  42. {macpm-3.0.1 → macpm-3.0.2}/macpm/soc.py +0 -0
  43. {macpm-3.0.1 → macpm-3.0.2}/macpm/tui.py +0 -0
  44. {macpm-3.0.1 → macpm-3.0.2}/macpm.egg-info/SOURCES.txt +0 -0
  45. {macpm-3.0.1 → macpm-3.0.2}/macpm.egg-info/dependency_links.txt +0 -0
  46. {macpm-3.0.1 → macpm-3.0.2}/macpm.egg-info/entry_points.txt +0 -0
  47. {macpm-3.0.1 → macpm-3.0.2}/macpm.egg-info/not-zip-safe +0 -0
  48. {macpm-3.0.1 → macpm-3.0.2}/macpm.egg-info/top_level.txt +0 -0
  49. {macpm-3.0.1 → macpm-3.0.2}/packaging/README.txt +0 -0
  50. {macpm-3.0.1 → macpm-3.0.2}/packaging/build.sh +0 -0
  51. {macpm-3.0.1 → macpm-3.0.2}/packaging/entry_tui.py +0 -0
  52. {macpm-3.0.1 → macpm-3.0.2}/packaging/install.sh +0 -0
  53. {macpm-3.0.1 → macpm-3.0.2}/packaging/linux/Dockerfile +0 -0
  54. {macpm-3.0.1 → macpm-3.0.2}/packaging/linux/README.txt +0 -0
  55. {macpm-3.0.1 → macpm-3.0.2}/packaging/macpm.command +0 -0
  56. {macpm-3.0.1 → macpm-3.0.2}/pyproject.toml +0 -0
  57. {macpm-3.0.1 → macpm-3.0.2}/setup.cfg +0 -0
  58. {macpm-3.0.1 → macpm-3.0.2}/tests/__init__.py +0 -0
  59. {macpm-3.0.1 → macpm-3.0.2}/tests/linux_fixtures.py +0 -0
  60. {macpm-3.0.1 → macpm-3.0.2}/tests/test_calc_freq.py +0 -0
  61. {macpm-3.0.1 → macpm-3.0.2}/tests/test_gpuview.py +0 -0
  62. {macpm-3.0.1 → macpm-3.0.2}/tests/test_layout.py +0 -0
  63. {macpm-3.0.1 → macpm-3.0.2}/tests/test_linux_cpu.py +0 -0
  64. {macpm-3.0.1 → macpm-3.0.2}/tests/test_linux_gpu.py +0 -0
  65. {macpm-3.0.1 → macpm-3.0.2}/tests/test_linux_ixsmi.py +0 -0
  66. {macpm-3.0.1 → macpm-3.0.2}/tests/test_linux_modelname.py +0 -0
  67. {macpm-3.0.1 → macpm-3.0.2}/tests/test_linux_net.py +0 -0
  68. {macpm-3.0.1 → macpm-3.0.2}/tests/test_linux_nvidia.py +0 -0
  69. {macpm-3.0.1 → macpm-3.0.2}/tests/test_linux_power.py +0 -0
  70. {macpm-3.0.1 → macpm-3.0.2}/tests/test_linux_sampler.py +0 -0
  71. {macpm-3.0.1 → macpm-3.0.2}/tests/test_linux_thermal.py +0 -0
  72. {macpm-3.0.1 → macpm-3.0.2}/tests/test_linux_view.py +0 -0
  73. {macpm-3.0.1 → macpm-3.0.2}/tests/test_linux_wiring.py +0 -0
  74. {macpm-3.0.1 → macpm-3.0.2}/tests/test_netinfo.py +0 -0
  75. {macpm-3.0.1 → macpm-3.0.2}/tests/test_network.py +0 -0
  76. {macpm-3.0.1 → macpm-3.0.2}/tests/test_probe.py +0 -0
  77. {macpm-3.0.1 → macpm-3.0.2}/tests/test_processes.py +0 -0
  78. {macpm-3.0.1 → macpm-3.0.2}/tests/test_sampler.py +0 -0
  79. {macpm-3.0.1 → macpm-3.0.2}/tests/test_sampler_macos.py +0 -0
  80. {macpm-3.0.1 → macpm-3.0.2}/tests/test_sensors.py +0 -0
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.0.2 — 2026-11-15
4
+
5
+ ### Fixed
6
+
7
+ - macpm declares `dashing>=0.1,<0.2` again: dashing 0.2 replaced the
8
+ `Tile._display(tbox, parent)` / `_draw_title(tbox, ...)` drawing protocol
9
+ with a buffer-based one, and macpm's custom `FillVSplit`/`SensorPanel`
10
+ layout overrides rely on the 0.1 signatures. Installing on a machine that
11
+ already had dashing 0.2 produced
12
+ `TypeError: Tile._draw_borders_and_title() missing 1 required positional
13
+ argument: 'tbox'`. A runtime guard now names the problem and the fix
14
+ (`pip install 'dashing<0.2'`) if 0.2 is forced in.
15
+ - The 3.0.1 colour compatibility stays in place, so the code is ready for a
16
+ future port to the 0.2 API.
17
+
3
18
  ## 3.0.1 — 2026-11-15
4
19
 
5
20
  ### Fixed
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: macpm
3
- Version: 3.0.1
3
+ Version: 3.0.2
4
4
  Summary: Performance monitoring CLI for Apple Silicon and Linux
5
5
  Home-page: https://github.com/visualcjy/macpm
6
6
  Author: Jinyu Chen
@@ -23,7 +23,7 @@ Classifier: Topic :: System :: Monitoring
23
23
  Requires-Python: >=3.9
24
24
  Description-Content-Type: text/markdown
25
25
  License-File: LICENSE
26
- Requires-Dist: dashing>=0.1
26
+ Requires-Dist: dashing<0.2,>=0.1
27
27
  Requires-Dist: psutil>=5.9
28
28
  Requires-Dist: humanize>=4.0
29
29
  Dynamic: author
@@ -314,7 +314,7 @@ shows it as a `MODEL` column.
314
314
 
315
315
  A single-GPU machine keeps the older layout: card summary on top, process table
316
316
  below. Every view's footer starts with the app name and version
317
- (`macpm v3.0.1 · q quit …`).
317
+ (`macpm v3.0.2 · q quit …`).
318
318
 
319
319
  ```text
320
320
  ┌ GPU INFO ────────────────────────────────────────────────────────────────────────────────┐
@@ -328,7 +328,7 @@ below. Every view's footer starts with the app name and version
328
328
  │ └ 222 Xorg 2.0G │
329
329
  │ 2 AMD GPU (amdgpu) ▉▉▉▉▏▏ 60% 1100/1750 12.0W ▉▉▉▉▏▏▏▏▏▏ 3.0G/8.0G 46°C │
330
330
  │ 3 AMD GPU (amdgpu) ▉▉▉▉▉▏ 85% 1200/1750 12.0W ▉▉▉▉▉▏▏▏▏▏ 4.0G/8.0G 49°C │
331
- └ macpm v3.0.1 · q quit 1-5 view s sort ↑/↓ page Space pause ←/→ colour ────────────────┘
331
+ └ macpm v3.0.2 · q quit 1-5 view s sort ↑/↓ page Space pause ←/→ colour ────────────────┘
332
332
  ```
333
333
 
334
334
  | Platform | What fills each row |
@@ -272,7 +272,7 @@ shows it as a `MODEL` column.
272
272
 
273
273
  A single-GPU machine keeps the older layout: card summary on top, process table
274
274
  below. Every view's footer starts with the app name and version
275
- (`macpm v3.0.1 · q quit …`).
275
+ (`macpm v3.0.2 · q quit …`).
276
276
 
277
277
  ```text
278
278
  ┌ GPU INFO ────────────────────────────────────────────────────────────────────────────────┐
@@ -286,7 +286,7 @@ below. Every view's footer starts with the app name and version
286
286
  │ └ 222 Xorg 2.0G │
287
287
  │ 2 AMD GPU (amdgpu) ▉▉▉▉▏▏ 60% 1100/1750 12.0W ▉▉▉▉▏▏▏▏▏▏ 3.0G/8.0G 46°C │
288
288
  │ 3 AMD GPU (amdgpu) ▉▉▉▉▉▏ 85% 1200/1750 12.0W ▉▉▉▉▉▏▏▏▏▏ 4.0G/8.0G 49°C │
289
- └ macpm v3.0.1 · q quit 1-5 view s sort ↑/↓ page Space pause ←/→ colour ────────────────┘
289
+ └ macpm v3.0.2 · q quit 1-5 view s sort ↑/↓ page Space pause ←/→ colour ────────────────┘
290
290
  ```
291
291
 
292
292
  | Platform | What fills each row |
@@ -1,4 +1,4 @@
1
- # Releasing macpm 3.0.1
1
+ # Releasing macpm 3.0.2
2
2
 
3
3
  This checklist prepares a GitHub tag and a PyPI upload. It does not push or
4
4
  publish anything by itself.
@@ -7,11 +7,11 @@ publish anything by itself.
7
7
 
8
8
  - macOS Apple Silicon, Python 3.9+.
9
9
  - Clean working tree (`git status`), all tests passing.
10
- - Version is `3.0.1` in:
10
+ - Version is `3.0.2` in:
11
11
  - `setup.py`
12
12
  - `macpm/__init__.py`
13
- - `macpm/macpm.py` (`version = 'macpm v3.0.1'`)
14
- - `CHANGELOG.md` has the 3.0.1 entry.
13
+ - `macpm/macpm.py` (`version = 'macpm v3.0.2'`)
14
+ - `CHANGELOG.md` has the 3.0.2 entry.
15
15
 
16
16
  ## 2. Test from source
17
17
 
@@ -38,7 +38,7 @@ Test the wheel in a **clean** venv (this is the real "no source tree" test):
38
38
 
39
39
  ```sh
40
40
  python3 -m venv /tmp/macpm-wheel-test
41
- /tmp/macpm-wheel-test/bin/pip install dist/macpm-3.0.1-py3-none-any.whl
41
+ /tmp/macpm-wheel-test/bin/pip install dist/macpm-3.0.2-py3-none-any.whl
42
42
  /tmp/macpm-wheel-test/bin/macpm --help
43
43
  /tmp/macpm-wheel-test/bin/macpm-dump # Ctrl+C
44
44
  ```
@@ -78,13 +78,13 @@ Manual alternative (fallback, e.g. when OIDC is unavailable):
78
78
  ```sh
79
79
  # requires a PyPI API token in ~/.pypirc or TWINE_PASSWORD
80
80
  python3 -m twine upload --non-interactive \
81
- dist/macpm-3.0.1.tar.gz dist/macpm-3.0.1-py3-none-any.whl
81
+ dist/macpm-3.0.2.tar.gz dist/macpm-3.0.2-py3-none-any.whl
82
82
  ```
83
83
 
84
84
  Then verify:
85
85
 
86
86
  ```sh
87
- python3 -m pip install --upgrade macpm==3.0.1
87
+ python3 -m pip install --upgrade macpm==3.0.2
88
88
  macpm --version
89
89
  ```
90
90
 
@@ -93,10 +93,10 @@ macpm --version
93
93
  ```sh
94
94
  git add setup.py pyproject.toml MANIFEST.in README.md CHANGELOG.md RELEASE.md \
95
95
  macpm packaging tests .github bin
96
- git commit -m "Release macpm 3.0.1: dashing 0.2 colour compatibility"
97
- git tag -a v3.0.1 -m "macpm 3.0.1"
96
+ git commit -m "Release macpm 3.0.2: dashing 0.2 colour compatibility"
97
+ git tag -a v3.0.2 -m "macpm 3.0.2"
98
98
  git push origin main
99
- git push origin v3.0.1
99
+ git push origin v3.0.2
100
100
  ```
101
101
 
102
102
  The `Release` workflow builds the sdist/wheel, checks metadata and attaches
@@ -120,7 +120,7 @@ PYTHON=python3 packaging/build.sh
120
120
  This produces:
121
121
 
122
122
  ```text
123
- dist/macpm-3.0.1-macos-arm64.tar.gz
123
+ dist/macpm-3.0.2-macos-arm64.tar.gz
124
124
  ```
125
125
 
126
126
  Attach it to the GitHub release. The binaries are ad-hoc signed, not
@@ -1,6 +1,6 @@
1
1
  # macpm → Linux(x86_64 / arm64)移植可行性评估
2
2
 
3
- 评估对象:macpm v3.0.1(本仓库,约 4.3k 行核心代码 + 1.1k 行测试)。
3
+ 评估对象:macpm v3.0.2(本仓库,约 4.3k 行核心代码 + 1.1k 行测试)。
4
4
 
5
5
  > **实现状态(2026-11-14):已落地。** 平台抽象层(`macpm/backend.py`)、Linux 后端
6
6
  > (`macpm/linux_backend/`)与 UI 能力适配已完成,`python -m unittest discover -s tests`
@@ -1,3 +1,3 @@
1
1
  """macpm: rootless performance monitor for Apple Silicon."""
2
2
 
3
- __version__ = "3.0.1"
3
+ __version__ = "3.0.2"
@@ -20,7 +20,7 @@ from .gpuview import GpuView
20
20
  from .sensors import SensorReader
21
21
  from .tui import RESET_FG, _bottom, _pad, footer
22
22
 
23
- version = 'macpm v3.0.1'
23
+ version = 'macpm v3.0.2'
24
24
 
25
25
  # dashing 0.2 turned colours into RGB objects behind read-only properties and
26
26
  # added ``Tile.set_color``; 0.1 used plain attributes and integer ANSI colours.
@@ -1325,6 +1325,12 @@ def begin(stdscr, sampler):
1325
1325
 
1326
1326
 
1327
1327
  def main():
1328
+ if _DASHING_V2:
1329
+ raise SystemExit(
1330
+ "macpm needs dashing < 0.2: dashing 0.2 changed the drawing API "
1331
+ "that macpm's custom layout relies on.\n"
1332
+ "Fix it with: python3 -m pip install 'dashing<0.2'"
1333
+ )
1328
1334
  linux = platform_name() == "linux"
1329
1335
  if linux:
1330
1336
  print(f"\n{version} - performance monitoring CLI for Linux")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: macpm
3
- Version: 3.0.1
3
+ Version: 3.0.2
4
4
  Summary: Performance monitoring CLI for Apple Silicon and Linux
5
5
  Home-page: https://github.com/visualcjy/macpm
6
6
  Author: Jinyu Chen
@@ -23,7 +23,7 @@ Classifier: Topic :: System :: Monitoring
23
23
  Requires-Python: >=3.9
24
24
  Description-Content-Type: text/markdown
25
25
  License-File: LICENSE
26
- Requires-Dist: dashing>=0.1
26
+ Requires-Dist: dashing<0.2,>=0.1
27
27
  Requires-Dist: psutil>=5.9
28
28
  Requires-Dist: humanize>=4.0
29
29
  Dynamic: author
@@ -314,7 +314,7 @@ shows it as a `MODEL` column.
314
314
 
315
315
  A single-GPU machine keeps the older layout: card summary on top, process table
316
316
  below. Every view's footer starts with the app name and version
317
- (`macpm v3.0.1 · q quit …`).
317
+ (`macpm v3.0.2 · q quit …`).
318
318
 
319
319
  ```text
320
320
  ┌ GPU INFO ────────────────────────────────────────────────────────────────────────────────┐
@@ -328,7 +328,7 @@ below. Every view's footer starts with the app name and version
328
328
  │ └ 222 Xorg 2.0G │
329
329
  │ 2 AMD GPU (amdgpu) ▉▉▉▉▏▏ 60% 1100/1750 12.0W ▉▉▉▉▏▏▏▏▏▏ 3.0G/8.0G 46°C │
330
330
  │ 3 AMD GPU (amdgpu) ▉▉▉▉▉▏ 85% 1200/1750 12.0W ▉▉▉▉▉▏▏▏▏▏ 4.0G/8.0G 49°C │
331
- └ macpm v3.0.1 · q quit 1-5 view s sort ↑/↓ page Space pause ←/→ colour ────────────────┘
331
+ └ macpm v3.0.2 · q quit 1-5 view s sort ↑/↓ page Space pause ←/→ colour ────────────────┘
332
332
  ```
333
333
 
334
334
  | Platform | What fills each row |
@@ -1,3 +1,3 @@
1
- dashing>=0.1
1
+ dashing<0.2,>=0.1
2
2
  psutil>=5.9
3
3
  humanize>=4.0
@@ -7,7 +7,7 @@ README = (ROOT / "README.md").read_text(encoding="utf-8")
7
7
 
8
8
  setup(
9
9
  name="macpm",
10
- version="3.0.1",
10
+ version="3.0.2",
11
11
  author="Jinyu Chen",
12
12
  author_email="visualcjy@mail.com",
13
13
  url="https://github.com/visualcjy/macpm",
@@ -25,7 +25,7 @@ setup(
25
25
  include_package_data=True,
26
26
  python_requires=">=3.9",
27
27
  install_requires=[
28
- "dashing>=0.1",
28
+ "dashing>=0.1,<0.2",
29
29
  "psutil>=5.9",
30
30
  "humanize>=4.0",
31
31
  ],
@@ -25,7 +25,7 @@ class CliTests(unittest.TestCase):
25
25
  def test_version(self):
26
26
  result = self.run_module("--version")
27
27
  self.assertEqual(result.returncode, 0, result.stderr)
28
- self.assertIn("macpm v3.0.1", result.stdout)
28
+ self.assertIn("macpm v3.0.2", result.stdout)
29
29
 
30
30
  def test_help(self):
31
31
  result = self.run_module("--help")
@@ -100,3 +100,14 @@ class DashingCompatTests(unittest.TestCase):
100
100
 
101
101
  if __name__ == "__main__":
102
102
  unittest.main()
103
+
104
+
105
+ class DashingGuardTests(unittest.TestCase):
106
+ def test_main_refuses_dashing_two_with_an_actionable_message(self):
107
+ with mock.patch.object(macpm_mod, "_DASHING_V2", True):
108
+ with self.assertRaises(SystemExit) as caught:
109
+ macpm_mod.main()
110
+
111
+ message = str(caught.exception)
112
+ self.assertIn("dashing", message)
113
+ self.assertIn("dashing<0.2", message)
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
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