hardwaremon 5.2.0__tar.gz → 5.2.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 (30) hide show
  1. {hardwaremon-5.2.0 → hardwaremon-5.2.2}/.github/workflows/publish.yml +2 -2
  2. {hardwaremon-5.2.0 → hardwaremon-5.2.2}/PKG-INFO +1 -1
  3. {hardwaremon-5.2.0 → hardwaremon-5.2.2}/hardwaremon/hardwaremon_gui.py +10 -4
  4. {hardwaremon-5.2.0 → hardwaremon-5.2.2}/hardwaremon.egg-info/PKG-INFO +1 -1
  5. {hardwaremon-5.2.0 → hardwaremon-5.2.2}/pyproject.toml +1 -1
  6. {hardwaremon-5.2.0 → hardwaremon-5.2.2}/.github/workflows/python-app.yml +0 -0
  7. {hardwaremon-5.2.0 → hardwaremon-5.2.2}/.gitignore +0 -0
  8. {hardwaremon-5.2.0 → hardwaremon-5.2.2}/HardwareMon.sh +0 -0
  9. {hardwaremon-5.2.0 → hardwaremon-5.2.2}/LICENSE +0 -0
  10. {hardwaremon-5.2.0 → hardwaremon-5.2.2}/README.md +0 -0
  11. {hardwaremon-5.2.0 → hardwaremon-5.2.2}/Windows/HardwareMon.exe +0 -0
  12. {hardwaremon-5.2.0 → hardwaremon-5.2.2}/Windows/hardwaremon_win.py +0 -0
  13. {hardwaremon-5.2.0 → hardwaremon-5.2.2}/assets/demo.gif +0 -0
  14. {hardwaremon-5.2.0 → hardwaremon-5.2.2}/hardwaremon/__init__.py +0 -0
  15. {hardwaremon-5.2.0 → hardwaremon-5.2.2}/hardwaremon/hardwaremon.py +0 -0
  16. {hardwaremon-5.2.0 → hardwaremon-5.2.2}/hardwaremon/icons/board.png +0 -0
  17. {hardwaremon-5.2.0 → hardwaremon-5.2.2}/hardwaremon/icons/cpu.png +0 -0
  18. {hardwaremon-5.2.0 → hardwaremon-5.2.2}/hardwaremon/icons/disk.png +0 -0
  19. {hardwaremon-5.2.0 → hardwaremon-5.2.2}/hardwaremon/icons/gpu.png +0 -0
  20. {hardwaremon-5.2.0 → hardwaremon-5.2.2}/hardwaremon/icons/os.png +0 -0
  21. {hardwaremon-5.2.0 → hardwaremon-5.2.2}/hardwaremon/icons/ram.png +0 -0
  22. {hardwaremon-5.2.0 → hardwaremon-5.2.2}/hardwaremon.egg-info/SOURCES.txt +0 -0
  23. {hardwaremon-5.2.0 → hardwaremon-5.2.2}/hardwaremon.egg-info/dependency_links.txt +0 -0
  24. {hardwaremon-5.2.0 → hardwaremon-5.2.2}/hardwaremon.egg-info/entry_points.txt +0 -0
  25. {hardwaremon-5.2.0 → hardwaremon-5.2.2}/hardwaremon.egg-info/requires.txt +0 -0
  26. {hardwaremon-5.2.0 → hardwaremon-5.2.2}/hardwaremon.egg-info/top_level.txt +0 -0
  27. {hardwaremon-5.2.0 → hardwaremon-5.2.2}/nfpm.yaml +0 -0
  28. {hardwaremon-5.2.0 → hardwaremon-5.2.2}/requirements.txt +0 -0
  29. {hardwaremon-5.2.0 → hardwaremon-5.2.2}/setup.cfg +0 -0
  30. {hardwaremon-5.2.0 → hardwaremon-5.2.2}/test_hardwaremon.py +0 -0
@@ -95,7 +95,7 @@ jobs:
95
95
  sudo apt-get install -y dpkg-dev createrepo-c curl golang-go
96
96
 
97
97
  # -------------------------
98
- # Install nfpm (FIXED - GO METHOD)
98
+ # Install nfpm (GO METHOD)
99
99
  # -------------------------
100
100
  - name: Install nfpm
101
101
  run: |
@@ -111,7 +111,7 @@ jobs:
111
111
  export PATH="$PATH:$HOME/go/bin"
112
112
  nfpm version
113
113
 
114
-
114
+
115
115
  # -------------------------
116
116
  # Build packages
117
117
  # -------------------------
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hardwaremon
3
- Version: 5.2.0
3
+ Version: 5.2.2
4
4
  Summary: Hardware monitoring tool for Linux
5
5
  Author: Louis
6
6
  Requires-Python: >=3.8
@@ -44,11 +44,17 @@ theme_names = list(THEMES.keys())
44
44
  #########################
45
45
  def load_icon(name):
46
46
  try:
47
- # __file__ is the path to this script
48
- path = os.path.join(os.path.dirname(__file__), "icons", name)
49
- img = Image.open(path).convert("RGBA")
50
- img = img.resize((32, 32), Image.Resampling.LANCZOS)
47
+ base_dir = os.path.dirname(os.path.abspath(__file__))
48
+ icon_path = os.path.join(base_dir, "icons", name)
49
+
50
+ if not os.path.exists(icon_path):
51
+ print(f"Missing icon: {icon_path}")
52
+ return None
53
+
54
+ img = Image.open(icon_path).convert("RGBA")
55
+ img = img.resize(ICON_SIZE, Image.Resampling.LANCZOS)
51
56
  return ImageTk.PhotoImage(img)
57
+
52
58
  except Exception as e:
53
59
  print(f"Error loading icon {name}: {e}")
54
60
  return None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hardwaremon
3
- Version: 5.2.0
3
+ Version: 5.2.2
4
4
  Summary: Hardware monitoring tool for Linux
5
5
  Author: Louis
6
6
  Requires-Python: >=3.8
@@ -29,7 +29,7 @@ include = ["hardwaremon*"]
29
29
  exclude = ["Windows*", "assets*"]
30
30
 
31
31
  [tool.setuptools.package-data]
32
- hardwaremon = ["icons/*"]
32
+ hardwaremon = ["icons/*.png"]
33
33
 
34
34
  [tool.setuptools_scm]
35
35
  version_scheme = "no-guess-dev"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes